import { Server } from "@modelcontextprotocol/sdk/server/index.js"; export interface McpServerDeps { name: string; version: string; instructions: string; turboEnabled: boolean; handleTool: (name: string, args: Record, depth?: number) => Promise; } export interface McpServerHandle { server: Server; start(): Promise; } /** * Create an MCP server pre-wired with: * - ListTools / CallTool handlers * - tool-list-changed notifier hooked into the registry * - client detection on `oninitialized` (adds per-client aliases) * * The server is returned along with a `start()` helper that opens a stdio * transport. Lifecycle (signal handlers, kernel.disposeAll) stays in the * caller so the server module is pure plumbing. */ export declare function createMcpServer(deps: McpServerDeps): McpServerHandle; //# sourceMappingURL=mcp-server.d.ts.map