UNPKG

@grebyn/toolflow-mcp-server

Version:

MCP server for managing other MCP servers - discover, install, organize into bundles, and automate with workflows. Uses StreamableHTTP transport with dual OAuth/API key authentication.

22 lines 773 B
import { IncomingMessage, ServerResponse } from 'http'; import { AuthContext } from './types.js'; /** * Token Pass-through Handler * * This handler does NOT validate JWTs locally. * It simply extracts the token and passes it to the backend API * where validation happens with the actual JWT secret. */ export declare class TokenPassthrough { private apiEndpoint; constructor(apiEndpoint: string); /** * Extract token from request and validate with backend API */ extractToken(req: IncomingMessage): Promise<AuthContext>; /** * Send unauthorized response when API rejects the token */ sendUnauthorizedResponse(req: IncomingMessage, res: ServerResponse, error?: Error): void; } //# sourceMappingURL=token-passthrough.d.ts.map