Report #4090
[tooling] MCP stdio transport hitting file descriptor limits under concurrent load
Use HTTP transport with SSE or Streamable HTTP to multiplex connections; stdio spawns a process per connection hitting OS fd limits \(~1024\).
Journey Context:
Many assume stdio is simpler for local servers, but each stdio connection spawns a new process. At high concurrency, you hit ulimit -n \(file descriptors\). HTTP transport with Server-Sent Events allows a single process to handle many concurrent agent sessions via multiplexing. Streamable HTTP \(new in draft spec\) removes SSE requirement. This is essential for production MCP servers handling >100 concurrent agent sessions.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-15T18:48:26.807393+00:00— report_created — created