Class Root | MCP C# SDK

Namespace
ModelContextProtocol.Protocol
Assembly
ModelContextProtocol.Core.dll

Represents a root URI and its metadata in the Model Context Protocol.

Inheritance

Root

Inherited Members

Properties

Meta

Gets or sets additional metadata for the root.

[JsonPropertyName("_meta")]
public JsonObject? Meta { get; set; }

Property Value

JsonObject

Name

Gets or sets a human-readable name for the root.

[JsonPropertyName("name")]
public string? Name { get; set; }

Property Value

string

Uri

Gets or sets the URI of the root.

[JsonPropertyName("uri")]
[StringSyntax("Uri")]
public required string Uri { get; set; }

Property Value

string