-
Notifications
You must be signed in to change notification settings - Fork 485
Description
Is your feature request related to a problem? Please describe.
Minimal APIs added support for extracting metadata from XML doc comments to include in generated OpenAPI documents. This was a highly requested feature. It would be nice to provide similar support for extracting MCP metadata (tool descriptions, tool parameter descriptions, etc) from XML doc comments.
Describe the solution you'd like
Allow developers to use XML Doc comments to specify tool / tool parameter / prompt / resource descriptions and have these extracted and included in the tools/list
, etc.
Describe alternatives you've considered
The current mechanism to provide tool descriptions is with the DescriptionAttribute
. This has some drawbacks, particularly for larger descriptions that can't be flowed in a nice way in text strings.
Additional context
Some parts of the XML doc comment support in Minimal APIs can probably be reused. @captainsafia is a good contact for this.