From 854ccdf87b7cadcab76dfe60cc3548ca1cb7c866 Mon Sep 17 00:00:00 2001 From: connorburgess Date: Sat, 5 Dec 2026 14:45:10 +0700 Subject: [PATCH] docs(v1): mark stdio MCP server env as required in Session Setup 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. --- docs/protocol/v1/draft/session-setup.mdx | 2 +- docs/protocol/v1/session-setup.mdx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/protocol/v1/draft/session-setup.mdx b/docs/protocol/v1/draft/session-setup.mdx index 027e742cd..5ee074e3b 100644 --- a/docs/protocol/v1/draft/session-setup.mdx +++ b/docs/protocol/v1/draft/session-setup.mdx @@ -512,7 +512,7 @@ All Agents **MUST** support connecting to MCP servers via stdio (standard input/ Command-line arguments to pass to the server - + Environment variables to set when launching the server diff --git a/docs/protocol/v1/session-setup.mdx b/docs/protocol/v1/session-setup.mdx index 9dce2906b..9430b5fdd 100644 --- a/docs/protocol/v1/session-setup.mdx +++ b/docs/protocol/v1/session-setup.mdx @@ -478,7 +478,7 @@ All Agents **MUST** support connecting to MCP servers via stdio (standard input/ Command-line arguments to pass to the server - + Environment variables to set when launching the server