MCP TypeScript SDK (V2)
    Preparing search index...
    • Applies client authentication to the request based on the specified method.

      Implements OAuth 2.1 client authentication methods:

      • client_secret_basic: HTTP Basic authentication (RFC 6749 Section 2.3.1)
      • client_secret_post: Credentials in request body (RFC 6749 Section 2.3.1)
      • none: Public client authentication (RFC 6749 Section 2.1)

      Parameters

      • method: ClientAuthMethod

        The authentication method to use

      • clientInformation: {
            client_id: string;
            client_id_issued_at?: number;
            client_secret?: string;
            client_secret_expires_at?: number;
        }

        OAuth client information containing credentials

      • headers: Headers

        HTTP headers object to modify

      • params: URLSearchParams

        URL search parameters to modify

      Returns void

      When required credentials are missing