Table of Contents

Class RootsCapability

Namespace
ModelContextProtocol.Protocol.Types
Assembly
ModelContextProtocol.dll

Represents the roots capability configuration. See the schema for details

public class RootsCapability
Inheritance
RootsCapability
Inherited Members

Properties

ListChanged

Whether the client supports notifications for changes to the roots list.

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

Property Value

bool?

RootsHandler

Gets or sets the handler for sampling requests.

[JsonIgnore]
public Func<ListRootsRequestParams?, CancellationToken, Task<ListRootsResult>>? RootsHandler { get; set; }

Property Value

Func<ListRootsRequestParams, CancellationToken, Task<ListRootsResult>>