Symptom
After the GET stream drops, the client logs GET stream disconnected, reconnecting in 1000ms... and call_tool does not return. A 30 second wait in the report prints CONFIRMED: call_tool hung for 30s (infinite reconnect loop).
Evidence what you'll see
- Issue #2393 says
_handle_reconnectiontakesattempt=0and returns only whenattempt >= MAX_RECONNECTION_ATTEMPTS, and that the counter is set back to 0, so the cap of 2 never holds. - Issue #3307 expected a clean EOF to emit
JSONRPCErrorwithCONNECTION_CLOSEDand to send onlyLast-Event-ID: evt-0andLast-Event-ID: evt-1.
Why it happens
A reconnect that should spend one attempt starts again at 0. A clean end of the stream can do the same, so a caller with no timeout stays parked while the server keeps closing the stream without a JSON-RPC response.
Affected versions
MCP Python SDK 1.26.0. The report also says 1.27.0 on main was still unpatched. 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
- A stream that drops twice stops, and
call_toolraises instead of logging anotherreconnecting in 1000msline.
If it still fails
- Both reports are about the attempt counter. Issue #2393 is still open. There is no command in the thread that turns the cap back on.
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