MCP primitive enhancements #285
Tyler-R-Kendrick
started this conversation in
Ideas
Replies: 1 comment
-
#72 and #74 already discuss doing this for resources and resource templates. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Pre-submission Checklist
Your Idea
As an author of an MCP Server, I want to be able to optionally configure MCP primitives (tools, prompts, resources, resource-templates, roots, etc.), instead of providing an entire handler where a default option is possible (given the current dependency hierarchy).
For example, say you have a local file hosted that you want to expose. Because you're already referencing the IFileProvider APIs, it would make sense to be able to configure that in DI with a line similar to:
or
or
etc.
After calling those extension methods for configuration, I would expect the handlers for those associated MCP primitives to have default implementations that use the resources I specified for the relevant operations (like list resources, readresourcerequest, etc.).
I'd like to utilize this thread to capture where there are deficits in the design around registration of MCP primitives and capture where / when issues can be raised to help support improving the developer experience towards this goal.
Scope
Beta Was this translation helpful? Give feedback.
All reactions