/** * @file Standard MCP Client * @version 1.0.0 * @status STABLE - DO NOT MODIFY WITHOUT TESTS * @lastModified 2024-06-28 * * A standardized MCP client implementation using the official SDK * * IMPORTANT: * - Use for testing the Ethers MCP server * - Handles connection lifecycle * * Functionality: * - Connect to MCP server * - List available tools * - Call tools * - Disconnect cleanly */ /** * A standardized MCP client using the official SDK */ export declare class McpStandardClient { private client; private transport; private connected; /** * Creates a new MCP standard client * @param options Configuration options */ constructor(options?: { serverCommand?: string; serverArgs?: string[]; clientName?: string; clientVersion?: string; }); /** * Connect to the MCP server */ connect(): Promise; /** * List all available tools from the server */ listTools(): Promise; /** * Call a tool on the MCP server * * @param name The name of the tool to call * @param args The arguments to pass to the tool * @returns The tool result */ callTool(name: string, args?: Record): Promise; /** * Disconnect from the MCP server */ disconnect(): Promise; /** * Ensure the client is connected before performing operations * @private */ private ensureConnected; }