Loading
Draft: Remove experimental glab mcp serve command
Summary
Removes the experimental glab mcp serve command and all related infrastructure. This command duplicates the GitLab MCP Server, which is the dedicated, supported solution for MCP integration with GitLab.
Users should use the GitLab MCP Server instead.
Changes
Deleted files:
internal/commands/mcp/mcp.go- MCP parent commandinternal/commands/mcp/serve/serve.go-glab mcp servecobra commandinternal/commands/mcp/serve/server.go- MCP server implementationinternal/commands/mcp/serve/server_test.go- Tests for the serverinternal/mcpannotations/annotations.go- MCP annotation constants packageinternal/mcpannotations/annotations_test.go- Tests for annotationsdocs/source/mcp/_index.md- MCP command docsdocs/source/mcp/serve.md-glab mcp servedocs
Modified files:
internal/commands/root.go- RemovemcpCmdimport and registrationgo.mod- Removegithub.com/modelcontextprotocol/go-sdkdependencyinternal/commands/api/api.go- Removemcpannotationsimport and annotationinternal/commands/ci/ci.go- Removemcpannotationsimport and annotationinternal/commands/ci/get/get.go- Removemcpannotationsimport and annotationinternal/commands/ci/run/run.go- Removemcpannotationsimport and annotationinternal/commands/ci/view/view.go- Removemcpannotationsimport and annotationinternal/commands/changelog/generate/changelog_generate.go- Removemcpannotationsimport and annotationinternal/commands/duo/ask/ask.go- Removemcpannotationsimport and annotationinternal/commands/token/rotate/rotate.go- Removemcpannotationsimport and annotation
Testing
After merging, run go build ./... to confirm no compilation errors, and make test to verify tests pass.
Note: go mod tidy should also be run to clean up the go.sum file for the removed github.com/modelcontextprotocol/go-sdk dependency and its transitive deps.
Closes https://gitlab.com/gitlab-org/gitlab/-/work_items/588956