/** * MCP Server for cortex-engine. * * Wires providers, stores, namespaces, triggers, and bridges together * and exposes them as MCP tools over stdio. */ import { Server } from '@modelcontextprotocol/sdk/server/index.js'; import type { CortexConfig } from '../core/config.js'; import type { ToolContext, ToolDefinition } from './tools.js'; /** Shared engine context — used by both MCP and REST servers. */ export interface EngineContext { ctx: ToolContext; activeTools: ToolDefinition[]; allTools: ToolDefinition[]; config: CortexConfig; } /** * Create the engine context (providers, stores, tools) without binding to any transport. * Both MCP and REST servers use this to avoid duplicating setup logic. */ export declare function createContext(config: CortexConfig): Promise; export declare function createServer(config: CortexConfig): Promise; /** Start the MCP server using stdio transport. Called by bin/serve.ts. */ export declare function startServer(config: CortexConfig): Promise; //# sourceMappingURL=server.d.ts.map