-
Notifications
You must be signed in to change notification settings - Fork 101
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
Add initial support for Resource Templates #18
Add initial support for Resource Templates #18
Conversation
The server was throwing if this handler wasn't specified, and it should probably be optional anyway.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks correct to me, apart from Annotations which are a draft spec feature and not in the protocol version currently supported and advertised during initialization.
Co-authored-by: Stephen Toub <[email protected]>
Co-authored-by: Stephen Toub <[email protected]>
Co-authored-by: Stephen Toub <[email protected]>
If no ListResourceTemplatesHandler is specified, use a default one that returns an empty result.
Looks good, @Redth, thanks. Presumably we also want the client-side equivalent, e.g. csharp-sdk/src/ModelContextProtocol/Client/McpClientExtensions.cs Lines 142 to 178 in c8c974a
? |
Ok, added client extensions and an integration test. |
Co-authored-by: Stephen Toub <[email protected]>
Co-authored-by: Stephen Toub <[email protected]>
Co-authored-by: Stephen Toub <[email protected]>
Co-authored-by: Stephen Toub <[email protected]>
Co-authored-by: Stephen Toub <[email protected]>
Co-authored-by: Stephen Halter <[email protected]>
This adds some new types and handlers to implement Resource Template functionality according to the spec.
Motivation and Context
Adds more functionality from the spec :)
How Has This Been Tested?
Types of changes
Checklist
Fixes #20