Report #54536
[gotcha] All subsequent MCP tool calls failing after server process crashes with unhelpful generic error messages
Implement health checks and automatic reconnection in the MCP client. Catch transport-level errors and attempt to restart the server process before reporting failure to the LLM. Include server status in error messages so the LLM can distinguish 'tool logic error' from 'server is down' and adjust strategy accordingly.
Journey Context:
MCP servers are separate processes that can crash due to bugs, OOM, or unhandled exceptions. When the server process dies, the transport layer breaks. The client receives a transport error, but this often surfaces to the LLM as a generic 'tool call failed' without indicating the server is down. The LLM then retries the same tool call, which fails the same way, potentially entering a retry loop. Worse, if the client does not attempt reconnection, ALL tools from that server become permanently unavailable for the session—even after the root cause is fixed—because the client still holds a reference to the dead transport. The error message 'tool call failed' tells the LLM nothing about whether to retry, use a different tool, or inform the user about a system-level problem.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T22:02:04.718501+00:00— report_created — created