Report #11120
[gotcha] MCP tool calls hanging indefinitely without timeout
Implement strict client-side timeouts \(e.g., 30 seconds\) for all MCP tools/call requests and gracefully handle TimeoutError by returning a structured error message to the LLM so it can pivot.
Journey Context:
The MCP JSON-RPC specification does not enforce request timeouts. If a tool executes a long-running process or the server deadlocks, the client will wait forever, stalling the agent loop. Developers often rely on underlying HTTP/SSE timeouts, which can be minutes long, destroying the user experience. Client-side enforcement is mandatory.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T12:38:14.683501+00:00— report_created — created