Skip to content

IMcpFeedback

Provides direct access to MCP progress and message notifications from the connected client. Inject this interface into command handlers when you need MCP-specific runtime feedback beyond the portable IReplInteractionChannel abstraction.

public interface IMcpFeedback

ReportProgressAsync(ReplProgressEvent, CancellationToken)

Section titled “ReportProgressAsync(ReplProgressEvent, CancellationToken)”

Reports a structured progress update to the connected MCP client.

ValueTask ReportProgressAsync(ReplProgressEvent progress, CancellationToken cancellationToken = default)

ValueTask

SendMessageAsync(LoggingLevel, object?, CancellationToken)

Section titled “SendMessageAsync(LoggingLevel, object?, CancellationToken)”

Sends a structured MCP message notification to the connected client.

ValueTask SendMessageAsync(LoggingLevel level, object? data, CancellationToken cancellationToken = default)

ValueTask

Gets a value indicating whether the connected MCP client can receive logging/message notifications.

bool IsLoggingSupported { get; }

bool

Gets a value indicating whether the connected MCP client can receive progress updates for the current tool invocation.

bool IsProgressSupported { get; }

bool