Add ResourceTemplate
and related attribute(s) for implementing resource template handlers
#74
Labels
enhancement
New feature or request
Is your feature request related to a problem? Please describe.
Just like
McpToolType
andMcpTool
works today, it would be great to have a way to use attributes to define resource templates.Describe the solution you'd like
Would be nice to annotate a type and method(s) to specify resource templates.
Resource URI Templates per the spec should conform to RFC6570. I'm not sure if this is what ASP.NET uses, but perhaps there is some way to leverage the route parsing logic within the SDK here?
Additional context
This probably should be considered with #72 so that methods could return actual types marked as
ResourceType
and have that handled automatically.The text was updated successfully, but these errors were encountered: