gitlab-mcp CLAUDE.md

gitlab-mcp CLAUDE.md is an instructions file for coding agents from sgaunet/gitlab-mcp. It costs 5,221 tokens per session, scanned A, original, MIT.

Project instructions for a Go-based MCP server that connects an AI coding agent to GitLab, a platform for hosting code and managing software projects.

In plain words
What is it for?
Use it to list, create, and update GitLab issues; manage labels and comments; browse group projects; and read or change project descriptions and topics.
Why use it?
They explain the server’s structure and tell the agent how its GitLab project-management tools are organized. This reduces the need to rediscover the repository’s architecture.

Instructions file

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add instructions/sgaunet/gitlab-mcp/claude-md
Clone the repo
git clone --depth 1 https://github.com/sgaunet/gitlab-mcp

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for gitlab-mcp CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/sgaunet/gitlab-mcp/claude-md.svg)](https://agentmods.dev/instructions/sgaunet/gitlab-mcp/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/sgaunet/gitlab-mcp/claude-md"><img src="https://agentmods.dev/badge/instructions/sgaunet/gitlab-mcp/claude-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 5,221 This file is loaded in full into every session.
When invoked 5,221 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.05221 $0.05221
Opus 5 $0.02610 $0.02610
Sonnet 5 $0.01044 $0.01044
Haiku 4.5 $0.00522 $0.00522

Measured 4d ago against content hash 093bebf80901, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

gitlab-mcp CLAUDE.md scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

CLAUDE.md · 559 lines

How it starts

The opening of the file, as written. The whole thing — 559 lines — stays where its author put it; the contents beside it link to each section on GitHub.

CLAUDE.md

This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.

Project Overview

This is a Model Context Protocol (MCP) server that provides GitLab integration tools for Claude Code. It's implemented as a Go application that communicates via JSON-RPC 2.0 over stdin/stdout, providing tools for GitLab project management:

  • list_issues: Lists issues for a GitLab project using project path with filtering options
  • create_issues: Creates new issues with title, description, labels (validated), and assignees
  • update_issues: Updates existing issues (title, description, state, labels (validated), assignees)
  • list_labels: Lists project labels with optional filtering and counts
  • add_issue_note: Adds notes/comments to existing issues
  • list_group_projects: Lists all projects of a GitLab group recursively (all subgroups included) with id, name, namespaced path, description and topics
  • get_project_description: Gets the current description of a GitLab project
  • update_project_description: Updates the description of a GitLab project
  • get_project_topics: Gets the current topics/tags of a GitLab project
  • update_project_topics: Updates the topics/tags of a GitLab project (replaces all existing topics)
  • list_epics: Lists epics for a GitLab group (Premium/Ultimate tier)
  • create_epic: Creates new epics in a GitLab group with title, description, labels (validated), dates, and confidentiality (Premium/Ultimate tier)
  • get_latest_pipeline: Gets the latest pipeline for a GitLab project with optional ref (branch/tag) filtering
  • list_pipeline_jobs: Lists all jobs for a GitLab pipeline with filtering options (status, stage)
  • get_job_log: Retrieves complete log output for a specific CI/CD job with job metadata
  • download_job_trace: Downloads CI/CD job logs to local files for offline analysis and archiving
  • list_merge_requests: Lists merge requests for a GitLab project with filtering options (state, labels, author, search)
  • create_merge_request: Creates a new merge request with title, source/target branches, description, labels, assignees, and reviewers
  • get_merge_request: Gets details of a specific merge request by IID
  • update_merge_request: Updates an existing merge request (title, description, state, labels, assignees, reviewers)
  • merge_merge_request: Merges an approved merge request with squash and remove-source-branch options
  • get_merge_request_diff: Gets the unified diff for a merge request showing actual code changes per file
  • approve_merge_request: Approves a merge request with optional SHA verification
  • add_merge_request_note: Adds a comment/note to a merge request

Read the full file on GitHub · 559 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago First seen · 559 lines · 5,221 tokens per session scan A 093bebf80901

Subscribe to this mod's changes

gitlab-mcp CLAUDE.md is an instructions file published in the GitHub repository sgaunet/gitlab-mcp (4 stars, last pushed 1mo ago), licensed MIT. It adds 5,221 tokens to every session, about $0.0261 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.