Repository navigation
Conversation
The stdio `command` was described as "the absolute path to the MCP server executable" with no requirement and no error, unlike `cwd` and `additionalDirectories`. One Agent could resolve a bare `npx` through its `PATH` while another rejected it. - Say that `command` MUST be an absolute path and that Agents reject a relative one with `-32602`, in the same words as the `cwd` rule. - State the rule in the `McpServerStdio` schema description. - Add it to the MCP section and both checklists of the migration guide.
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The stdio MCP server
commandwas described as "the absolute path to the MCP server executable", with no requirement and no error.cwdandadditionalDirectoriesboth have an explicit absolute-path rule with-32602.Without a rule, one Agent can resolve a bare
npxthrough itsPATHwhile another rejects it. The Agent runs this value, so a name resolved on the Agent's machine can start a different binary than the Client meant.Changes
commandMUST be an absolute path, and Agents reject a request with a relativecommandwith-32602. The wording matches thecwdrule. Changed in the stable page and itsdraft/copy.commandfield ofMcpServerStdiostates the same rule. This regeneratesschema/v2/schema.json,schema/v2/schema.unstable.jsonand bothschema.mdxpages. Only the description text changes.Implementations
Checked on 2026-11-18 against the default branch of each repository.
commandon v2 connections.claude-agent-acpandcodex-acpcheck thatcwdis absolute but passcommandthrough unchecked. Each needs a small follow-up to reject a relative one.v1 is unchanged.
Checks
cargo clippyin the three configurations fromnpm run check,cargo test --all-features, and rustdoc with-D warningspass.cargo fmt, the spellcheck script, and the link check pass.