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

    Interface RequestCrossLayerProps

    The cross-layer props shape used throughout @node-in-layers/mcp-server. Extends the base CrossLayerProps from @node-in-layers/core with MCP-specific request context.

    This object is automatically built and merged by the server on every tool call — you should never construct it manually. Use combineCrossLayerProps or createCrossLayerProps from @node-in-layers/core if you need to merge additional data into an existing instance.

    Sources merged into every tool call (in order):

    1. crossLayerProps supplied by the AI client in the tool arguments
    2. crossLayerProps nested inside args (used by feature-executor tools)
    3. requestInfo from the HTTP transport (headers) and authInfo if present
    4. Logger correlation IDs from the per-request logger
    // Accessing in a feature function:
    const myFeature = async (args: MyArgs, crossLayerProps: McpCrossLayerProps) => {
    const { headers } = crossLayerProps.requestInfo
    const token = crossLayerProps.authInfo?.token
    // ...
    }
    interface RequestCrossLayerProps {
        authInfo?: Readonly<
            {
                clientId: string;
                expiresAt?: number;
                extra?: Record<string, unknown>;
                resource?: URL;
                scopes: string[];
                token: string;
            },
        >;
        logging?: { ids?: readonly Readonly<Record<string, string>>[] };
        requestInfo: RequestInfo;
    }
    Index

    Properties

    authInfo?: Readonly<
        {
            clientId: string;
            expiresAt?: number;
            extra?: Record<string, unknown>;
            resource?: URL;
            scopes: string[];
            token: string;
        },
    >

    OAuth auth info for the current request, if the server is configured with an OAuth provider and the client has authenticated.

    logging?: { ids?: readonly Readonly<Record<string, string>>[] }
    requestInfo: RequestInfo

    HTTP request metadata for the current tool call.