Table of Contents

Class ResourcesCapability

Namespace
ModelContextProtocol.Protocol
Assembly
ModelContextProtocol.Core.dll

Represents the resources capability configuration.

public sealed class ResourcesCapability
Inheritance
ResourcesCapability
Inherited Members

Remarks

See the schema for details.

Properties

ListChanged

Gets or sets whether this server supports notifications for changes to the resource list.

[JsonPropertyName("listChanged")]
public bool? ListChanged { get; set; }

Property Value

bool?

Remarks

When set to true, the server will send notifications using ResourceListChangedNotification when resources are added, removed, or modified. Clients can register handlers for these notifications to refresh their resource cache.

Subscribe

Gets or sets whether this server supports subscribing to resource updates.

[JsonPropertyName("subscribe")]
public bool? Subscribe { get; set; }

Property Value

bool?