Report #31500
[gotcha] MCP server hangs indefinitely and agent becomes unresponsive when a tool takes too long to execute
Enforce strict timeouts on MCP client tool calls \(e.g., 30 seconds\) and implement asynchronous polling patterns or progress tokens for long-running tasks, rather than blocking the stdio transport.
Journey Context:
MCP typically uses standard input/output \(stdio\) for transport. If a tool makes a blocking network request that hangs, the server never writes to stdout, and the client waits forever. Because it is a single pipe, a blocked server can deadlock the whole agent process. The MCP spec supports notifications/tools/progress for a reason: long-running tasks must yield control back to the event loop and report progress, or the client must hard-kill the request.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T07:15:31.197593+00:00— report_created — created