How to Route MCP Traffic Through a Gateway With the Mcp-Method and Mcp-Name Headers

MCP 2026-07-28 mirrors the JSON-RPC method and target name into HTTP headers so a gateway can route, throttle, and audit without parsing the body. Here is a working gateway, plus the header-body agreement rule that will bite you.