Loading
Add validate_ci_file MCP tool
What does this MR do and why?
Adds a `validate_ci_file` tool to the GitLab MCP server. Agents can use it to check a `.gitlab-ci.yml` for syntax and structure errors before committing it, without triggering a pipeline.
- Wraps the existing `ciLint` GraphQL mutation, so it follows the same permission checks as the CI Lint page.
- Identifies the project with exactly one of `url` or `project_id`.
- Takes an optional `ref` to resolve `include:` entries against a specific branch or tag. Without it, the project's default branch is used.- Returns `{ valid, errors, warnings }`.
- Belongs to the `ci` toolset and is marked read-only (`readOnlyHint: true`).
Closes #605857
Part of of October 2026 Community Co-Create gitlab-org/developer-relations/contributor-success/contributors-gitlab-com#794
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.
Edited by Parth Sharma