Method GetPrompts
GetPrompts(CancellationToken)
Synchronously retrieves the server's prompt catalog. This is a blocking wrapper over GetPromptsAsync(CancellationToken) and returns the cached list thereafter.
public IReadOnlyCollection<McpPrompt> GetPrompts(CancellationToken cancellationToken = default)
Parameters
cancellationTokenCancellationTokenA token to cancel the operation.
Returns
- IReadOnlyCollection<McpPrompt>
A read-only collection of McpPrompt values.