Table of Contents

Namespace ModelContextProtocol.Protocol.Messages

Classes

CancelledNotification

Represents a notification indicating that a request has been cancelled by the client, and that any associated processing should cease immediately.

JsonRpcError

Represents an error response message in the JSON-RPC protocol.

JsonRpcErrorDetail

Represents detailed error information for JSON-RPC error responses.

JsonRpcNotification

Represents a notification message in the JSON-RPC protocol.

JsonRpcRequest

A request message in the JSON-RPC protocol.

JsonRpcResponse

A successful response message in the JSON-RPC protocol.

NotificationMethods

Provides constants with the names of common notification methods used in the MCP protocol.

PaginatedResult

Provides a base class for result payloads that support cursor-based pagination.

ProgressNotification

Represents an out-of-band notification used to inform the receiver of a progress update for a long-running request.

RequestMethods

Provides constants with the names of common request methods used in the MCP protocol.

Structs

ProgressToken

Represents a progress token, which can be either a string or an integer.

RequestId

Represents a JSON-RPC request identifier, which can be either a string or an integer.

Interfaces

IJsonRpcMessage

Represents any JSON-RPC message used in the Model Context Protocol (MCP).

IJsonRpcMessageWithId

Represents a JSON-RPC message used in the Model Context Protocol (MCP) and that includes an ID.