22 lines
No EOL
834 B
C#
22 lines
No EOL
834 B
C#
using ModelContextProtocol.Server;
|
|
using System.Text.Json.Serialization;
|
|
|
|
namespace ModelContextProtocol.Protocol;
|
|
|
|
/// <summary>
|
|
/// Represents the logging capability configuration for a Model Context Protocol server.
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// This capability allows clients to set the logging level and receive log messages from the server.
|
|
/// See the <see href="https://github.com/modelcontextprotocol/specification/blob/main/schema/">schema</see> for details.
|
|
/// </remarks>
|
|
public sealed class LoggingCapability
|
|
{
|
|
// Currently empty in the spec, but may be extended in the future
|
|
|
|
/// <summary>
|
|
/// Gets or sets the handler for set logging level requests from clients.
|
|
/// </summary>
|
|
[JsonIgnore]
|
|
public McpRequestHandler<SetLevelRequestParams, EmptyResult>? SetLoggingLevelHandler { get; set; }
|
|
} |