@koduhai/mcp-kit
    Preparing search index...

    Interface ProtectMcpServerResult

    interface ProtectMcpServerResult {
        metadata: {
            authorization_endpoint: string;
            client_id_metadata_document_supported?: boolean;
            code_challenge_methods_supported?: string[];
            grant_types_supported?: string[];
            introspection_endpoint?: string;
            introspection_endpoint_auth_methods_supported?: string[];
            introspection_endpoint_auth_signing_alg_values_supported?: string[];
            issuer: string;
            registration_endpoint?: string;
            response_modes_supported?: string[];
            response_types_supported: string[];
            revocation_endpoint?: string;
            revocation_endpoint_auth_methods_supported?: string[];
            revocation_endpoint_auth_signing_alg_values_supported?: string[];
            scopes_supported?: string[];
            service_documentation?: string;
            token_endpoint: string;
            token_endpoint_auth_methods_supported?: string[];
            token_endpoint_auth_signing_alg_values_supported?: string[];
            [key: string]: unknown;
        };
        requireAuth: RequestHandler;
        resourceMetadataUrl: string;
    }
    Index

    Properties

    metadata: {
        authorization_endpoint: string;
        client_id_metadata_document_supported?: boolean;
        code_challenge_methods_supported?: string[];
        grant_types_supported?: string[];
        introspection_endpoint?: string;
        introspection_endpoint_auth_methods_supported?: string[];
        introspection_endpoint_auth_signing_alg_values_supported?: string[];
        issuer: string;
        registration_endpoint?: string;
        response_modes_supported?: string[];
        response_types_supported: string[];
        revocation_endpoint?: string;
        revocation_endpoint_auth_methods_supported?: string[];
        revocation_endpoint_auth_signing_alg_values_supported?: string[];
        scopes_supported?: string[];
        service_documentation?: string;
        token_endpoint: string;
        token_endpoint_auth_methods_supported?: string[];
        token_endpoint_auth_signing_alg_values_supported?: string[];
        [key: string]: unknown;
    }

    The resolved Authorization Server metadata.

    requireAuth: RequestHandler

    Express middleware that guards your MCP endpoint(s): validates the bearer token and sets req.auth.

    resourceMetadataUrl: string

    The RFC 9728 protected-resource-metadata URL clients discover via the 401 WWW-Authenticate header.