Report #72527
[gotcha] Agent calls MCP tool that fails because the server process crashed — tool definition still cached
Implement health-check pings to MCP servers. On tool call failure, distinguish 'server down' from 'tool error' and re-run tools/list on the server before retrying. Build retry logic that refreshes the tool registry. Log server lifecycle events to detect crashes early.
Journey Context:
MCP servers are long-lived processes that can crash, OOM, or be killed by the OS. When a server dies, its tool definitions remain in the client's cache. The agent then calls a zombie tool and gets an opaque error — often a transport-level failure that doesn't clearly indicate 'the server is gone.' The agent may retry the same call, wasting turns. In long-running sessions, a server that was healthy at startup can die hours later, making the failure seem inexplicable. The fix requires the client to monitor server health and invalidate cached tool definitions on failure. The MCP lifecycle spec supports re-initialization, but clients must implement it.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T04:19:44.732066+00:00— report_created — created