mcp-s-oauth
Version:
Express middleware library for MCP (Model Context Protocol) OAuth authentication
13 lines • 725 B
TypeScript
import express from "express";
import type { McpOAuthConfig, McpOAuthMiddleware } from "./types/library.types.js";
/**
* Create MCP OAuth middleware for Express applications
* This library ONLY handles OAuth authentication and provides an authenticated /mcp endpoint.
* Users create their own MCP server inside the handler function.
*
* @param config Configuration object for GitHub OAuth
* @param mcpHandler Function to handle authenticated MCP requests - you create the MCP server here
* @returns Express router with OAuth endpoints and authenticated /mcp endpoint
*/
export declare function McpOAuth(config: McpOAuthConfig, mcpHandler: express.RequestHandler): McpOAuthMiddleware;
//# sourceMappingURL=lib.d.ts.map