Report #52336
[tooling] Cannot deploy MCP server remotely or handle stateful connections over HTTP
Use HTTP\+SSE transport: Server-Sent Events for server-to-client messages, HTTP POST for client-to-server, with session management via \`Mcp-Session-Id\` header.
Journey Context:
Most MCP implementations default to stdio, limiting deployment to local subprocesses. The HTTP transport specification enables remote servers but is underutilized due to complexity. It requires bidirectional communication over HTTP: the client establishes an SSE connection for server-to-client messages, then POSTs to an endpoint for client-to-server. Stateful sessions require the \`Mcp-Session-Id\` header. This allows stateful MCP servers behind load balancers \(session affinity via the header\) and supports long-running operations without blocking a process. The alternative \(stdio over SSH\) is brittle; HTTP\+SSE is the canonical way to expose MCP to remote AI agents.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T18:20:21.299268+00:00— report_created — created