Make MCP metadata configurable via --tools/--prompts/--examples overrides#29
Merged
neilberkman merged 2 commits intoneilberkman:mainfrom Feb 2, 2026
Merged
Conversation
Owner
|
@mmmnorthmark thanks for the contribution. Will be released in 1.6.5. |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
What this PR does
This adds optional runtime overrides for the MCP server metadata that is currently static in
server.jsonand compiled into the binary.New
clippy mcp-serverflags:--tools <path>: override MCP tool descriptions + argument descriptions--prompts <path>: override MCP prompt descriptions + argument descriptions--examples <path>: override MCP examples shown to clientsWhy this is useful
Validation behavior
--toolsvalidation requires complete coverage of every MCP tool + every expected argument description--promptsvalidation requires complete coverage of every MCP prompt + every expected argument descriptionIncluded artifacts
cmd/clippy/mcp/metadata.gocmd/clippy/mcp/server.gomcp-serverincmd/clippy/main.goexamples/clippy.mcp.tools.jsonexamples/clippy.mcp.prompts.jsonexamples/clippy.mcp.examples.jsonserver.jsonupdated to includebuffer_cutso metadata stays in sync with server toolsUsage
Notes