Table of Contents

Class LoggingCapability

Namespace
ModelContextProtocol.Protocol
Assembly
ModelContextProtocol.Core.dll

Represents the logging capability configuration for a Model Context Protocol server.

public class LoggingCapability
Inheritance
LoggingCapability
Inherited Members

Remarks

This capability allows clients to set the logging level and receive log messages from the server. See the schema for details.

Properties

SetLoggingLevelHandler

Gets or sets the handler for set logging level requests from clients.

[JsonIgnore]
public Func<RequestContext<SetLevelRequestParams>, CancellationToken, ValueTask<EmptyResult>>? SetLoggingLevelHandler { get; set; }

Property Value

Func<RequestContext<SetLevelRequestParams>, CancellationToken, ValueTask<EmptyResult>>