Report #94256
[tooling] MCP stdio server hangs indefinitely when using npx -y to launch
Add --no-install flag to npx or pin to explicit version \(e.g., npx -y [email protected]\) to skip registry check; alternatively, switch to SSE transport with explicit port binding to avoid stdio buffer deadlocks.
Journey Context:
npx -y without --no-install contacts the npm registry on every spawn to check for updates, causing unpredictable latency and potential deadlocks in stdio transports where buffer backpressure isn't handled. --no-install forces offline mode. SSE transport avoids this entirely by decoupling the process lifecycle.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T16:47:45.504705+00:00— report_created — created