UNPKG

mongodocs-mcp

Version:

Lightning-fast semantic search for MongoDB documentation via Model Context Protocol. 10,000+ documents, <500ms search.

64 lines 1.56 kB
/** * Document Refresher for MongoDB Semantic MCP * Handles incremental updates to keep documentation current */ import { RefreshResult, MongoDBProduct } from '../types/index.js'; interface RefreshOptions { mode: 'incremental' | 'full'; products?: MongoDBProduct[]; } export declare class DocumentRefresher { private mongodb; private fetcher; private chunker; private pipeline; private initialized; constructor(); initialize(): Promise<void>; /** * Refresh documentation based on mode */ refresh(options: RefreshOptions): Promise<RefreshResult>; /** * Incremental refresh - only update changed documents */ private incrementalRefresh; /** * Full refresh - reprocess all documentation */ private fullRefresh; /** * Get existing document hashes from MongoDB */ private getExistingDocumentHashes; /** * Process new documents */ private processNewDocuments; /** * Update existing documents */ private updateDocuments; /** * Remove deleted documents */ private removeDocuments; /** * Generate hash for document content */ private hashDocument; /** * Update refresh metadata */ private updateRefreshMetadata; /** * Get last refresh information */ getLastRefreshInfo(): Promise<any>; /** * Get sources to fetch based on requested products */ private getSourcesToFetch; } export {}; //# sourceMappingURL=document-refresher.d.ts.map