gitlab-mcp-server go-mcp-server.instructions.md

gitlab-mcp-server go-mcp-server.instructions.md is an instructions file for GitHub Copilot from jmrplens/gitlab-mcp-server. It costs 3,908 tokens per session, scanned A, original, MIT.

Development guidance for building MCP servers in Go with the official Go SDK. MCP servers let AI tools call clearly defined functions provided by another program.

In plain words
What is it for?
Use it when creating or updating Go-based MCP tools, especially tools that work with GitLab projects, issues, or other resources.
Why use it?
It helps keep server setup, tool names, and API handlers consistent and understandable when several tools work together.

Instructions file for GitHub Copilot

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/jmrplens/gitlab-mcp-server/go-mcp-server
Clone the repo
git clone --depth 1 https://github.com/jmrplens/gitlab-mcp-server

Made for: GitHub Copilot.

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-server go-mcp-server.instructions.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/jmrplens/gitlab-mcp-server/go-mcp-server.svg)](https://agentmods.dev/instructions/jmrplens/gitlab-mcp-server/go-mcp-server)
Your own site
<a href="https://agentmods.dev/instructions/jmrplens/gitlab-mcp-server/go-mcp-server"><img src="https://agentmods.dev/badge/instructions/jmrplens/gitlab-mcp-server/go-mcp-server.svg" alt="Measured on agentmods" height="20"></a>
Per session 3,908 This file is loaded in full into every session.
When invoked 3,908 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.03908 $0.03908
Opus 5 $0.01954 $0.01954
Sonnet 5 $0.00782 $0.00782
Haiku 4.5 $0.00391 $0.00391

Measured 4d ago against content hash be5fbd334489, 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-server go-mcp-server.instructions.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.

.github/instructions/go-mcp-server.instructions.md · 561 lines

How it starts

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

Go MCP Server Development Guidelines

When building MCP servers in Go, follow these best practices and patterns using the official Go SDK (v1.7.0+).

Server Setup

Create an MCP server using mcp.NewServer:

import "github.com/modelcontextprotocol/go-sdk/mcp"

server := mcp.NewServer(
    &mcp.Implementation{
        Name:    "my-server",
        Version: "v1.7.0",
    },
    nil, // or provide mcp.Options
)

Tool Naming Conventions

Use snake_case with a service prefix to avoid conflicts when multiple MCP servers run together:

  • Format for this project: individual tools use gitlab_{action}_{resource} (e.g., gitlab_create_issue, gitlab_list_projects), while catalog action IDs use {domain}.{action}
  • Be action-oriented: Start with verbs (get, list, search, create, update, delete)
  • Be specific: Avoid generic names that could conflict with other servers
  • Descriptions: Must narrowly and unambiguously describe functionality, matching actual behavior

Adding Tools

For ordinary GitLab API actions in this repository, add or update domain-local ActionSpecs and handlers. Do not add package-local RegisterTools functions or ad hoc mcp.AddTool calls; shared projection layers consume the canonical action catalog for meta-tools, dynamic find/execute, gitlab://tools, audits, docs, and individual tool registration.

Each ActionSpec declares a minimum edition (free, premium, or ultimate). Edition gating flows through GITLAB_TIER / --tier and pruneSchemaFieldsByTier in internal/tools/action_catalog.go, which removes premium/ultimate-only actions and prunes per-field schema entries once the active tier resolves. Set the lowest edition that exposes the endpoint correctly and add tier hints in ParameterGuidance when a field is edition-gated. Run go run ./cmd/audit_discovery_completeness/ to confirm each new action has aliases, usage, parameter guidance, and related actions.

For shared projection code or standalone surfaces that intentionally register SDK tools directly, use mcp.AddTool with struct-based input and output for type safety:

Read the full file on GitHub · 561 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 · 561 lines · 3,908 tokens per session scan A be5fbd334489

Subscribe to this mod's changes

gitlab-mcp-server go-mcp-server.instructions.md is an instructions file published in the GitHub repository jmrplens/gitlab-mcp-server (33 stars, last pushed today), licensed MIT. It adds 3,908 tokens to every session, about $0.0195 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-30.