You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
The API for McpToolType and McpTool (combined with the WithTools method) makes it really easy to define tools. It'd be great to have a comparable API for Prompts.
Describe the solution you'd like
I'd like to be able to have code like this:
[PromptType]publicstaticclassSamplePrompt{[Prompt,Description("This is a sample prompt")]publicstaticstringSample()=>"Some sample prompt";}// in program.csbuilder.Services.AddMcpServer().WithStdioServerTransport().WithTools().WithPrompts();
Describe alternatives you've considered
Currently, the only solution would be to implement this via WithListPromptsHandler and WithGetPromptHandler.
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
The API for
McpToolType
andMcpTool
(combined with theWithTools
method) makes it really easy to define tools. It'd be great to have a comparable API for Prompts.Describe the solution you'd like
I'd like to be able to have code like this:
Describe alternatives you've considered
Currently, the only solution would be to implement this via
WithListPromptsHandler
andWithGetPromptHandler
.The text was updated successfully, but these errors were encountered: