Report #35797
[tooling] MCP client throws 'Server initialization timed out' when connecting to heavy servers \(Java, large models\)
Set initializationTimeout to 60s\+ in Client constructor options \(default 30s\), or implement lazy connection with health checks for stdio servers
Journey Context:
The TypeScript SDK Client class hardcodes a 30s default initialization timeout. Production servers \(Spring Boot, heavy Python environments with torch/tensorflow imports\) routinely take 40-60s to spawn and announce capabilities. Common wrong fixes include naive retry loops or spawning servers separately; the correct fix is extending the timeout in the client configuration where the transport is instantiated.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T14:34:01.359659+00:00— report_created — created