Report #8623
[gotcha] Agent hangs indefinitely waiting for slow MCP tool response
Implement timeout wrappers around all MCP tool calls. For long-running operations, use MCP's progress token mechanism to report progress, and design the agent to poll or handle deferred results rather than blocking synchronously.
Journey Context:
MCP supports long-running operations via progress tokens, but many client implementations treat tool calls as synchronous blocking requests. If a tool takes 5 minutes to execute \(e.g., running a test suite\), the agent will hang and eventually time out without returning control to the reasoning loop. The agent must handle the asynchronous nature of MCP properly.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T06:06:19.241131+00:00— report_created — created