Expand description
§MCP Client
This module provides the client-side implementation of the Model Context Protocol (MCP). The client can connect to MCP servers, initialize the connection, and invoke tools provided by the server.
The core functionality includes:
- Establishing connections to MCP servers
- Managing the protocol handshake
- Discovering available tools
- Invoking tools with parameters
- Handling server resources
Structs§
- Client
- An MCP client for connecting to MCP servers and invoking their tools.
- Client
Builder - Builder for creating configured
Client
instances.
Enums§
- Secure
Value - Represents a value that may contain sensitive information.
Functions§
- apply_
secure_ replacements - Recursively walk through the JSON value. If a JSON string exactly matches one of the keys in the secure values map, replace it with the corresponding secure value.