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(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)Parameters
Section titled “Parameters”level(LoggingLevel)data(object)cancellationToken(CancellationToken)
Returns
Section titled “Returns”Properties
Section titled “Properties”IsLoggingSupported
Section titled “IsLoggingSupported”Gets a value indicating whether the connected MCP client can receive logging/message notifications.
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; }