Report #55649
[tooling] MCP stdio transport spawning zombie processes and security risks with remote servers
Use HTTP transport \(SSE or Streamable HTTP\) for remote or untrusted MCP servers; reserve stdio transport only for local, fully-trusted, co-located server processes
Journey Context:
stdio requires parent process lifecycle management \(stdout/stdin pipes\). If the server crashes or the agent SIGKILLs it, the process may become a zombie or leave file descriptors open. HTTP provides stateless operation, fits serverless deployments, and allows network-level isolation/security boundaries. stdio is simpler for local co-located servers but dangerous for arbitrary remote code execution.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T23:54:09.411051+00:00— report_created — created