import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js"; import { MetricsCollector } from "./analytics/metrics-collector.js"; import type { DashboardDeps } from "./dashboard/api-routes.js"; /** * Create and configure the Twining MCP server. * Auto-creates .twining/ directory on first use. */ export interface ServerContext { server: McpServer; metricsCollector: MetricsCollector; twiningDir: string; config: import("./utils/types.js").TwiningConfig; /** Shared store/engine instances for the dashboard — one stack, not two. */ dashboardDeps: DashboardDeps; /** Close the sqlite handle (sqlite checkpoints its WAL on close — S4-7). * No-op on the files backend. Registered against process exit in index.ts. */ closeDb: () => void; } export declare function createServer(projectRoot: string): ServerContext; //# sourceMappingURL=server.d.ts.map