-
Notifications
You must be signed in to change notification settings - Fork 3.9k
refactor: immutable ToolsetGroup with self-describing tools and feature flags #1602
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
Merged
SamMorrowDrums
merged 27 commits into
SamMorrowDrums/server-tool-refactor-projects
from
SamMorrowDrums/server-tool-refactor-toolsets
Dec 16, 2025
Merged
Changes from 1 commit
Commits
Show all changes
27 commits
Select commit
Hold shift + click to select a range
ff237aa
Add --features CLI flag for feature flag support
SamMorrowDrums 7a78ec6
Add validation tests for tools, resources, and prompts metadata
SamMorrowDrums 689a040
Fix default toolsets behavior when not in dynamic mode
SamMorrowDrums a03b3bf
refactor: address PR review feedback for toolsets
SamMorrowDrums 8b850d0
refactor: Apply HandlerFunc pattern to resources for stateless NewToo…
SamMorrowDrums b13d9fe
refactor: simplify ForMCPRequest switch cases
SamMorrowDrums 74d2c56
refactor(generate_docs): use strings.Builder and AllTools() iteration
SamMorrowDrums 9bcf526
feat(toolsets): add AvailableToolsets() with exclude filter
SamMorrowDrums 2142b02
refactor(generate_docs): hoist success logging to generateAllDocs
SamMorrowDrums 6b6a874
refactor: consolidate toolset validation into ToolsetGroup
SamMorrowDrums 3c44fdd
refactor: rename toolsets package to registry with builder pattern
SamMorrowDrums e943fd1
fix: remove unnecessary type arguments in helper_test.go
SamMorrowDrums a816ac1
fix: restore correct behavior for --tools and --toolsets flags
SamMorrowDrums 8e80346
Move labels tools to issues toolset
SamMorrowDrums 855a489
Restore labels toolset with get_label in both issues and labels
SamMorrowDrums 6364d86
Fix instruction generation and capability advertisement
SamMorrowDrums 1bbac36
Add tests for dynamic toolset management tools
SamMorrowDrums 7eab169
Advertise all capabilities in dynamic toolsets mode
SamMorrowDrums 3914a92
Improve conformance test with dynamic tool calls and JSON normalization
SamMorrowDrums eeb2984
Add conformance-report to .gitignore
SamMorrowDrums 4665d23
Add conformance test CI workflow
SamMorrowDrums c913d58
Add map indexes for O(1) lookups in Registry
SamMorrowDrums 7864d80
perf(registry): O(1) HasToolset lookup via pre-computed set
SamMorrowDrums 9aeded4
simplify: remove lazy toolsByName map - not needed for actual use cases
SamMorrowDrums 7070d03
Add generic tool filtering mechanisms to registry package
Copilot d76ca28
docs: improve filter evaluation order and FilteredTools documentation
SamMorrowDrums c274d78
Refactor GenerateToolsetsHelp() to use strings.Builder pattern
Copilot File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,31 @@ | ||
| # Deprecated Tool Aliases | ||
|
|
||
| This document tracks tool renames in the GitHub MCP Server. When tools are renamed, the old names are preserved as aliases for backward compatibility. Using a deprecated alias will still work, but clients should migrate to the new canonical name. | ||
|
|
||
| ## Current Deprecations | ||
|
|
||
| <!-- START AUTOMATED ALIASES --> | ||
| | Old Name | New Name | | ||
| |----------|----------| | ||
| | *(none currently)* | | | ||
| <!-- END AUTOMATED ALIASES --> | ||
|
|
||
| ## How It Works | ||
|
|
||
| When a tool is renamed: | ||
|
|
||
| 1. The old name is added to `DeprecatedToolAliases` in [pkg/github/deprecated_tool_aliases.go](../pkg/github/deprecated_tool_aliases.go) | ||
| 2. Clients using the old name will receive the new tool | ||
| 3. A deprecation notice is logged when the alias is used | ||
|
|
||
| ## For Developers | ||
|
|
||
| To deprecate a tool name when renaming: | ||
|
|
||
| ```go | ||
| var DeprecatedToolAliases = map[string]string{ | ||
| "old_tool_name": "new_tool_name", | ||
| } | ||
| ``` | ||
|
|
||
| The alias resolution happens at server startup, ensuring backward compatibility for existing client configurations. |
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am sure this can be removed too...