MCP Server Framework - v1.0.0
    Preparing search index...

    Interface LogContext

    Context for the current execution (e.g. Request ID, MCP Connection). Used to correlate logs with specific requests or sessions.

    interface LogContext {
        component?: string;
        event?: EventContext;
        http?: HttpContext;
        requestId?: string;
        sendMcpLog?: (level: LogLevel, message: string) => void;
        sessionId?: string;
        spanId?: string;
        traceId?: string;
    }
    Index

    Properties

    component?: string

    Component name for filtering

    event?: EventContext

    Event categorization for structured logs

    HTTP request context

    requestId?: string

    Unique identifier for the request

    sendMcpLog?: (level: LogLevel, message: string) => void

    Function to send logs to MCP client

    sessionId?: string

    Session identifier

    spanId?: string

    Span ID for distributed tracing

    traceId?: string

    Trace ID for distributed tracing (OpenTelemetry compatible)