import { OAuthClientProvider } from '@modelcontextprotocol/sdk/client/auth.js'; import { OAuthClientInformation, OAuthClientMetadata, OAuthTokens } from '@modelcontextprotocol/sdk/shared/auth.js'; /** * Authentication provider for Bearer token authentication. * * This provider handles simple Bearer token authentication for MCP servers * that use static tokens for authorization. * * @example * ```ts * const authProvider = new BearerTokenAuthProvider('your-bearer-token'); * ``` */ export declare class BearerTokenAuthProvider implements OAuthClientProvider { private readonly bearerToken; /** * Creates a new Bearer token authentication provider. * * @param token - The Bearer token to use for authentication */ constructor(token: string); /** * Gets the redirect URL (not used for Bearer token auth). * * @returns Empty string as Bearer tokens don't require redirects */ get redirectUrl(): string; /** * Gets the OAuth client metadata (minimal for Bearer tokens). * * @returns Client metadata with empty redirect_uris */ get clientMetadata(): OAuthClientMetadata; /** * Gets the client information for the Bearer token. * * @returns Client information with "Token" as client_id */ clientInformation(): OAuthClientInformation; /** * Gets the OAuth tokens containing the Bearer token. * * @returns OAuth tokens object with the Bearer token as access_token */ tokens(): OAuthTokens; /** * Saves tokens (no-op for Bearer tokens). */ saveTokens(): void; /** * Redirects to authorization (no-op for Bearer tokens). */ redirectToAuthorization(): void; /** * Saves code verifier (no-op for Bearer tokens). */ saveCodeVerifier(): void; /** * Gets code verifier (not used for Bearer tokens). * * @returns Empty string */ codeVerifier(): string; } //# sourceMappingURL=BearerTokenAuthProvider.d.ts.map