Module client

Source
Expand description

MCP Client Implementation

This module provides a high-level interface for MCP client operations, handling protocol initialization, capability negotiation, and message exchanges with MCP servers.

The McpClient is the primary interface for interacting with MCP servers, abstracting away transport details and providing a clean async API.

Structs§

ClientConfig
Configuration options for MCP client behavior.
ClientStats
Statistics about client operations.
DefaultNotificationHandler
Default notification handler that logs all notifications.
McpClient
High-level MCP client for communicating with MCP servers.
McpClientBuilder
Builder for creating MCP clients with custom configuration.
ServerInfo
Information about the connected MCP server.

Enums§

ClientState
State of the MCP client connection and protocol negotiation.

Traits§

NotificationHandler
Handler for MCP notifications from the server