/** * CodeSeeker MCP Server (Consolidated) * * Exposes CodeSeeker's semantic search and code analysis capabilities * as an MCP (Model Context Protocol) server for use with Claude Desktop * and Claude Code. * * Single sentinel tool: codeseeker * Routes to: search (q), symbol lookup (sym), graph traversal (graph), * analysis (analyze), index management (index) * * Usage: * codeseeker serve --mcp * * Then add to claude_desktop_config.json: * { * "mcpServers": { * "codeseeker": { * "command": "codeseeker", * "args": ["serve", "--mcp"] * } * } * } */ /** * MCP Server for CodeSeeker - Consolidated 3-tool architecture * * Tools: * 1. search - Semantic code search with optional file reading * 2. analyze - Code analysis (dependencies, dead_code, duplicates, standards) * 3. index - Index management (init, sync, status, parsers, exclude) */ export declare class CodeSeekerMcpServer { private server; private searchOrchestrator; private indexingService; private languageSupportService; private queryCache; private indexingJobs; private indexingMutex; private cancellationTokens; private readonly JOB_TTL_MS; private cleanupTimer; private readonly DANGEROUS_PATHS; constructor(); private startJobCleanupTimer; private cleanupOldJobs; private validateProjectPath; private startBackgroundIndexing; cancelIndexing(projectId: string): boolean; private runBackgroundIndexing; private getIndexingStatus; private findProjectPath; private generateProjectId; private getAllProjectDocuments; private formatErrorMessage; private matchesExclusionPattern; private _getIndexingStatusForProject; /** * Resolve project from name/path, returning project record and path. * Shared helper for search and analyze tools. */ private resolveProject; /** * Verify project has embeddings (is actually indexed). */ private verifyIndexed; private registerTools; private registerSentinelTool; /** Extract the first meaningful declaration line from a code chunk */ private extractSignature; /** Search and return file contents for top results. Used by tests via `as any`. */ handleSearchAndRead(query: string, project: string | undefined, limit: number, tokenBudget: number): Promise<{ content: { type: "text"; text: string; }[]; isError: boolean; }>; /** Read a file from disk and return its content. Used by tests via `as any`. */ handleReadWithContext(filepath: string, _project: string | undefined, includeSummary: boolean): Promise<{ content: { type: "text"; text: string; }[]; isError: boolean; }>; private handleSearch; private handleShowDependencies; private handleFindDuplicates; private handleFindDeadCode; private handleStandards; private handleIndexInit; private handleSync; private handleProjects; private handleInstallParsers; private handleExclude; private handleSymbolLookup; start(): Promise; shutdown(): Promise; } /** * Main entry point for MCP server */ export declare function startMcpServer(): Promise; //# sourceMappingURL=mcp-server.d.ts.map