Draft: Rename gitlab_search mcp tool to search
What does this MR do and why?
What
This MR
- adds support for tool aliases to allow graceful rename and no downtime for connected clients
- renames
gitlab_searchMCP tool tosearch
Why
The tools are already prefixed by gitlab_ so this tool ends up being gitlab_gitlab_search. None of the other tools are named like this.
A note about this change: The tool rename will NOT cause errors for connected clients. The MCP documentation says "Servers can notify clients when tools change using notifications/tools/list_changed" but the gitlab MCP server does not support this.
I considered gracefully supporting both tools for a period of time with some "DEPRECATED" notice in description, but I don't think we can guarantee connected clients won't still call the old tool name and they call list tools again to see what's available.
AI Summary
This code change renames a search tool from "gitlab_search" to simply "search" throughout the codebase. To maintain backward compatibility, the old name "gitlab_search" is kept as an alias, so existing code that uses the old name will continue to work. The change also adds a new alias system that allows tools to have multiple names, making it easier to rename tools in the future without breaking existing integrations. All related files, tests, and documentation have been updated to use the new shorter name while preserving the functionality.
References
Screenshots or screen recordings
| Before | After |
|---|---|
How to set up and validate locally
Using Claude desktop
- start a discussion on
masterbranch - ask Claude to only use the GDK MCP server
- ask to "search for issues with _______", in my gdk I use
dismissbecause I know those issues exist - note it uses
gitlab searchtool - switch to this branch
- ask Claude to search within a specific project or group for the same thing
- note it continues to use
gitlab searchtool with no problems/hangs/issues
I verified this in the claude logs
Using mcp jam inspector
- setup mcp server in your favorite testing tool, I used mcp jam inspector
npx @mcpjam/inspector@latest - run the search tool
MR acceptance checklist
Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
