csharp-sdk/src/mcpdotnet/Protocol/Messages/NotificationMethods.cs
Peder Holdgaard Pedersen e5abb4bb8e
Roots capability support (#12)
Notification sending support
2025-01-09 21:10:29 +01:00

32 lines
No EOL
1.1 KiB
C#

namespace McpDotNet.Protocol.Messages;
/// <summary>
/// A class containing constants for notification methods.
/// </summary>
public static class NotificationMethods
{
/// <summary>
/// Sent by the server when the list of tools changes.
/// </summary>
public const string ToolListChangedNotification = "notifications/tools/list_changed";
/// <summary>
/// Sent by the server when the list of prompts changes.
/// </summary>
public const string PromptsListChanged = "notifications/prompts/list_changed";
/// <summary>
/// Sent by the server when the list of resources changes.
/// </summary>
public const string ResourceListChangedNotification = "notifications/resources/list_changed";
/// <summary>
/// Sent by the server when a resource is updated.
/// </summary>
public const string ResourceUpdatedNotification = "notifications/resources/updated";
/// <summary>
/// Sent by the client when roots have been updated.
/// </summary>
public const string RootsUpdatedNotification = "notifications/roots/list_changed";
}