/** * ToolSearchIndex — keyword-based search over registered MCP tools. * * Implements case-insensitive substring matching against both tool name * and description. Returns matching tools with their full schema information. */ import type { ToolEntry } from './types.js'; /** A search result entry — subset of ToolEntry returned to callers. */ export interface ToolSearchResult { name: string; description: string; namespace: string; functionName: string; inputSchema?: Record; } export declare class ToolSearchIndex { private readonly tools; constructor(tools: ToolEntry[]); /** * Search tools by keyword query. * * Performs case-insensitive substring matching against both the tool name * and description. Returns an empty array if query is blank. * * @param query Keyword string to search for. * @returns Array of matching ToolSearchResult entries. */ search(query: string): ToolSearchResult[]; /** Return all tools as search results (no filtering). */ getAll(): ToolSearchResult[]; } //# sourceMappingURL=search.d.ts.map