UNPKG

mcp-use

Version:

Opinionated MCP Framework for TypeScript (@modelcontextprotocol/sdk compatible) - Build MCP Agents, Clients and Servers with support for ChatGPT Apps, Code Mode, OAuth, Notifications, Sampling, Observability and more.

30 lines 1.07 kB
/** * WorkOS OAuth Provider * * Implements OAuth authentication for WorkOS AuthKit. * Supports JWKS-based JWT verification with Dynamic Client Registration. * * WorkOS uses "direct" mode where MCP clients communicate directly with * WorkOS for OAuth flows (registration, authorization, token exchange). * The MCP server only verifies tokens issued by WorkOS. * * Learn more: https://workos.com/docs/authkit/mcp */ import type { OAuthProvider, UserInfo, WorkOSOAuthConfig, OAuthMode } from "./types.js"; export declare class WorkOSOAuthProvider implements OAuthProvider { private config; private issuer; private jwks; constructor(config: WorkOSOAuthConfig); private getJWKS; verifyToken(token: string): Promise<any>; getUserInfo(payload: any): UserInfo; getIssuer(): string; getAuthEndpoint(): string; getTokenEndpoint(): string; getScopesSupported(): string[]; getGrantTypesSupported(): string[]; getMode(): OAuthMode; getRegistrationEndpoint(): string | undefined; } //# sourceMappingURL=workos.d.ts.map