-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Open
SamMorrowDrums
wants to merge
10
commits into
SamMorrowDrums/server-tool-refactor-projects
Choose a base branch
from
SamMorrowDrums/server-tool-refactor-toolsets
base: SamMorrowDrums/server-tool-refactor-projects
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+2,920
−1,416
Open
Changes from 3 commits
Commits
Show all changes
10 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 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...