Skip to content

docs(v1): mark stdio MCP server env as required in Session Setup - #3044

Open
connorburgess wants to merge 1 commit into
agentclientprotocol:mainfrom
connorburgess:cb/doc-v1-stdio-env-required
Open

connorburgess wants to merge 1 commit into
agentclientprotocol:mainfrom
connorburgess:cb/doc-v1-stdio-env-required

Conversation

@connorburgess

Copy link
Copy Markdown

The stdio transport fields on the v1 Session Setup page mark name, command and args as required, but not env. The v1 schema requires all four: McpServerStdio lists env in required, and the Rust field has no default.

Validating this session/new payload against NewSessionRequest in schema/v1/schema.json and schema/v1/schema.unstable.json fails with "must have required property 'env'":

{
  "cwd": "/home/user/project",
  "mcpServers": [{ "name": "filesystem", "command": "/path/to/mcp-server", "args": [] }]
}

Every example on the page already sends "env": []. Mark env as required on the stable page and its draft copy. v2 makes env optional, and its page already says so.

Validation on 854ccdf (local results):

  • prettier --check docs/protocol/v1: passes.
  • npm run spellcheck: passes.
  • npm run test:json-schema: 33 groups pass.

Docs only, so the Rust checks were not rerun.

The stdio transport fields mark name, command and args as required but
not env. The v1 schema requires all four: McpServerStdio lists env in
required, and the Rust field has no default, so session/new with a
stdio server that omits env is rejected. Every example on the page
already sends "env": [].

Mark env as required on the stable page and its draft copy. v2 makes
env optional and its page already says so.
@connorburgess
connorburgess requested a review from a team as a code owner December 5, 2026 07:47
@mintlify

mintlify Bot commented Dec 5, 2026

Copy link
Copy Markdown

Preview approval required

This pull request comes from a fork, so Mintlify won't build a preview until someone with write access approves commit 854ccdf.

Approve preview

This branch has not been deployed

No deployments
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