IMcpToolRefresher
Namespace AgentPrism · Assembly
AgentPrism.Abstractions.dllRefreshes the tool list of remote MCP servers on demand.
public interface IMcpToolRefresherRemarks
Section titled “Remarks”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.
Methods
Section titled “Methods”RefreshAsync(CancellationToken)
Section titled “ RefreshAsync(CancellationToken)”Refreshes the tool list now.
ValueTask<McpRefreshOutcome> RefreshAsync(CancellationToken cancellationToken = default)Parameters
Section titled “Parameters”cancellationToken CancellationToken
The cancellation token.
Returns
Section titled “Returns”The result of this refresh.