# MCP HTTP Routing Headers in Gateway Logs

> MCP HTTP routing headers let a gateway classify and observe requests without decoding the entire body. See practical examples and verification steps.

URL: https://www.matthewswong.com/en/blog/mcp-http-routing-header-observability/

- Author: Matthews Wong (https://www.matthewswong.com/en/about/)
- Published: 2026-12-03
- Updated: 2026-12-03
- Category: AI

> **Key takeaway:** MCP HTTP routing headers let a gateway classify and observe requests without decoding the entire body. Use the revision-specific transport rules to build a routing policy, then compare logs with application results. The server still validates and authorises operations because routing metadata and access decisions serve different purposes.

Which field is useful in logs?

Capture Mcp-Method alongside a request ID and upstream status. This makes a discovery burst visible beside slower executions. Keep method values bounded in metrics so an unexpected value cannot create a new series for every request.

Where should request checks run?

Let the gateway handle approved routing categories and let the server check the message according to the negotiated revision. Keep validation error reporting visible in staging. It helps distinguish invalid traffic from a valid call routed to the wrong service.

What is a small routing rehearsal?

Take two authorised discovery calls and two calls to a fixture lookup. Compare their upstream routes and response bodies. Disable optional gateway enrichment during a second run to expose any accidental dependency on a field the gateway adds.

What data should stay out of telemetry?

Log a bounded method and outcome, with redacted request identifiers where appropriate. Avoid logging tokens and arbitrary tool arguments. An invoice lookup or customer support query can carry personal data even when it changes nothing in the database.

How do old clients affect rollout?

Run a known older client before enforcing behaviour intended for the July revision. Record supported paths from observed requests and add a fixture per path. A gateway rule applied uniformly across revisions can break discovery before tool execution starts.

How can a dashboard help triage?

Chart errors and latency by method and upstream. If discovery errors rise while ordinary calls continue to succeed, check the discovery route and its permissions first. Attach one redacted trace to the incident record so the diagnosis is repeatable.

## Sources and further reading

- MCP specification 2026-07-28
- MCP July release notes
- MCP transport rules
- MCP lifecycle and discovery

## Source links

- https://modelcontextprotocol.io/specification/2026-07-28
- https://blog.modelcontextprotocol.io/posts/2026-07-28/
- https://modelcontextprotocol.io/specification/2026-07-28/basic/transports/streamable-http
- https://modelcontextprotocol.io/specification/2026-07-28/basic/versioning

## FAQ

### Which field is useful in logs?

Capture Mcp-Method alongside a request ID and upstream status. This makes a discovery burst visible beside slower executions. Keep method values bounded in metrics so an unexpected value cannot create a new series for every request.

### Where should request checks run?

Let the gateway handle approved routing categories and let the server check the message according to the negotiated revision. Keep validation error reporting visible in staging. It helps distinguish invalid traffic from a valid call routed to the wrong service.

### What is a small routing rehearsal?

Take two authorised discovery calls and two calls to a fixture lookup. Compare their upstream routes and response bodies. Disable optional gateway enrichment during a second run to expose any accidental dependency on a field the gateway adds.

### What data should stay out of telemetry?

Log a bounded method and outcome, with redacted request identifiers where appropriate. Avoid logging tokens and arbitrary tool arguments. An invoice lookup or customer support query can carry personal data even when it changes nothing in the database.

### How do old clients affect rollout?

Run a known older client before enforcing behaviour intended for the July revision. Record supported paths from observed requests and add a fixture per path. A gateway rule applied uniformly across revisions can break discovery before tool execution starts.

---

- HTML version: https://www.matthewswong.com/en/blog/mcp-http-routing-header-observability/
- Bahasa Indonesia: https://www.matthewswong.com/id/blog/mcp-http-routing-header-observability/
- Site index for agents: https://www.matthewswong.com/llms.txt
- Sitemap: https://www.matthewswong.com/sitemap.xml
- API description (OpenAPI): https://www.matthewswong.com/openapi.json
