Method RefreshPromptsAsync
RefreshPromptsAsync(CancellationToken)
Clears the cached prompt catalog and fetches a fresh copy from the server (async).
public Task<IReadOnlyCollection<McpPrompt>> RefreshPromptsAsync(CancellationToken cancellationToken = default)
Parameters
cancellationTokenCancellationTokenA token to cancel the operation.
Returns
- Task<IReadOnlyCollection<McpPrompt>>
The refreshed prompt catalog.