@node-in-layers/mcp-server
    Preparing search index...

    Interface RequestInfo

    HTTP request metadata extracted from the MCP transport layer and made available to every tool call via RequestCrossLayerProps.

    For HTTP connections, headers is populated from the live HTTP request (via the MCP SDK's RequestHandlerExtra.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.

    interface RequestInfo {
        body: Record<string, any>;
        headers: Record<string, string>;
        method: string;
        params: Record<string, string>;
        path: string;
        protocol: string;
        query: Record<string, string>;
        url: string;
    }
    Index

    Properties

    body: Record<string, any>

    Parsed request body (JSON object). Empty object for CLI connections.

    headers: Record<string, string>

    Normalised HTTP request headers (all values coerced to strings).

    method: string

    HTTP method in upper-case (e.g. 'POST'). Empty string for CLI connections.

    params: Record<string, string>

    URL path parameters (e.g. from /users/:id). Empty object for CLI connections.

    path: string

    URL path component (e.g. '/mcp'). Empty string for CLI connections.

    protocol: string

    Protocol (e.g. 'http' or 'https'). Empty string for CLI connections.

    query: Record<string, string>

    Parsed query-string parameters. Empty object for CLI connections.

    url: string

    Full request URL including query string. Empty string for CLI connections.