/** * OpenKernel — MCP Server * * The north-facing control surface. Any MCP host (InfiniBot, Claude Code, * Cursor…) connects over stdio and drives infinicode's mesh with standard MCP * tools: spawn agents on devices, dispatch by capability, run commands, manage * per-device role context, speak via voice, and get the live mesh map. * * Real-time activity/telemetry for harness animation is served over the * federation SSE endpoint (returned by `stream_info`), keeping tool calls small * and the animation feed lightweight — the same split InfiniBot uses. */ import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js'; import type { KernelLike, Logger } from '../types.js'; import type { Federation } from '../federation/index.js'; import type { GoalLoop } from '../autonomy/index.js'; export interface McpServerDeps { kernel: KernelLike; federation: Federation; logger: Logger; version: string; /** Optional autonomy loop — enables the goal management tools when present. */ autonomy?: GoalLoop; } export declare function createMcpServer(deps: McpServerDeps): McpServer; /** Start the MCP server over stdio (the transport MCP hosts spawn). */ export declare function serveMcpStdio(deps: McpServerDeps): Promise;