Table of Contents

Class JsonRpcNotification

Namespace
ModelContextProtocol.Protocol.Messages
Assembly
ModelContextProtocol.dll

Represents a notification message in the JSON-RPC protocol.

public class JsonRpcNotification : JsonRpcMessage
Inheritance
JsonRpcNotification
Inherited Members

Remarks

Notifications are messages that do not require a response and are not matched with a response message. They are useful for one-way communication, such as log notifications and progress updates. Unlike requests, notifications do not include an ID field, since there will be no response to match with it.

Properties

Method

Gets or sets the name of the notification method.

[JsonPropertyName("method")]
public required string Method { get; init; }

Property Value

string

Params

Gets or sets optional parameters for the notification.

[JsonPropertyName("params")]
public JsonNode? Params { get; init; }

Property Value

JsonNode