Module client

Source
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.
ClientBuilder
Builder for creating configured Client instances.

Enums§

SecureValue
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.