Skip to main content
Glama
IVectorStore.ts1.02 kB
import { ServerInfo, SearchResult } from "../domain/types.js"; /** * Interface for vector store operations */ export interface IVectorStore { /** * Initialize the vector store */ initialize(): Promise<void>; /** * Index all tools from registered servers * @param servers - Map of server information */ indexTools(servers: Map<string, ServerInfo>): Promise<void>; /** * Search for tools using semantic similarity * @param query - Search query * @param topK - Number of results to return * @returns Array of search results with scores */ search(query: string, topK: number): Promise<SearchResult[]>; /** * Re-index a specific server's tools * @param serverName - Name of the server * @param serverInfo - Server information */ reindexServer(serverName: string, serverInfo: ServerInfo): Promise<void>; /** * Get statistics about the vector store * @returns Object with total tools and cached embeddings count */ getStats(): { totalTools: number; }; }

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/eliavamar/mcp-of-mcps'

If you have feedback or need assistance with the MCP directory API, please join our Discord server