Draft: feat(duo claude): add option to configure GitLab MCP for claude code
Description
- feat(duo claude): add option to configure GitLab MCP for claude code
This change set adds the --with-gitlab-mcp
option to the glab duo claude
command to configure it with the official GitLab MCP server.
It currently uses the HTTP transport method, which is not yet fully
supported in Claude Code with GitLab, because of missing support in
Claude Code for OAuth2 scopes during the dynamic client registration.
GitLab requires the mcp
scope here.
An upstream issue exists for it in: https://github.com/anthropics/claude-code/issues/4540
An alternative implementation could use mcp-remote
to bridge this gap,
but I didn't want to make glab
dependent on that.
This should eventually replace most tools of the glab
MCP server introduced with Add MCP server integration for enhanced Claude ... (!2361).
Related Issues
Resolves #[issue_number]
How has this been tested?
Screenshots (if appropriate):
Types of changes
-
Bug fix (non-breaking change which fixes an issue) -
New feature (non-breaking change which adds functionality) -
Breaking change (fix or feature that would cause existing functionality to change) -
Documentation -
Chore (Related to CI or Packaging to platforms) -
Test gap
Edited by Timo Furrer