fix: update tool names to match Claude Code MCP naming convention#1
Open
jyin-cw wants to merge 1 commit intosourcegraph-community:mainfrom
Open
fix: update tool names to match Claude Code MCP naming convention#1jyin-cw wants to merge 1 commit intosourcegraph-community:mainfrom
jyin-cw wants to merge 1 commit intosourcegraph-community:mainfrom
Conversation
Claude Code names MCP tools as `mcp__<server-name>__<tool>` based on how the server is registered (e.g. `claude mcp add sourcegraph <url>` produces `mcp__sourcegraph__keyword_search`). The `sg_*` shorthand names used in this skill don't match any valid Claude Code MCP registration name — they silently fail with no error, making the skill non-functional. This PR renames all `sg_*` tool references to `mcp__sourcegraph__*` to match the standard Claude Code convention when the Sourcegraph MCP server is registered under the name "sourcegraph". Reported by CoreWeave while vendoring this skill into their internal Claude Code plugin marketplace.
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.
Problem
Claude Code names MCP tools using the scheme
mcp__<server-name>__<tool>, where<server-name>is whatever was passed toclaude mcp add. For example:The
sg_*shorthand names in this skill (e.g.sg_keyword_search) don't match any valid Claude Code MCP registration name. There's no way to register a server that producessg_keyword_search— Claude Code always uses double underscores and themcp__prefix.Result: every tool call in the skill silently fails with no error. The skill appears to run but returns nothing.
Fix
Rename all
sg_*tool references tomcp__sourcegraph__*to match the standard Claude Code convention when the server is registered as"sourcegraph"(the typical name for the Sourcegraph MCP server).Files changed
SKILL.mdexamples/common-searches.mdworkflows/debugging-issue.mdworkflows/fixing-bug.mdworkflows/implementing-feature.mdworkflows/understanding-code.mdworkflows/code-review.mdNote
If users register the server under a different name (e.g.
"sg"), they would needmcp__sg__*names instead. The README could document this — butsourcegraphis the conventional name used by the official Sourcegraph MCP server docs and setup scripts.Reported while vendoring this skill into a Claude Code plugin marketplace.