Default draft protocol support: sessionless + handshake-less (SEP-2575 + SEP-2567) (#1610)

This commit is contained in:
Stephen Halter 2026-06-23 21:24:22 -07:00 • committed by GitHub
commit 6c323e783b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -0,0 +1,27 @@
using System.Text.Json.Serialization;
namespace ModelContextProtocol.Protocol;
/// <summary>
/// Represents the parameters sent with a <see cref="NotificationMethods.SubscriptionsAcknowledgedNotification"/>.
/// </summary>
/// <remarks>
/// <para>
/// Introduced by the draft protocol revision (SEP-2575). This notification is the first message on a
/// <see cref="RequestMethods.SubscriptionsListen"/> response stream and informs the client which
/// subset of requested notification types the server has agreed to deliver.
/// </para>
/// </remarks>
public sealed class SubscriptionsAcknowledgedNotificationParams
{
/// <summary>
/// Gets or sets the notification subscriptions the server has agreed to honor.
/// </summary>
/// <remarks>
/// Only includes notification types the server actually supports. If the client requested an
/// unsupported notification type (e.g., <c>promptsListChanged</c> when the server has no prompts),
/// it is omitted from this set.
/// </remarks>
[JsonPropertyName("notifications")]
public required SubscriptionsListenNotifications Notifications { get; set; }
}