Repository navigation
docs(mcpx): document adapter import, re-import semantics, and the --bare argv-escape warning - #11148
Conversation
… --bare argv-escape warning (#1962)
Codex Review Summary: ❌ FailedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Warning Review limit reachedYou'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. View limit details
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. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
Summary
Closes the documentation residual of #1962. The
mcpx adapter importfeature 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:mcpx adapter import— the source ladder (system completion directories first, then the binary's owncompletionprobe; man OPTIONS;--helpwith one subcommand level),--completion <file>as the front door for uninstalled binaries,--sourcepinning, and the note that import executes the binary (--help/--version/completion probe). Failure of every source is a clear error, never a partial declaration.--out FILEwrites 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.mcpx adapter checkreports version drift against it.--bare— required description, loud warning,adapter listbare 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.goand the shipped--barebehavior 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.
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.