Borrowing it
Nothing to install: this file belongs to stablekernel/protoc-gen-go-mcp. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/stablekernel/protoc-gen-go-mcp/main/AGENTS.mdgit clone --depth 1 https://github.com/stablekernel/protoc-gen-go-mcpWrote 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.
[](https://agentmods.dev/instructions/stablekernel/protoc-gen-go-mcp/agents-md)<a href="https://agentmods.dev/instructions/stablekernel/protoc-gen-go-mcp/agents-md"><img src="https://agentmods.dev/badge/instructions/stablekernel/protoc-gen-go-mcp/agents-md/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/instructions/stablekernel/protoc-gen-go-mcp/agents-md"><img src="https://agentmods.dev/badge/instructions/stablekernel/protoc-gen-go-mcp/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00715 | $0.00715 |
| Opus 5.5 | $0.00286 | $0.00286 |
| Sonnet 5.5 | $0.00143 | $0.00143 |
| Haiku 4.5 | $0.00072 | $0.00072 |
Grade B, and why
protoc-gen-go-mcp AGENTS.md scanned grade B with 1 finding 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 29d 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.
Strips warnings and disclaimersmediumAnti-refusal
Omitting safety caveats hides risk from the user and is a common jailbreak preamble.
- Generated code must compile without warnings from `go vet`, and its How it starts
The opening of the file, as written. The whole thing — 65 lines — stays where its author put it; the contents beside it link to each section on GitHub.
AGENTS.md
Guidance for coding agents (and humans) working in this repository. See
docs/GOAL.md for what we're building and what's out of scope,
and CONTRIBUTING.md for the human process.
What this is
protoc-gen-go-mcp is a protoc plugin. For each gRPC service in a .proto
file it generates <file>_mcp.pb.go: an MCP (Model Context Protocol) server
that exposes each non-streaming RPC as an MCP tool and forwards tool calls to
a gRPC client.
cmd/protoc-gen-go-mcp/: the plugin.main.gois the protogen entry point, andmcp.goemits the generated code (withg.Pcalls, not templates).examples/protos/example.proto: the exampleVibeService.examples/gen/example/v1/: the code generated from it, committed.example_mcp.pb.gois this plugin's output.cmd/mcp-vibe/: a demo MCP server over stdio, backed by an in-process gRPC server for the example service.
Checks
Run all of these before opening a pull request, and paste the commands and their results in the PR:
gofmt -l . # must print nothing
go vet ./...
go build ./...
go test ./...
If you changed the generator (cmd/protoc-gen-go-mcp/**) or the example
proto, regenerate the committed examples and commit the result:
make generate # needs protoc 29.3, protoc-gen-go v1.36.6, protoc-gen-go-grpc v1.5.1 on PATH
git status # the regenerated files belong in the same PR
Once the golden-file test exists, update it with
go test ./cmd/protoc-gen-go-mcp -run Golden -update and review the diff;
an unexpected change in generated code is a bug until explained.
Conventions
- Pull request titles must be Conventional Commits (enforced by CI;
release-please builds the changelog from them):
feat:,fix:,docs:,test:,ci:,refactor:,perf:,chore:,revert:. Usefeat!:orfix!:and aBREAKING CHANGE:paragraph in the body for breaking changes to the generated API. - Reference the issue in the PR body (
Closes #N). - Never edit generated files by hand (
*.pb.go); change the generator or the proto and regenerate. - Don't touch
CHANGELOG.md,.release-please-manifest.jsonorrelease-please-config.json, and don't bump versions: release-please owns them. - Don't change
.github/workflows/**unless the issue asks for it. - Keep dependencies minimal; prefer the standard library,
google.golang.org/protobufand the MCP SDK. Pin versions ingo.modand commitgo.sum. - Generated code must compile without warnings from
go vet, and its exported API is public API: document any change to it in the PR.
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.
- 29d ago First seen · 65 lines · 715 tokens per session scan B c0f8a3bb914c
protoc-gen-go-mcp AGENTS.md is an instructions file published in the GitHub repository stablekernel/protoc-gen-go-mcp (37 stars, last pushed 29d ago), licensed Apache-2.0. It adds 715 tokens to every session, about $0.0029 per session on Opus 5.5. A static security scan graded it B with 1 finding (strips warnings and disclaimers). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-09.
protoc-gen-go-mcp AGENTS.md compared with instructions from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| protoc-gen-go-mcp AGENTS.mdstablekernel/protoc-gen-go-mcp | Instructions file | 37 | 29d ago | Apache-2.0 | B | 715 | Codex, OpenCode |
| vscode buildNext.instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 9,719 | GitHub Copilot |
| next.js AGENTS.mdvercel/next.js | Instructions file | 143k | yesterday | MIT | A | 7,461 | Codex, OpenCode |
| langchain AGENTS.mdlangchain-ai/langchain | Instructions file | 149k | yesterday | MIT | A | 4,680 | Codex, OpenCode |
| vscode oss-third-party-notices.instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 5,516 | GitHub Copilot |
| vscode copilot-instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 3,093 | GitHub Copilot |
| deepseek-harness AGENTS.mddeepseek-ai/deepseek-harness | Instructions file | 274k | 2d ago | MIT | A | 4,313 | Codex, OpenCode |