Letting hosts pick which MCP tools the model can use #1495
Closed
Shubhdeep12
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
I've been wiring MCP servers into chat() and got one issue that I think others might run into too.
Right now, If I connect an MCP server, every tool it lists goes straight to the model, and every tool runs without asking.
Here's where things stand today:
chat({ mcp: { clients } }), I couldn't find a way to filter tools or add approval.tool.metadata.mcp, which is great. Nothing uses them yet, though.What I'd suggest is two small, optional settings on the client:
A few points:
fwiw, other SDKs landed on similar designs:
raised a PR for the same.
All reactions