Interface IMcpPromptProvider
Supplies the prompts an McpServer exposes through prompts/list and
prompts/get.
public interface IMcpPromptProvider
Remarks
Prompts are user-initiated: a client typically surfaces them as commands the user picks, rather than as something the model calls on its own. They are therefore the right home for a multi-step workflow whose shape a server knows and a model would otherwise have to rediscover, such as locating sensitive content before removing it and then verifying the removal.
Methods
- GetPromptAsync(string, IReadOnlyDictionary<string, string>, McpRequestContext, CancellationToken)
Expands a prompt into the messages the client should send.
- ListPromptsAsync(McpRequestContext, CancellationToken)
Lists the available prompts.