using ModelContextProtocol.Server; using System.ComponentModel; using System.Text.Json.Serialization; namespace ModelContextProtocol.Protocol; /// /// Represents the server's capability to provide predefined prompt templates that clients can use. /// /// /// /// The prompts capability allows a server to expose a collection of predefined prompt templates that clients /// can discover and use. These prompts can be static (defined in the ) or /// dynamically generated through handlers. /// /// /// See the schema for details. /// /// public sealed class PromptsCapability { /// /// Gets or sets a value that indicates whether this server supports notifications for changes to the prompt list. /// /// /// When set to , the server will send notifications using /// when prompts are added, /// removed, or modified. Clients can register handlers for these notifications to /// refresh their prompt cache. This capability enables clients to stay synchronized with server-side changes /// to available prompts. /// [JsonPropertyName("listChanged")] public bool? ListChanged { get; set; } }