/** * RVF MCP Server — core server implementation. * * Registers all RVF tools, resources, and prompts with the MCP SDK. Stores * are real on-disk `.rvf` files (via @ruvector/rvf) confined to a data dir, * so queries are index-backed and data survives server restarts. */ import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js'; export interface RvfMcpServerOptions { /** Server name shown to MCP clients. Default: 'rvf-mcp-server'. */ name?: string; /** Server version. Default: '0.1.0'. */ version?: string; /** Default vector dimensions for new stores. Default: 128. */ defaultDimensions?: number; /** Maximum open stores. Default: 64. */ maxStores?: number; /** * Directory that holds every store. Tool `path` arguments are resolved * inside it and may not escape it. Default: $RVF_MCP_DATA_DIR, else * ~/.rvf-mcp-server. */ dataDir?: string; /** Auto-compaction thresholds after ingest. Default: {@link AUTO_COMPACT}. */ autoCompact?: { minBytes: number; ratio: number; }; } /** Upper bounds on model-supplied sizes (tool arguments are untrusted). */ export declare const LIMITS: { readonly maxDimensions: 65536; readonly maxK: 10000; readonly maxBatch: 10000; }; /** Auto-compaction after ingest: file larger than `minBytes` AND `ratio` x live vector bytes. */ export declare const AUTO_COMPACT: { readonly minBytes: number; readonly ratio: 8; }; export declare class RvfMcpServer { readonly mcp: McpServer; private stores; private nextId; private opts; constructor(options?: RvfMcpServerOptions); /** Directory that holds this server's stores. */ get dataDir(): string; private withStore; private register; /** * Report each hit by the string id embedded in the .rvf when present. A * hit without one is only trustworthy while the id map is beside the store; * otherwise its id is a bare internal label, so fail instead of returning it. */ private withStringIds; /** k-NN with exact-match metadata filtering applied to an over-fetched result. */ private search; private registerTools; private listStores; private closeHandle; private registerResources; private registerPrompts; connect(transport: Parameters[0]): Promise; close(): Promise; get storeCount(): number; }