/** * MCP Server implementation * Mirrors Python MCPServer class + run_mcp_server_with_oauth */ import type { ToolDefinition } from './types.js'; import { type Config as RuntimeConfig } from './runtime/config.js'; export interface RunMcpServerOptions { /** Array of tool definitions created by protectedByAuthSec() and mcpTool() */ tools: ToolDefinition[]; /** Your client ID from AuthSec */ clientId: string; /** Application name */ appName: string; /** Server host (default: "0.0.0.0") */ host?: string; /** Server port (default: 3005) */ port?: number; /** Optional path to SPIRE agent socket */ spireSocketPath?: string; /** AuthSec-protected MCP path (default: "/mcp"). */ path?: string; /** Explicit runtime config. If omitted, AUTHSEC_* env vars are used when present. */ runtimeConfig?: RuntimeConfig; /** Set false to force the legacy SDK Manager OAuth-tools flow only. */ enableRuntime?: boolean; } /** * Run MCP server using SDK Manager for auth. * * @example * ```ts * import { protectedByAuthSec, mcpTool, runMcpServerWithOAuth } from '@authsec/sdk'; * * const myTool = protectedByAuthSec({ * toolName: 'my_tool', * roles: ['admin'], * }, async (args, session) => { * return [{ type: 'text', text: 'Hello!' }]; * }); * * runMcpServerWithOAuth({ * tools: [myTool], * clientId: 'your-client-id', * appName: 'my-app', * }); * ``` */ export declare function runMcpServerWithOAuth(options: RunMcpServerOptions): void; //# sourceMappingURL=mcp-server.d.ts.map