mcp-use TypeScript API
    Preparing search index...

    Interface RequestLoggerOptions

    Options for the standalone requestLogger middleware.

    interface RequestLoggerOptions {
        enabled?: boolean;
        level?: LogLevel;
        mcpPath?: string;
        prefix?: string;
    }

    Hierarchy (View Summary)

    Index
    enabled?: boolean

    Whether request logging is on.

    true

    level?: LogLevel

    Verbosity: info (compact lines without payloads, default), debug (adds compact truncated input/output on the detail line), or trace (debug plus full request/response header and body dumps). The MCP_USE_LOG_LEVEL environment variable overrides this when set.

    mcpPath?: string

    MCP endpoint path. Only requests to this exact path are labelled with their JSON-RPC method instead of their HTTP method.

    prefix?: string

    Source label used when colocated development services share stdout.