refactor(mcp): rename local MCP tool names to loopover_ with deprecated aliases - #5554
Merged
Conversation
…ed aliases Introduces loopover_-prefixed primary names for all 37 stdio MCP tools in packages/gittensory-mcp, with the old gittensory_-prefixed names kept alive as thin, fully-working aliases (same handler, deprecated-marked description) for one full minor-version deprecation cycle. Server now registers 74 tools total; calling by either name produces byte-identical behavior. registerToolWithLegacyAlias() is the single DRY registration path -- every call site converted mechanically, no duplicated handler logic. The CLI's own `gittensory-mcp tools` listing reads from the same descriptor array, so it stays in lockstep with the live server automatically. Deliberately unchanged: the "gittensory-local" McpServer identifier itself (package/binary identity, not an individual tool name -- closer to the still-blocked npm package rename), src/mcp/server.ts's separate Worker-hosted MCP surface (a distinct package per the issue's own "local MCP package" framing), and AGENT_PROFILES' prompt-guidance strings (a different, test-protected data surface, not tool identifiers). Closes #4775.
Contributor
|
Superagent didn't find any vulnerabilities or security issues in this PR. |
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
gittensory-ui | 8e0f540 | Commit Preview URL Branch Preview URL |
Jul 13 2026, 05:03 AM |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #5554 +/- ##
=======================================
Coverage 94.91% 94.91%
=======================================
Files 570 570
Lines 45325 45325
Branches 14675 14675
=======================================
Hits 43020 43020
Misses 1571 1571
Partials 734 734
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
Closed
12 tasks
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.
Summary
Introduces
loopover_-prefixed primary names for all 37 stdio MCP tools inpackages/gittensory-mcp, with the oldgittensory_-prefixed names kept alive as thin, fully-working aliases (same handler, deprecated-marked description) for one full minor-version deprecation cycle. Server now registers 74 tools total; calling by either name produces byte-identical behavior.registerToolWithLegacyAlias()is the single DRY registration path — every call site converted mechanically, no duplicated handler logic. The CLI's owngittensory-mcp toolslisting reads from the same descriptor array, so it stays in lockstep with the live server automatically.Deliberately unchanged
"gittensory-local"McpServeridentifier itself — package/binary identity, not an individual tool name, closer to the still-blocked npm package rename (Rename npm workspace packages #4769).src/mcp/server.ts's separate Worker-hosted MCP surface — a distinct package per the issue's own "local MCP package" framing.AGENT_PROFILES' prompt-guidance strings — a different, test-protected data surface, not tool identifiers (renaming would breakmcp-cli-basics.test.ts's verbatim assertions, some of which reference aspirational tool names that were never real).Test plan
test/unit/mcp-tool-rename-aliases.test.ts(11 tests) covers 6 tools across distinct categories (API GET/POST, no-arg, path-param, pure-local, Zod-validated output), asserting old/new name calls produce.toEqual()results; also asserts exactly 74 tools discoverable and every alias description matches the deprecation-notice pattern.npm run build:mcp,npm run test:mcp-pack,npm run typecheck,npm run command-reference:check,npm run docs:drift-check— all clean.npm run test:cigate green (782 files / 15292 tests after rebase).gittensory-mcp tools --jsonoutput, not just trusted from code.Closes #4775.