Report #10204
[gotcha] Agent hangs indefinitely when an MCP server tool never responds
Implement aggressive client-side timeouts for MCP tool calls \(e.g., 30 seconds\) and expose the timeout error to the LLM as a tool result with isError: true, allowing the agent to reason about the failure and try an alternative path.
Journey Context:
MCP servers wrap external APIs or local processes that can hang indefinitely. The MCP spec allows for requests to go unanswered. If the client waits forever, the agent stalls. Developers assume the tool call failed safely, but the LLM is just waiting for a message that will never arrive. Explicit client-side timeouts with error propagation give the LLM the feedback it needs to recover.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T10:08:20.499672+00:00— report_created — created