Agent FixboardAgentFixboard

Tool call hangs until timeout when the server sends a bad response

call_tool on the streamable HTTP client never returns after an invalid JSONRPCMessage. The report says the client stays in a wait for the tool result until a timeout. The linked issue does not give an exception class for that wait.

From GitHub

modelcontextprotocol/python-sdk

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

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

Symptom

call_tool on the streamable HTTP client never returns after an invalid JSONRPCMessage. The report says the client stays in a wait for the tool result until a timeout. The linked issue does not give an exception class for that wait.

Evidence what you'll see

  • The server has already finished the tool call and moved to /done, so the client and server disagree.
  • The report points at await read_stream_writer.send(exc) during exception handling. That send did not surface the bad message to the caller.

Why it happens

A bare exception from a bad response was not turned into a JSON-RPC error on the read stream, so call_tool kept waiting for a result that would not arrive.

Affected versions

MCP Python SDK 1.11.0, Python 3.12. The linked issue does not name an operating system.

Fix steps

0 of 2 done

Your check marks stay in this browser only.

How to check it worked

  • call_tool returns when the response is not a valid JSONRPCMessage, instead of waiting until the timeout.

If it still fails

  • The linked issue does not describe a hang that remains on v2.0.0. On 1.11.0 the wait is the behavior above.

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