[DOCS] GitLab CI/CD examples reference undefined /bin/gitlab-mcp-server binary

Resolved 💬 2 comments Opened Jan 26, 2026 by coygeek Closed Feb 28, 2026

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:

  1. What this binary does
  2. Where to obtain it
  3. Which Docker images include it
  4. 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

View original on GitHub ↗

This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗