/** * MCP (Model Context Protocol) server for the codebase semantic search. * * Exposes four tools to any MCP-compatible client (Claude Code, GitHub * Copilot Chat, OpenCode, Codex, etc.): * * - codebase_semantic_search — query the index by meaning * - codebase_read_file — fetch a file slice by line range (sed -n 'A,Bp') * - codebase_clip — fetch a clip by short numeric id (from search) * - codebase_stats — chunk count and collection name * * Transport: stdio. The agent runtime spawns this process on demand and * exchanges JSON-RPC over stdin/stdout. No port, no daemon. * * The clip store is per-process and ephemeral — each MCP server start * starts with an empty store. Callers who need an id must run a search in * the same process to receive it. */ import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js'; /** * One MCP server with every tool registered. A server serves one client, so * stdio builds one and the HTTP transport builds one per session. */ export declare function createMcpServer(): McpServer; export declare function startMcpServer(): Promise;