Repository navigation
docs(v1): mark stdio MCP server env as required in Session Setup - #3044
Open
connorburgess wants to merge 1 commit into
Open
connorburgess wants to merge 1 commit into
connorburgess wants to merge 1 commit into
Conversation
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.
Preview approval requiredThis pull request comes from a fork, so Mintlify won't build a preview until someone with write access approves commit |
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.
The stdio transport fields on the v1 Session Setup page mark
name,commandandargsas required, but notenv. The v1 schema requires all four:McpServerStdiolistsenvinrequired, and the Rust field has no default.Validating this
session/newpayload againstNewSessionRequestinschema/v1/schema.jsonandschema/v1/schema.unstable.jsonfails 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": []. Markenvas required on the stable page and its draft copy. v2 makesenvoptional, 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.