Skip to content

docs(mcp): add dynamic MCP client selection example #3751

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

paoxiaomooo
Copy link

  • demonstrate how to filter injected MCP clients by server name
    using getServerInfo().name()

This helps users dynamically choose which MCP services to expose
based on context (e.g. permissions, intent), instead of registering
all available tools unconditionally.

demonstrate how to filter injected MCP clients by server name
  using getServerInfo().name()

Signed-off-by: Sizhe Fan <132420031+paoxiaomooo@users.noreply.github.com>
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