mcp-server icon indicating copy to clipboard operation
mcp-server copied to clipboard

Dynamic Tool Discovery

Open pulkitsharma07 opened this issue 1 year ago • 4 comments

Currently the mcp server exposes all tools by default. As we add support for more tools, this will lead to increased token usage and can also cause confusion/hallucinations in tool usage by the MCP clients.

Github has implemented dynamic toolsets to address this: https://github.com/github/github-mcp-server/issues/275

For TypeScript we can use this feature: https://github.com/modelcontextprotocol/typescript-sdk?tab=readme-ov-file#dynamic-servers

Instead of toolsets/launch args or flags while installing the MCP server, We can expose one tool initially: enableProducts which will take a list of products to enable tools for, i.e. ["automate", "test management", ...] and then enable only those tools.

pulkitsharma07 avatar May 09 '25 14:05 pulkitsharma07

Hey @pulkitsharma07 , I’ve just opened a PR to address issue #64 — looking forward to your feedback! Please let me know if there’s anything I can improve or tweak. I’m interested in contributing more, especially around MCPs, so any suggestions are welcome.

Also, if possible, feel free to post more issues — I’d be glad to take them up and help out wherever I can.

Thanks!

aryan4codes avatar Jun 02 '25 20:06 aryan4codes

Thanks for the contribution @aryan4codes we will get back on this. @ruturaj-browserstack please check.

pulkitsharma07 avatar Jun 03 '25 20:06 pulkitsharma07

Hi BrowserStack team,

I'm Diya Jatar, an aspiring Software Engineer interested in developer tools, test automation, and AI-assisted testing workflows.

I'd like to contribute to the Dynamic Tool Discovery issue. Could you please confirm whether this feature is still needed and whether there is a preferred implementation approach?

I'm happy to work on a focused implementation with tests and documentation.

Thank you for your time!

GitHub: https://github.com/DIYAJATAR Portfolio: https://portfolio-website-diya-9951.vercel.app/

DIYAJATAR avatar Oct 04 '26 16:10 DIYAJATAR

Hi @DIYAJATAR, thanks for offering to help!

We've already addressed this differently from what the issue proposed. We shipped a capability registry in v2.0.0. Agents can search for and invoke capabilities on demand, so the full tool list no longer has to load up front. We'd still love contributions. Feel free to look through the other open issues or open a new one if you find a bug or a gap in an existing tool.

SavioBS629 avatar Oct 05 '26 06:10 SavioBS629