Skip to content

Add buildProviderByServerNames(...) to McpToolUtils for filtered MCP client support #3881

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

Closed
wants to merge 0 commits into from

Conversation

paoxiaomooo
Copy link
Contributor

By default, a SyncMcpToolCallbackProvider binds all available MCP clients. However, in many real-world scenarios (e.g. multi-tenant applications or region-specific deployments), users may want to dynamically include only a subset of servers by name.
This method enables:

  • Runtime filtering of MCP clients based on supplied server names

  • Construction of a ToolCallbackProvider limited to permitted clients

  • Cleaner usage without manually filtering the list each time

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.

1 participant