Why your MCP client says "connection failed" — the 3 HTTP verbs you can't skip

A streamable-HTTP MCP endpoint is not just POST. If GET or DELETE return 404, clients report a vague "connection failed" — even when your curl works perfectly.

The trap: three verbs, not one

The Model Context Protocol's streamable HTTP transport specifies three verbs:

Most "it works when I curl it" checks only hit POST. That's fine for a one-shot curl, but a real MCP client does the full lifecycle: open a GET stream, send POST messages, then DELETE on shutdown. If GET returns 404, the client can't establish its response channel and reports "connection failed."

A real incident

This happened on our hosted gateway: a connector platform (Tencent's WorkBuddy) reported "connection failed" for a single-service endpoint (/mcp/{serviceId}) that only implemented POST, while the main gateway endpoint (/mcp/gateway) implemented all three verbs. Adding GET (SSE upgrade) and DELETE (session teardown) routes fixed it instantly. The thousands of successful POST calls that day had been unaffected — only clients doing the full lifecycle broke.

Verify all three verbs

curl -X POST   .../mcp -d '{"jsonrpc":"2.0","method":"initialize","params":{"protocolVersion":"2025-06-18"},"id":1}'   # expect 200
curl -X GET    .../mcp -H 'Accept: text/event-stream'                                                                 # expect 200 + SSE stream
curl -X DELETE .../mcp                                                                                                 # expect 200

If GET or DELETE 404s, some client somewhere will report "connection failed" and you won't know why. This is the detail that separates a gateway that works in a demo from one that works with real clients.

JiZhiMCP is a hosted MCP gateway — host any HTTP API as MCP tools behind a single streamable-HTTP endpoint, with 21 built-in tools.

What is Streamable HTTP in MCP · Best MCP gateway · Cross-agent settlement