Skip to content

Add resource template support #68

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

Merged
merged 4 commits into from
Apr 16, 2025
Merged

Add resource template support #68

merged 4 commits into from
Apr 16, 2025

Conversation

jakemac53
Copy link
Contributor

See https://modelcontextprotocol.io/specification/2024-11-05/server/resources#resource-templates

The support is pretty low level right now, and we do not provide any assistance for matching the provided templates or extracting out the values.

We likely should add that support at some point later on, but we should be able to do so in a non-breaking manner. We will simply stop invoking the handlers for URIs that can't possibly match the template.

Copy link

PR Health

Changelog Entry ✔️
Package Changed Files

Changes to files need to be accounted for in their respective changelogs.

@jakemac53
Copy link
Contributor Author

Note that I initially was going to try and use package:uri for this but couldn't get that package to function for the use cases we care about (package: scheme uris).

@jakemac53 jakemac53 merged commit 4ab0796 into main Apr 16, 2025
16 of 17 checks passed
@jakemac53 jakemac53 deleted the resource-template-support branch April 16, 2025 20:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants