Skip to content

IMcpToolRefresher

Namespace AgentPrism · Assembly AgentPrism.Abstractions.dll

Refreshes the tool list of remote MCP servers on demand.

public interface IMcpToolRefresher

Refreshing normally happens in the background, at fixed intervals. This interface exists so that when a server is newly added, the user does not have to wait for the next scheduled refresh.

The abstraction lives in AgentPrism.Abstractions because the HTTP layer triggers the refresh but does not depend on the AgentPrism.Mcp package: MCP stays an optional package.

Refreshes the tool list now.

ValueTask<McpRefreshOutcome> RefreshAsync(CancellationToken cancellationToken = default)

cancellationToken CancellationToken

The cancellation token.

ValueTask<McpRefreshOutcome>

The result of this refresh.