using System.ComponentModel; using System.Text.Json.Serialization; using ModelContextProtocol.Server; namespace ModelContextProtocol.Protocol; /// /// Represents the logging capability configuration for a Model Context Protocol server. /// /// /// /// This capability allows clients to set the logging level and receive log messages from the server. /// See the schema for details. /// /// /// This class is intentionally empty as the Model Context Protocol specification does not /// currently define additional properties for sampling capabilities. Future versions of the /// specification may extend this capability with additional configuration options. /// /// public sealed class LoggingCapability { /// /// Gets or sets the handler for set logging level requests from clients. /// [JsonIgnore] [Obsolete($"Use {nameof(McpServerOptions.Handlers.SetLoggingLevelHandler)} instead. This member will be removed in a subsequent release.")] // See: https://github.com/modelcontextprotocol/csharp-sdk/issues/774 [EditorBrowsable(EditorBrowsableState.Never)] public McpRequestHandler? SetLoggingLevelHandler { get; set; } }