Table of Contents

Namespace ModelContextProtocol.Client

Classes

McpClientExtensions

Provides extension methods for interacting with an IMcpClient.

McpClientFactory

Provides factory methods for creating Model Context Protocol (MCP) clients.

McpClientOptions

Provides configuration options for creating IMcpClient instances.

McpClientPrompt

Represents a named prompt that can be retrieved from an MCP server and invoked with arguments.

McpClientResource

Represents a named resource that can be retrieved from an MCP server.

McpClientResourceTemplate

Represents a named resource template that can be retrieved from an MCP server.

McpClientTool

Provides an Microsoft.Extensions.AI.AIFunction that calls a tool via an IMcpClient.

SseClientTransport

Provides an IClientTransport over HTTP using the Server-Sent Events (SSE) or Streamable HTTP protocol.

SseClientTransportOptions

Provides options for configuring SseClientTransport instances.

StdioClientTransport

Provides a IClientTransport implemented via "stdio" (standard input/output).

StdioClientTransportOptions

Provides options for configuring StdioClientTransport instances.

Interfaces

IClientTransport

Represents a transport mechanism for Model Context Protocol (MCP) client-to-server communication.

IMcpClient

Represents an instance of a Model Context Protocol (MCP) client that connects to and communicates with an MCP server.

Enums

HttpTransportMode

Specifies the transport mode for HTTP client connections.