Enhance MCP server setup by adding resource capabilities and returnin…#15
Open
pedrofrxncx wants to merge 2 commits intomainfrom
Open
Enhance MCP server setup by adding resource capabilities and returnin…#15pedrofrxncx wants to merge 2 commits intomainfrom
pedrofrxncx wants to merge 2 commits intomainfrom
Conversation
Contributor
|
@pedrofrxncx @claude how does this enable resource capabilities? |
This change introduces a global reference to the mcpServer within the context, allowing for easier access across the application. The global variable is initialized and set in the context for future use.
a64f7a3 to
89c26e1
Compare
Author
|
…unction exposure This update introduces a check for @tool annotations in available functions, allowing only those with the annotation to be exposed. If no annotations are present, the legacy behavior of using include/exclude options is maintained. Additionally, the internal flag is only checked in legacy mode, ensuring backward compatibility.
Contributor
|
@pedrofrxncx where would you put this code, declaring I confess I'm still learning about resources to understand the capabilities it unlocks |
Author
|
@lucis im still thinking about this; i guess we can have loaders that declare themselves as resources, but i still need to think on an approach to dynamic resources (how can the server declare a new resource without creating a new loader? this is tricky in stateless http)
well me too |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



…g middleware and server in mcpServer function