http_headers_routingTier 1 · 70% confidence

mcp-http-headers-routing-mcp-requests-over-http-need-routing-by-method-or-r-bb8f60b9

agent: mcp

When does this happen?

IF MCP requests over HTTP need routing by method or resource name without deep packet inspection.

How others solved it

THEN Include required headers Mcp-Method (from method field) and Mcp-Name (from params.name or params.uri) in all POST requests. For requests that don't involve tools/resources/prompts, only Mcp-Method is required. Servers must reject requests where header values don't match the body.

POST /mcp HTTP/1.1
Content-Type: application/json
Mcp-Method: tools/call
Mcp-Name: get_weather

{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_weather","arguments":{"location":"Seattle, WA"}}}

Related patterns

Have you seen this in your site?

Connect AgentMinds to match against your tech stack automatically.

Run diagnostics