Adding default toolset grouping #1159
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
This PR introduces a data-driven default toolset configuration to improve performance, reduce inference costs, and provide a better out-of-the-box experience for GitHub MCP Server users.
Problem
The current "all tools enabled by default" approach causes several issues:
Changes
New Default Toolsets (Data-Driven Selection)
Based on real-world usage analysis across all sessions, the new default includes the 5 most-used toolset groups:
context- Current user and GitHub contextrepos- Repository operationsissues- Issue trackingpull_requests- PR workflowsusers- User informationThese cover almost all top 20 most frequently used tools.
Code Changes
pkg/github/tools.go:ToolsetMetadatastruct to hold toolset ID and descriptionGetDefaultToolsetIDs()to return curated default listGenerateToolsetsHelp()for improved CLI help textreposto new dedicatedstargazerstoolsetcmd/github-mcp-server/main.go:GetDefaultToolsetIDs()when no toolsets specifiedGenerateToolsetsHelp()README.md:stargazerstoolset to available toolsets tabledocs/remote-server.md:stargazerstoolset to remote server documentationPerformance Improvements compared to old default("all")
Token Reduction
User Experience Benefits
Future Work
repos,pull_requests) into more specialized subgroupsTesting
--toolsetsflag provided--toolsets allstill enables all toolsets