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.
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/mcpwith 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
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.
{
"mcpServers": {
"gitlab": {
"url": "https://gitlab.com/api/v4/mcp"
}
}
}
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):
- !142 auth: fix session refresh (2d, @dev) — touches auth middleware; review first
- !140 docs: changelog (5d) — low risk
- !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/projectpath 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/