Table of Contents

Namespace ModelContextProtocol

Classes

AIContentExtensions

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

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.

Enums

McpErrorCode

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