← All recipes

MCP Recipe

Triage open GitLab merge requests

Influzer starter recipe: connect the official GitLab MCP, list open MRs for a project you own, and draft a review triage note — without merging or approving anything.

Engineering
By Influzer Published 2026-11-22 Updated 2026-11-22 0 worked for me

MCP servers used

Compatible clients (author-reported, not verified by Influzer): Cursor, Claude Desktop, Claude Code, ChatGPT

Prerequisites

  • GitLab.com (or self-managed) MCP at /api/v4/mcp with OAuth to projects you can read
  • Know the project path (e.g. group/app)
  • Agreement that the agent will not merge, approve, or push

Required permissions

GitLab OAuth can expose source code, issues, and MRs in authorized projects. Start read-only: ask for a triage summary before any write actions. Not a security audit.

Setup

1. Connect GitLab MCP

Add the official GitLab MCP (https://gitlab.com/api/v4/mcp on GitLab.com, or /api/v4/mcp on self-managed) and complete OAuth for the projects you want to inspect.

2. Example mcp.json (GitLab.com) · json
{
  "mcpServers": {
    "gitlab": {
      "url": "https://gitlab.com/api/v4/mcp"
    }
  }
}
3. Read-only MR triage · markdown
Using GitLab MCP, list open merge requests for project `YOUR_GROUP/YOUR_PROJECT` (replace with mine).
For each MR: title, IID, author, age, labels, and a one-line risk note (auth/billing/migrations = higher risk).
Propose a review order. Do not approve, merge, comment, or push unless I explicitly ask afterward.

Expected result

A ranked list of open MRs with age, author, risk notes, and a suggested review order — no merges.

Sample output

Open MRs (3):

  1. !142 auth: fix session refresh (2d, @dev) — touches auth middleware; review first
  2. !140 docs: changelog (5d) — low risk
  3. !138 feat: billing UI (9d) — large diff; needs Context7/Stripe pass separately

Troubleshooting

  • Auth loop: remove and re-add https://gitlab.com/api/v4/mcp (or your self-managed /api/v4/mcp)
  • Wrong project: put the full group/project path in the prompt
  • If the agent offers to merge: stop and restate read-only

Source repository

https://docs.gitlab.com/user/model_context_protocol/mcp_server/

Report an issue