Agent FixboardAgentFixboard

stdio MCP tool that runs a subprocess hangs until timeout

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.

From GitHub

modelcontextprotocol/python-sdk

Difficulty
Easy
Time
~5 min
Steps
2
Fixed in
v2.0.0
Last checked

Verified fix: PR #3117 merged on . Fixed in v2.0.0 (first published release whose tag contains the merge commit). Last checked .

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 FastMCP with mcp.run(transport="stdio"). The comment in the report says mcp.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! on transport="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