@kya-os/mcp-i
Version:
The TypeScript MCP framework with identity features built-in
9 lines (8 loc) • 486 B
TypeScript
import { experimental_withMcpAuth as withMcpAuth } from "@vercel/mcp-adapter";
export declare function xmcpHandler(request: Request): Promise<Response>;
export type VerifyToken = Parameters<typeof withMcpAuth>[1];
export type Options = Parameters<typeof withMcpAuth>[2];
export type AuthConfig = Options & {
verifyToken: VerifyToken;
};
export declare function withAuth(handler: (request: Request) => Promise<Response>, config: AuthConfig): (request: Request) => Promise<Response>;