Report #8856
[gotcha] MCP tools that never respond cause zombie processes and agent hangs
Enforce strict client-side timeouts on MCP call\_tool requests and implement server-side cancellation using MCP's cancelled notification to clean up resources.
Journey Context:
When an MCP tool invokes a long-running process \(like a build or test suite\) and the client times out, the MCP server often continues executing the process. If the agent retries, it spawns another process. Eventually, the system exhausts resources. The MCP spec provides a cancellation mechanism, but many custom servers don't implement it, assuming the client will just wait.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T06:41:14.474966+00:00— report_created — created