import { TsoaRouteEntry } from "./registry.js"; import { Router } from "express"; //#region src/lib/handler.d.ts interface TsoaMcpOptions { /** Name of the MCP server exposed to clients */ name: string; /** Version string */ version: string; /** The generated tsoaRouteRegistry array */ registry: TsoaRouteEntry[]; /** Path to mount the MCP endpoint on. Defaults to "/mcp" */ path?: string; } /** * Creates a stateless MCP server from a TSOA route registry and mounts it on an Express router. * * Stateless mode: each POST creates a fresh McpServer + transport, handles the request, * and tears down. No session tracking, no shared state — safe for distributed deployments * behind a load balancer. * * Only routes whose controller methods are decorated with @Tool are exposed. * * @example * ```typescript * import { tsoaRouteRegistry } from './build/routes'; * import { mountMcp } from 'tsoa-mcp'; * * mountMcp(app, { * name: 'my-api', * version: '1.0.0', * registry: tsoaRouteRegistry, * }); * ``` */ declare function mountMcp(app: Router, opts: TsoaMcpOptions): void; //#endregion export { TsoaMcpOptions, mountMcp }; //# sourceMappingURL=handler.d.ts.map