Skip to content

docs(mcpx): document adapter import, re-import semantics, and the --bare argv-escape warning - #11148

Merged
dezren39 merged 1 commit into
mainfrom
queue/19675-1962-import-docs
Nov 17, 2026
Merged

dezren39 merged 1 commit into
mainfrom
queue/19675-1962-import-docs

Conversation

@dezren39

@dezren39 dezren39 commented Nov 17, 2026 •

Copy link
Copy Markdown
Member

Summary

Closes the documentation residual of #1962. The mcpx adapter import feature itself is fully implemented (PR #2647: --bare; PR #9161: generation from completions/man/--help, provenance, drift), but no user-facing doc mentioned the command at all — and PR #9161 left two named residuals: the re-import merge semantics open question, and the docs sentence about binaries with their own argv-level exec escape.

Change

One file, pkgs/mcpx/docs/configuration.md, in the Adapter declarations section:

  • Generating a declaration: mcpx adapter import — the source ladder (system completion directories first, then the binary's own completion probe; man OPTIONS; --help with one subcommand level), --completion <file> as the front door for uninstalled binaries, --source pinning, and the note that import executes the binary (--help/--version/completion probe). Failure of every source is a clear error, never a partial declaration.
  • Re-import semantics, answered with the shipped behavior: output is stdout by default, --out FILE writes atomically, and import emits one standalone declaration file — it never merges into an existing adapters file and hand edits are not carried over; diff and replace by hand.
  • Provenance/drift: what a generated declaration records and how mcpx adapter check reports version drift against it.
  • Passthrough declarations: --bare — required description, loud warning, adapter list bare marker; an argv hole, not a shell hole, with the exception named: binaries with their own argv-level exec escape (git -c, ssh -o ProxyCommand, find -exec, editor/pager/command options) are shell escapes mcpx cannot see, with the steer to declare those per-subcommand instead.

Every statement was verified against pkgs/mcpx/internal/cli/adapter_import.go and the shipped --bare behavior before writing.

Tests

Docs-only change. Verified no regression in the surrounding packages on this branch:

  • go test ./internal/cli/ ./internal/adapter/ -count=1 — pass.
  • go test ./internal/refdoc/ -count=1 — pass.
  • go test ./internal/settings/ -count=1 — 3 failures (TestNoUndeclaredEnvRead, TestTheScriptEnvironmentIsWhatTheCodeSets, TestTheEnvironmentDocIsCurrent), each verified pre-existing on clean origin/main via stash comparison; environment-doc tests, unrelated to this change.

Queue: task 19675 (lane any-p), the triage follow-on for #1962 routed by task 18182.


Autofix with [code]smith
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

@dezren39
dezren39 requested a review from a team as a code owner November 17, 2026 08:04
@chatgpt-codex-connector

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-17T08:04:56.957444Z
We couldn’t complete this review. Comment @codex review to try again.
cfd92d6 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@coderabbitai

coderabbitai Bot commented Nov 17, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 59 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 1dd47bb2-0266-4050-b387-a1d73495a5d6
Commits

Reviewing files that changed from the base of the PR and between f48d558 and cfd92d6.

Files selected for processing: 1

  • pkgs/mcpx/docs/configuration.md
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, add credits to your account and enable them for code reviews in your settings.

@dezren39
dezren39 merged commit f08199c into main Nov 17, 2026
1 check passed
@dezren39
dezren39 deleted the queue/19675-1962-import-docs branch November 17, 2026 08:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant