UNPKG

mcp-framework

Version:

Framework for building Model Context Protocol (MCP) servers in Typescript

20 lines (19 loc) 543 B
import { TokenClaims } from './jwt-validator.js'; export interface IntrospectionConfig { endpoint: string; clientId: string; clientSecret: string; cacheTTL?: number; } export declare class IntrospectionValidator { private config; private cache; constructor(config: IntrospectionConfig); validate(token: string): Promise<TokenClaims>; private introspectToken; private getCachedIntrospection; private cacheIntrospection; private hashToken; private cleanupCache; private convertToClaims; }