Skip to content

docs(unstable-v2): align the name uniqueness rules for mcpServers and env - #2890

Merged
benbrandt merged 1 commit into
mainfrom
docs/v2-name-uniqueness
Nov 19, 2026
Merged

benbrandt merged 1 commit into
mainfrom
docs/v2-name-uniqueness

Conversation

@benbrandt

Copy link
Copy Markdown
Member

Summary

Two name uniqueness rules differed between the places that state them.

  • MCP server name: the session setup page requires each name to be unique within mcpServers and says Agents reject duplicates with -32602. The schema descriptions of name did not mention it.
  • env names: terminal authentication said every entry MUST have a unique name and gave no rule for a Client that receives duplicates. Stdio MCP servers say each entry SHOULD have a unique name and that the last entry wins (docs(schema): reject duplicate stdio env names #2693).

Changes

  • MCP server name: the name description on McpServerStdio, McpServerHttp and McpServerAcp now says it MUST be unique within mcpServers and that Agents reject a request with a duplicate name with -32602. The page is unchanged.
  • Terminal authentication env: each env entry SHOULD have a unique name. Otherwise the last entry with a given name wins. This is the stdio MCP rule, without the option to reject, because the entries arrive in the initialize response. Changed in:
    • the authentication page and its draft/ copy
    • the AuthMethodTerminal.env schema description
    • the terminal auth section of the migration guide
    • the Auth Methods RFD, with a revision entry

The schema changes are description text only. They regenerate schema/v2/schema.json, schema/v2/schema.unstable.json and both schema.mdx pages.

Implementations

Checked on 2026-11-19 against the default branch of each repository.

  • Zed collects a terminal method's env entries into a map in order, so the last entry with a given name already wins.
  • claude-agent-acp advertises terminal methods with args and no env.

Checks

  • Clippy, the tests, rustdoc, Prettier, cargo fmt and the spell check pass.
  • Regenerating the schema a second time gives no diff.
  • All links and anchors in the changed pages resolve.

… env

Two name uniqueness rules differed between places that state them.

- The session setup page requires each MCP server `name` to be unique
  within `mcpServers` and says Agents reject duplicates with `-32602`.
  The schema descriptions of `name` did not say so. They now do.
- `env` names were MUST be unique for terminal authentication, with no
  rule for a Client that receives duplicates, and SHOULD be unique for
  stdio MCP servers, where the last entry wins. Terminal authentication
  now uses the stdio rule: each entry SHOULD have a unique name, and
  otherwise the last entry with a given name wins.

The terminal authentication change is on the authentication page, in
the `AuthMethodTerminal` schema description, in the migration guide and
in the Auth Methods RFD.
@benbrandt
benbrandt requested a review from a team as a code owner November 19, 2026 15:29
@benbrandt
benbrandt enabled auto-merge (squash) November 19, 2026 15:32
@benbrandt
benbrandt merged commit bc03f00 into main Nov 19, 2026
13 checks passed
@benbrandt
benbrandt deleted the docs/v2-name-uniqueness branch November 19, 2026 15:34
@acp-release-bot acp-release-bot Bot mentioned this pull request Nov 19, 2026
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