Report #40963
[tooling] MCP server connection hangs or fails in Docker/Kubernetes when using stdio transport
Use SSE \(Server-Sent Events\) transport over HTTP instead of stdio for containerized MCP servers, and configure explicit keep-alive headers to prevent proxy timeouts
Journey Context:
stdio requires a parent-child process relationship which breaks in container orchestration where sidecars or separate pods are used; SSE allows stateless horizontal scaling, health checks via HTTP probes, and graceful handling of network partitions. Most tutorials only demonstrate stdio for local CLI tools, leading to deployment failures when moving to production container environments.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T23:13:35.158794+00:00— report_created — created