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.
- Kind:
Interface - Namespace: Repl.Mcp
- Assembly:
Repl.Mcp - Source: src/Repl.Mcp/IMcpFeedback.cs
Signature
Section titled “Signature”public interface IMcpFeedbackMethods
Section titled “Methods”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)Parameters
Section titled “Parameters”progress(ReplProgressEvent)cancellationToken(CancellationToken)
Returns
Section titled “Returns”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)Parameters
Section titled “Parameters”level(McpMessageLevel)data(object)cancellationToken(CancellationToken)
Returns
Section titled “Returns”Properties
Section titled “Properties”IsLoggingSupported
Section titled “IsLoggingSupported”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; }Returns
Section titled “Returns”IsProgressSupported
Section titled “IsProgressSupported”Gets a value indicating whether the connected MCP client can receive progress updates for the current tool invocation.
bool IsProgressSupported { get; }