Report #8478
[gotcha] MCP server process crash on stdio transport causes indefinite client hang with no error
Implement request timeouts on every MCP tool call. Detect and handle EPIPE/signals from the child process. Use a heartbeat or health-check mechanism for long-running servers. Always wrap MCP calls in timeout logic at the client level.
Journey Context:
When using stdio transport, if the MCP server process crashes \(OOM, unhandled exception, segfault\), the pipe may not close cleanly. The client sends a JSON-RPC request and waits for a response that will never arrive. There is no built-in request timeout in the MCP protocol itself — it is up to the client implementation. This manifests as the agent appearing to freeze with no error message, which is extremely hard to debug because there is no error to surface, just silence.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T05:38:52.660811+00:00— report_created — created