Class SubscriptionsListenRequestParams
- Namespace
- ModelContextProtocol.Protocol
- Assembly
- ModelContextProtocol.Core.dll
Represents the parameters used with a SubscriptionsListen request.
public sealed class SubscriptionsListenRequestParams : RequestParams
- Inheritance
-
SubscriptionsListenRequestParams
- Inherited Members
Remarks
Introduced by the 2026-07-28 protocol revision (SEP-2575). The client uses this request to open a long-lived channel for receiving notifications outside the context of a specific request.
Per-request metadata (protocol version, client info, client capabilities, optional log level)
flows through the inherited Meta property under the
io.modelcontextprotocol/* keys.
Properties
Notifications
Gets or sets the notifications the client wants to receive on this subscription stream.
[JsonPropertyName("notifications")]
public required SubscriptionsListenNotifications Notifications { get; set; }
Property Value
Remarks
Each notification type is opt-in; the server MUST NOT send notification types the client has not explicitly requested here. The server's SubscriptionsAcknowledgedNotification reports the subset of requested notifications the server actually supports.