gitlab-mr-mcp AGENTS.md

gitlab-mr-mcp AGENTS.md is an instructions file for Codex, OpenCode from kevinlin/gitlab-mr-mcp. It costs 361 tokens per session, scanned A, original, from a forked repository, MIT.

A set of AGENTS.md instructions for a GitLab merge-request server, including commands, environment variables, and TypeScript coding rules. A merge request is GitLab's version of a proposed code change for review.

In plain words
What is it for?
Running the server, checking types, building and testing it, configuring GitLab access, and following its TypeScript style.
Why use it?
It gives developers and agents the project-specific information needed to build, test, configure, and maintain the server consistently.

Instructions file for CodexOpenCode

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/kevinlin/gitlab-mr-mcp/agents-md
Clone the repo
git clone --depth 1 https://github.com/kevinlin/gitlab-mr-mcp

Made for: Codex, OpenCode.

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-mr-mcp AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/kevinlin/gitlab-mr-mcp/agents-md.svg)](https://agentmods.dev/instructions/kevinlin/gitlab-mr-mcp/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/kevinlin/gitlab-mr-mcp/agents-md"><img src="https://agentmods.dev/badge/instructions/kevinlin/gitlab-mr-mcp/agents-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 361 This file is loaded in full into every session.
When invoked 361 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
Origin fork From a forked repository.
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.00361 $0.00361
Opus 5 $0.00180 $0.00180
Sonnet 5 $0.00072 $0.00072
Haiku 4.5 $0.00036 $0.00036

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

Security

Grade A, and why

gitlab-mr-mcp AGENTS.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 3d 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.

AGENTS.md · 25 lines

What it actually says

AGENTS.md - GitLab MR MCP Server

Build/Test Commands

  • Build: npm run build - Compile TypeScript to JavaScript
  • Start: npm start - Run compiled JavaScript from dist/
  • Dev: npm run dev - Build and run in one command
  • Typecheck: npm run typecheck - Type check without emitting files
  • Test with Inspector: npx -y @modelcontextprotocol/inspector npm start

Environment Variables

  • MR_MCP_GITLAB_TOKEN (required) - GitLab API token with api/read_api scopes
  • MR_MCP_GITLAB_HOST (optional) - GitLab host URL
  • MR_MCP_MIN_ACCESS_LEVEL (optional) - Minimum project access level filter
  • MR_MCP_PROJECT_SEARCH_TERM (optional) - Project search term filter

TypeScript Code Style Guidelines

  • Strict TypeScript: Enabled with exactOptionalPropertyTypes and noUncheckedIndexedAccess
  • Interfaces vs Types: Use interfaces for object definitions, types for unions/mapped types
  • Naming: PascalCase for types/interfaces, camelCase for variables/functions
  • Imports: Use explicit file extensions (.js for compiled output)
  • Error handling: Typed errors with custom error types and formatErrorResponse() helper
  • Immutability: Use readonly for immutable properties and parameters
  • Type safety: Avoid any, prefer unknown for unknown types
  • API responses: Strictly typed MCPResponse interface
  • Validation: Zod schemas with TypeScript integration for runtime type checking
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. 3d ago First seen · 25 lines · 361 tokens per session scan A 0710f804c6fe

Subscribe to this mod's changes

gitlab-mr-mcp AGENTS.md is an instructions file published in the GitHub repository kevinlin/gitlab-mr-mcp (0 stars, last pushed 1y ago), licensed MIT. It adds 361 tokens to every session, about $0.0018 per session on Opus 5. A static security scan graded it A with 0 findings. It comes from a forked repository.