Report #47367
[tooling] Choosing HTTP/SSE over stdio for local MCP tool servers
Use stdio \(Standard Input/Output\) transport for local MCP servers spawned as subprocesses by the agent, reserving HTTP with Server-Sent Events \(SSE\) only for remote servers or multi-client scenarios.
Journey Context:
HTTP feels 'more modern' and easier to debug with curl, but for local AI coding agents, stdio is operationally superior. HTTP introduces port allocation conflicts \(port 3000 is taken\), firewall prompts, and zombie processes when the agent crashes. stdio binds the server lifecycle to the parent agent \(killing the agent kills the server\), requires zero network configuration, and works seamlessly in isolated/containerized environments without network namespaces. The tradeoff is that stdio is strictly 1:1 \(one client per server instance\), but that's exactly the desired topology for local agent tools. HTTP is necessary only when the server must outlive the client or serve multiple concurrent clients.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T09:59:38.589937+00:00— report_created — created