Skip to content

Extract Tool/Prompt/Resource metadata from XML doc comments #705

@mikekistler

Description

@mikekistler

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions