/** * MCP Client Implementation * * Client for connecting to MCP servers. */ import { McpTool, McpToolResult, McpResource, McpResourceContent, McpPrompt, McpPromptMessage, McpClientConfig } from './types'; /** * MCP Client for connecting to MCP servers * * @example * ```typescript * import { McpClient } from '@sochdb/sochdb'; * * const client = new McpClient({ * serverUri: 'stdio://./mcp-server', * transport: 'stdio' * }); * * // List available tools * const tools = await client.listTools(); * * // Call a tool * const result = await client.callTool('db_get', { key: 'user:123' }); * ``` */ export declare class McpClient { private config; private connected; private requestId; constructor(config: McpClientConfig); /** * Connect to the MCP server */ connect(): Promise; /** * Disconnect from the MCP server */ disconnect(): Promise; /** * Check if connected */ isConnected(): boolean; /** * List available tools */ listTools(): Promise; /** * Call a tool */ callTool(name: string, args: Record): Promise; /** * List available resources */ listResources(): Promise; /** * Read a resource */ readResource(uri: string): Promise; /** * List available prompts */ listPrompts(): Promise; /** * Get prompt messages */ getPrompt(name: string, args?: Record): Promise; private ensureConnected; } //# sourceMappingURL=client.d.ts.map