Roots capability support (#12)

Notification sending support
This commit is contained in:
Peder Holdgaard Pedersen 2025-01-09 21:10:29 +01:00 • committed by GitHub
commit e5abb4bb8e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -0,0 +1,22 @@
namespace McpDotNet.Protocol.Types;
/// <summary>
/// Represents a root URI and its metadata.
/// </summary>
public class Root
{
/// <summary>
/// The URI of the root.
/// </summary>
public required string Uri { get; init; }
/// <summary>
/// A human-readable name for the root.
/// </summary>
public string? Name { get; init; }
/// <summary>
/// Additional metadata for the root. Reserved by the protocol for future use.
/// </summary>
public object? Meta { get; init; }
}