Skip to content

Enhance MCP server setup by adding resource capabilities and returnin…#15

Open
pedrofrxncx wants to merge 2 commits intomainfrom
feat/expose-mcp-server
Open

Enhance MCP server setup by adding resource capabilities and returnin…#15
pedrofrxncx wants to merge 2 commits intomainfrom
feat/expose-mcp-server

Conversation

@pedrofrxncx
Copy link

…g middleware and server in mcpServer function

@lucis
Copy link
Contributor

lucis commented Jun 20, 2025

@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.
@pedrofrxncx pedrofrxncx force-pushed the feat/expose-mcp-server branch from a64f7a3 to 89c26e1 Compare June 20, 2025 03:20
@pedrofrxncx
Copy link
Author

pedrofrxncx commented Jun 20, 2025

@pedrofrxncx @claude how does this enable resource capabilities?

@lucis

image
image

…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.
@lucis
Copy link
Contributor

lucis commented Jun 20, 2025

@pedrofrxncx where would you put this code, declaring "teste", "teste"?

I confess I'm still learning about resources to understand the capabilities it unlocks

@pedrofrxncx
Copy link
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)

I confess I'm still learning about resources to understand the capabilities it unlocks

well me too

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants