Report #71082
[gotcha] MCP server hangs during initialization handshake, blocking the entire agent from starting
Implement a client-side initialization timeout \(10–30 seconds\). If the server does not complete the initialize→initialized handshake within the timeout, treat the server as failed. Continue with remaining servers rather than blocking the entire agent.
Journey Context:
The MCP lifecycle defines an initialize→initialized handshake that must complete before any tool calls. The spec does not specify any timeout. A server that is slow to start \(loading models, connecting to databases, fetching remote config\) can block indefinitely. Since initialization is a prerequisite for all tool access, one stuck server blocks the entire agent — even if other servers are healthy. This is especially painful in multi-server setups where one bad server prevents all others from being used.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T01:53:31.480927+00:00— report_created — created