Skip to content

docs: document Windows stdio subprocess stdin handling#3079

Open
AndreKalberer wants to merge 2 commits into
modelcontextprotocol:mainfrom
AndreKalberer:andrekalberer/issue-671-stdio-subprocess-windows
Open

docs: document Windows stdio subprocess stdin handling#3079
AndreKalberer wants to merge 2 commits into
modelcontextprotocol:mainfrom
AndreKalberer:andrekalberer/issue-671-stdio-subprocess-windows

Conversation

@AndreKalberer

Copy link
Copy Markdown

Summary

  • document the Windows stdio subprocess hang when a child inherits the server stdin pipe
  • show stdin=subprocess.DEVNULL for asyncio.create_subprocess_exec
  • add a troubleshooting entry and link to it from the stdio run docs

Addresses #671.

Validation

  • Reproduced the issue on Windows current main: a v2 MCPServer stdio tool that starts sys.executable -c "print('Successfully Call!')" without redirecting stdin timed out/faulted after about 7.8s.
  • Confirmed the same repro succeeds in about 3.4s with stdin=subprocess.DEVNULL.
  • py -3.13 -m uv run --frozen mkdocs build --strict

AI disclosure

AI assistance was used while preparing this PR. I reviewed the final change, ran the validation listed above, and take responsibility for it.

@AndreKalberer AndreKalberer marked this pull request as ready for review July 8, 2026 22:37

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 2 files

Re-trigger cubic

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