-
Notifications
You must be signed in to change notification settings - Fork 721
feat: support RFC 6570 for Resource Templates #54
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
WalkthroughThe changes update the handling of URI templates to support RFC 6570. A new indirect dependency ( Changes
Assessment against linked issues
Tip ⚡🧪 Multi-step agentic review comment chat (experimental)
📜 Recent review detailsConfiguration used: CodeRabbit UI ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (5)
🧰 Additional context used🧬 Code Definitions (2)server/server_test.go (2)
server/server.go (2)
🔇 Additional comments (10)
✨ Finishing Touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
gtg |
Closes: #53
May help with: #51
This PR adds support for conformant templates, and also provides the parameters to the handler, as sometimes the backend for a resource might actually be an API call with params rather than a static file or similar.
The current resource read does not handle templates according to RFC 6570 which makes it impossible to implement certain dynamic resource URIs. This support is specified in the specification for template resources for the Model Context Protocol.
I hope the contribution is welcome, and introducing a dependency isn't considered too extreme in the circumstances, but obviously I hope one way or another we can do this in a way that pleases everyone. I discovered this while implementing a resource template and found I was unable to do it with nested dynamic resources.
Thanks for the awesome work.
Summary by CodeRabbit
New Features
Tests