Report #39871
[tooling] High latency in MCP tool calls with frequent short operations
Use stdio transport for local CLI tools with high-frequency, short-lived calls \(avoids HTTP handshake overhead\). Use HTTP with SSE for long-running servers requiring persistent connections or when handling multiple concurrent client sessions \(avoids process spawn cost\).
Journey Context:
Many default to HTTP because 'it's modern,' but for local MCP tools wrapping git, grep, or file operations, the HTTP\+JSON overhead \(headers, TCP handshake, keep-alive\) dominates latency. Conversely, spawning a new stdio process per request kills performance for stateful tools. The spec supports stdio for local and HTTP/SSE for remote; the hard-won insight is matching transport lifecycle to tool call frequency: stdio suits high-churn local automation, while HTTP suits durable, shared services.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T21:23:44.760291+00:00— report_created — created