MoCoPr Client
A high-level MCP client implementation for connecting to MCP servers.
This crate provides a convenient, async API for building MCP clients that can connect to any MCP server and perform operations like listing tools/resources, calling tools, reading resources, and more.
Quick Start
use McpClient;
use *;
use json;
async
Transport Support
The client supports multiple transport mechanisms:
- Stdio: For process-based communication with MCP servers
- WebSocket: For real-time communication over the network
- HTTP: For stateless request/response interactions
Features
- Async/await based API
- Multiple transport support
- Automatic capability negotiation
- Type-safe API for MCP operations
- Built-in error handling and retry logic
- Comprehensive logging and debugging support