Table of Contents

Class SubscriptionsListenNotifications

Namespace
ModelContextProtocol.Protocol
Assembly
ModelContextProtocol.Core.dll

Describes the set of notification types a client wants to receive (or that a server has agreed to deliver) for a SubscriptionsListen subscription.

public sealed class SubscriptionsListenNotifications
Inheritance
SubscriptionsListenNotifications
Inherited Members

Properties

PromptsListChanged

Gets or sets a value indicating whether to receive PromptListChangedNotification notifications.

[JsonPropertyName("promptsListChanged")]
public bool? PromptsListChanged { get; set; }

Property Value

bool?

ResourceSubscriptions

Gets or sets the list of resource URIs to subscribe to for ResourceUpdatedNotification notifications.

[JsonPropertyName("resourceSubscriptions")]
public IList<string>? ResourceSubscriptions { get; set; }

Property Value

IList<string>

Remarks

Replaces the legacy ResourcesSubscribe / ResourcesUnsubscribe RPCs from prior protocol revisions.

ResourcesListChanged

Gets or sets a value indicating whether to receive ResourceListChangedNotification notifications.

[JsonPropertyName("resourcesListChanged")]
public bool? ResourcesListChanged { get; set; }

Property Value

bool?

ToolsListChanged

Gets or sets a value indicating whether to receive ToolListChangedNotification notifications.

[JsonPropertyName("toolsListChanged")]
public bool? ToolsListChanged { get; set; }

Property Value

bool?