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(McpMessageLevel, object?, CancellationToken)

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

Sends a message to the connected client, as a notification when the request asked for one and otherwise as part of the result.

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

ValueTask

Gets a value indicating whether the current request has a severity threshold at all, so a message at or above it would reach the connected MCP client as a notification.

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