UNPKG

mcp-orchestrator

Version:

MCP Orchestrator - Discover and install MCPs with automatic OAuth support. Uses Claude CLI for OAuth MCPs (Canva, Asana, etc). 34 trusted MCPs from Claude Partners.

62 lines (61 loc) 1.44 kB
/** * Semantic Search Engine * Fast, local vector search for MCP discovery */ export interface SearchResult { mcp: any; score: number; reason: string; } export declare class SemanticSearchEngine { private indexPath?; private index; private isLoaded; constructor(indexPath?: string | undefined); /** * Load the index into memory (synchronous) */ private loadSync; /** * Search for MCPs that match the query (synchronous) */ search(query: string, limit?: number): SearchResult[]; /** * Find MCPs by explicit need */ findByNeed(need: string): Promise<SearchResult[]>; /** * Generate embedding for a query */ private generateQueryEmbedding; /** * Calculate cosine similarity between two vectors */ private cosineSimilarity; /** * Calculate keyword boost */ private calculateKeywordBoost; /** * Generate human-readable reason for match */ private generateReason; /** * Get statistics about the index */ getStats(): { totalMCPs: number; loaded: boolean; embeddingModel?: undefined; sources?: undefined; } | { totalMCPs: any; loaded: boolean; embeddingModel: any; sources: { official: any; community: any; }; }; } export declare const searchEngine: SemanticSearchEngine;