/** * AgentRouter MCP Server * Creates and configures the MCP server with tool capabilities */ import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js"; import { DebugLogger } from "./observability/debug-logger.js"; import { ContextManager } from "./router/context-manager.js"; import { StateStore } from "./persistence/state-store.js"; import { HookManager } from "./hooks/index.js"; import { BackgroundTaskRunner } from "./background/index.js"; import { MCPAutoMode } from "./mcp/auto-mode.js"; import { SkillLoader, SkillExecutor } from "./skills/index.js"; /** * Creates and configures the MCP server * @returns Promise resolving to configured MCP Server instance */ export declare function createServer(): Promise; /** * Starts the server with stdio transport * @param server - The MCP server instance to start */ export declare function startServer(server: McpServer): Promise; /** * Gets the active state store (if initialized). * @returns The StateStore instance or undefined if not initialized */ export declare function getStateStore(): StateStore | undefined; /** * Gets the active repository path (if initialized). * @returns The repository path or undefined if not initialized */ export declare function getRepoPath(): string | undefined; /** * Gracefully shuts down the server, persisting final state. * Call this before process exit to ensure no state is lost. */ export declare function shutdownServer(): Promise; /** * Gets the active ContextManager instance. * @returns The ContextManager instance or undefined if not initialized */ export declare function getContextManager(): ContextManager | undefined; /** * Gets the active HookManager instance. * @returns The HookManager instance or undefined if not initialized */ export declare function getHookManager(): HookManager | undefined; /** * Gets the active BackgroundTaskRunner instance. * @returns The BackgroundTaskRunner instance or undefined if not initialized */ export declare function getBackgroundRunner(): BackgroundTaskRunner | undefined; /** * Gets the active MCPAutoMode instance. * @returns The MCPAutoMode instance or undefined if not initialized */ export declare function getMCPAutoMode(): MCPAutoMode | undefined; /** * Gets the active SkillLoader instance. * @returns The SkillLoader instance or undefined if not initialized */ export declare function getSkillLoader(): SkillLoader | undefined; /** * Gets the active SkillExecutor instance. * @returns The SkillExecutor instance or undefined if not initialized */ export declare function getSkillExecutor(): SkillExecutor | undefined; /** * Gets the active DebugLogger instance. * @returns The DebugLogger instance or undefined if not initialized */ export declare function getDebugLogger(): DebugLogger | undefined; //# sourceMappingURL=server.d.ts.map