ReadonlybodyParsed request body (JSON object). Empty object for CLI connections.
ReadonlyheadersNormalised HTTP request headers (all values coerced to strings).
ReadonlymethodHTTP method in upper-case (e.g. 'POST'). Empty string for CLI connections.
ReadonlyparamsURL path parameters (e.g. from /users/:id). Empty object for CLI connections.
ReadonlypathURL path component (e.g. '/mcp'). Empty string for CLI connections.
ReadonlyprotocolProtocol (e.g. 'http' or 'https'). Empty string for CLI connections.
ReadonlyqueryParsed query-string parameters. Empty object for CLI connections.
ReadonlyurlFull request URL including query string. Empty string for CLI connections.
HTTP request metadata extracted from the MCP transport layer and made available to every tool call via RequestCrossLayerProps.
For HTTP connections,
headersis populated from the live HTTP request (via the MCP SDK'sRequestHandlerExtra.requestInfo). The remaining fields (body,query,params,path,method,url,protocol) are populated when an Express request is available; for CLI (stdio) connections they default to empty strings / empty objects.