part…
Building governance for MCP?
The gateway applies what the guide teaches: policies on discovery, invocation and authorisation.
The gateway applies what the guide teaches: policies on discovery, invocation and authorisation.
To correlate a call from the host with the call the gateway makes to the server, and that one with whatever the server does downstream, MCP adopts W3C Trace Context inside _meta.
traceparent, tracestate and baggage, without a prefix: this is an explicit exception to the _meta prefix rule, kept for compatibility with existing implementations and with the OpenTelemetry semantic conventions for MCP. When present, their values MUST follow the W3C Trace Context and W3C Baggage formats.
{ "jsonrpc": "2.0", "id": 2, "method": "tools/call", "params": {
"name": "get_weather", "arguments": { "location": "New York" },
"_meta": { "traceparent": "00-0af7651916cd43dd8448eb211c80319c-00f067aa0ba902b7-01",
"io.modelcontextprotocol/protocolVersion": "2026-07-28", "io.modelcontextprotocol/clientCapabilities": {} } } }
traceparent formatversion-trace_id-parent_id-flags: 00, 16 hex bytes of trace id, 8 hex bytes of span id, flags (01 = sampled). tracestate carries comma-separated vendor=value pairs; baggage carries key=value pairs to propagate application context (careful: it may contain sensitive data).
params._meta of requests and notifications.Over HTTP, the traceparent headers may also travel at the HTTP level; the MCP convention is to carry them in _meta so that they are transport-independent (it works the same over stdio).
traceparent) and a CLIENT span when calling the server (injecting a new child traceparent). That way a user's call can be followed end to end.baggage: by default do not forward it to third-party servers (it may contain internal identifiers); always forward traceparent/tracestate._meta of subscription notifications (list_changed) has no parent request: trace them as events on the subscriptions/listen span.1. Why does traceparent go without a prefix in _meta?
The spec reserves traceparent, tracestate and baggage without a prefix as an exception.
2. What does the receiver do with the traceparent it receives?
Extraction, and linking of the ambient context if one exists.