Symptom
A tool that runs an external Python script on a stdio server never returns. The same tool returns when the server uses SSE. The script's own print is Successfully Call!. The linked issue does not give an exception class for the hang.
Evidence what you'll see
- The server is
FastMCPwithmcp.run(transport="stdio"). The comment in the report saysmcp.run(transport="sse")works. - The tool is invoked from MCP Inspector. The script prints one line and exits.
Why it happens
On stdio, the server's own stdin and stdout are the MCP transport. A handler subprocess that inherits them writes into that stream, and the tool call never completes.
Affected versions
mcp 1.7.1, Python 3.10.0, Windows 11 24H2 build 26100.3775.
Fix steps
0 of 2 done
Your check marks stay in this browser only.
How to check it worked
- The tool returns the script output
Successfully Call!ontransport="stdio", the same way it already did on SSE.
If it still fails
- On 1.7.1 the report's workaround is to run the server with
transport="sse". The linked issue does not describe a stdio hang on v2.0.0.
Sources and credit
Summarized in our own words from these public reports. Credit goes to their authors.
Provided as is, without warranty. Try changes in a non-production environment and back up first. Security-related steps: verify against the official docs. Terms · Request removal or attribution change
Hit an error we don't cover? Submit it