[DOCS] GitLab CI/CD examples reference undefined /bin/gitlab-mcp-server binary
Documentation Type
Unclear/confusing documentation
Documentation Location
https://code.claude.com/docs/en/gitlab-ci-cd
Section/Topic
Multiple YAML configuration examples throughout the guide
Current Documentation
Several CI/CD examples include this line:
``yaml script: # Optional: start a GitLab MCP server if your setup provides one - /bin/gitlab-mcp-server || true ``
What's Wrong or Missing?
The documentation references /bin/gitlab-mcp-server without explaining:
- What this binary does
- Where to obtain it
- Which Docker images include it
- How to configure or install it
The comment says "if your setup provides one" but none of the documented Docker images (gcr.io/google.com/cloudsdktool/google-cloud-cli:slim, node:24-alpine3.21) include this binary. The || true suffix means it silently fails, which may hide configuration issues from users.
This creates confusion for users who:
- Don't know if they need this component
- Wonder why the command is present but does nothing
- Want to enable MCP server functionality but don't know how
Suggested Improvement
Option A: Remove the line (if MCP server is optional/uncommon)
Remove /bin/gitlab-mcp-server || true from examples if most users won't need it:
script:
- >
claude
-p "${AI_FLOW_INPUT:-'Summarize recent changes and suggest improvements'}"
Option B: Document the MCP server (if it's a recommended component)
Add a section explaining the GitLab MCP server:
### GitLab MCP Server (Optional)
If you want Claude to have direct access to GitLab APIs during execution, you can include a GitLab MCP server:
1. [Installation/build instructions]
2. [Configuration requirements]
3. [Which images include it, if any]
Without the MCP server, Claude can still execute git commands and GitLab CLI operations.
Impact
Medium - Makes feature difficult to understand
Additional Context
Affected Pages:
| Page | Line(s) | Context |
|------|---------|---------|
| https://code.claude.com/docs/en/gitlab-ci-cd | 87 | Quick setup example |
| https://code.claude.com/docs/en/gitlab-ci-cd | 264 | Alpine image example |
| https://code.claude.com/docs/en/gitlab-ci-cd | 310 | AWS Bedrock example |
| https://code.claude.com/docs/en/gitlab-ci-cd | 362 | Vertex AI example |
Total scope: 1 page, 4 occurrences
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗