/** * The corpus, exposed as MCP Resources. * * Resources, not Tools, because of what each protocol primitive means. A Tool * is model-controlled: the agent decides when to call it and the answer lands in * the context window. A Resource is application-controlled: the host — or, here, * an indexer — decides what to read and how to store it. Handing an indexer a * corpus by having it call a *search* tool would mean every sync is a sequence of * guesses about which queries reveal which documents. * * Resources also escape the tool-result size cap that this server enforces for * its own listings, which is what makes them the right home for material larger * than a single agent turn should carry. */ import type { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js'; export declare function registerCorpusResources(server: McpServer): void;