/** * MCP Registry client for querying the official MCP Registry. * @see https://registry.modelcontextprotocol.io/ */ import type { RegistryServersResponse, RegistryServerEntry, RegistryServer, RegistryPackage, ListServersOptions } from './types.js'; /** Default registry base URL */ export declare const REGISTRY_BASE_URL: "https://registry.modelcontextprotocol.io"; /** API version */ export declare const API_VERSION: "v0"; /** * Client for interacting with the MCP Registry API. */ export declare class RegistryClient { private baseUrl; private timeout; private rateLimiter; constructor(options?: { baseUrl?: string; timeout?: number; rateLimit?: boolean; }); /** * List servers from the registry. */ listServers(options?: ListServersOptions): Promise; /** * Search for servers by name or keyword. */ searchServers(query: string, limit?: number): Promise; /** * Find a server by its exact name. */ findServer(name: string): Promise; } /** * Generate a command to run a server based on its registry entry. */ export declare function generateRunCommand(server: RegistryServer): string | null; /** * Generate a command to run a specific package. */ export declare function generatePackageCommand(pkg: RegistryPackage): string; /** * Format a server entry for display. */ export declare function formatServerEntry(entry: RegistryServerEntry): string; /** * Format multiple server entries for display. */ export declare function formatServerList(entries: RegistryServerEntry[]): string; //# sourceMappingURL=client.d.ts.map