Table of Contents

Namespace ModelContextProtocol

Classes

AIContentExtensions

Provides extension methods for converting between Model Context Protocol (MCP) types and Microsoft.Extensions.AI types.

InMemoryMcpTaskStore

Provides an in-memory implementation of IMcpTaskStore for development and testing.

McpException

Represents an exception that is thrown when an Model Context Protocol (MCP) error occurs.

McpJsonUtilities

Provides a collection of utility methods for working with JSON data in the context of MCP.

McpProtocolException

Represents an exception that is thrown when a Model Context Protocol (MCP) protocol-level error occurs.

McpSession

Represents a client or server Model Context Protocol (MCP) session.

ProgressNotificationValue

Provides a progress value that can be sent using IProgress<T>.

RequestOptions

Provides a bag of optional parameters for use with MCP requests.

UrlElicitationRequiredException

Represents an exception used to indicate that URL-mode elicitation must be completed before the request can proceed.

Interfaces

IMcpTaskStore

Provides an interface for pluggable task storage implementations in MCP servers.

Enums

McpErrorCode

Represents standard JSON-RPC error codes as defined in the MCP specification.