Skip to content

finer grain toolset selection (tool level) #352

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
xxchan opened this issue Apr 28, 2025 · 2 comments
Open

finer grain toolset selection (tool level) #352

xxchan opened this issue Apr 28, 2025 · 2 comments
Labels
enhancement New feature or request

Comments

@xxchan
Copy link

xxchan commented Apr 28, 2025

Describe the feature or problem you’d like to solve

After limiting "GITHUB_TOOLSETS": "issues,pull_requests,repos", there are still too many tools available

Image

Benefits:

  • avoid pollute context window
  • avoid unwanted, dangerous tools (e.g., merge_pull_request)

Some example use cases:

  • In some use cases, I only want the MCP to do research, so I want "read only" tools, e.g., search issues, search PRs. No need to use update/create tools at all.
  • Sometimes it's write only, e.g., "create an issue for me"
  • In tools like cursor, it has native search_code tool, so it's duplicative.

Proposed solution

  • allow tool level selection --tools
  • Or maybe add ability to disable tools, if you think that's better. --disable-tools
@xxchan xxchan added the enhancement New feature or request label Apr 28, 2025
@williammartin
Copy link
Collaborator

Hey @xxchan, a couple of notes.

Re: read-only tools, you can set the --read-only flag, or GITHUB_READ_ONLY (I think) env var.

Re: finer grained tools, have you tried using the dynamic tool selection feature? https://github.com/github/github-mcp-server?tab=readme-ov-file#dynamic-tool-discovery. We're interested in feedback on it.

Thanks.

@xxchan
Copy link
Author

xxchan commented Apr 28, 2025

@williammartin Yes, I've noticed dynamic tool discovery, but it's granularity is still "toolset", instead of individual tools, so I guess the points in the OP cannot be fully solved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants