Module client

Source
Expand description

Client module for interacting with MCP servers.

This module provides the McpClient class which serves as the main interface for communicating with Model Context Protocol servers. It allows applications to:

  • List available tools provided by an MCP server
  • Call tools with arguments
  • List available resources
  • Retrieve resource content

The client is transport-agnostic and can work with any implementation of the Transport trait, though the library primarily focuses on StdioTransport.

Structsยง

McpClient
A client for interacting with an MCP server.
Resource
Represents an MCP resource with its metadata.
Tool
Represents an MCP tool with its metadata.