MCP TypeScript SDK (V2)
    Preparing search index...
    ServerContext: BaseContext & {
        http?: {
            closeSSE?: () => void;
            closeStandaloneSSE?: () => void;
            req?: RequestInfo;
        };
        mcpReq: {
            elicitInput: (
                params: ElicitRequestFormParams | ElicitRequestURLParams,
                options?: RequestOptions,
            ) => Promise<ElicitResult>;
            log: (
                level: LoggingLevel,
                data: unknown,
                logger?: string,
            ) => Promise<void>;
            requestSampling: (
                params: CreateMessageRequest["params"],
                options?: RequestOptions,
            ) => Promise<CreateMessageResult | CreateMessageResultWithTools>;
        };
    }

    Context provided to server-side request handlers, extending BaseContext with server-specific fields.