Borrowing it
Nothing to install: this file belongs to cubicecho/graphql-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/cubicecho/graphql-mcp/main/AGENTS.mdgit clone --depth 1 https://github.com/cubicecho/graphql-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/cubicecho/graphql-mcp/agents-md)<a href="https://agentmods.dev/instructions/cubicecho/graphql-mcp/agents-md"><img src="https://agentmods.dev/badge/instructions/cubicecho/graphql-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/cubicecho/graphql-mcp/agents-md"><img src="https://agentmods.dev/badge/instructions/cubicecho/graphql-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.11032 | $0.11032 |
| Opus 5.5 | $0.04413 | $0.04413 |
| Sonnet 5.5 | $0.02206 | $0.02206 |
| Haiku 4.5 | $0.01103 | $0.01103 |
Grade A, and why
graphql-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 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.
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.
How it starts
The opening of the file, as written. The whole thing — 634 lines — stays where its author put it; the contents beside it link to each section on GitHub.
AGENTS.md
Project
@cubicecho/graphql-mcp — middleware that turns a GraphQL schema into a
Model Context Protocol server. Each
Query/Mutation root field is projected into an MCP tool, described from
the SDL (field and argument descriptions, types) so an AI can discover and call
your API. It is designed to run side-by-side with your GraphQL server: mount
the returned HTTP handler on a route in the same app, or run it as its own
process and forward to a remote GraphQL endpoint.
Stack
- Language: TypeScript 5.7+, strict mode, ESM only, "erasable syntax only" (no enums/namespaces/parameter-properties) so the source runs unbuilt under Node's type stripping.
- Runtime/build: Source uses
.tsimport specifiers. Run it directly withnode --experimental-strip-types;tsc(withrewriteRelativeImportExtensions) rewrites the specifiers to.jsand emitsdist/. Requires Node ≥ 22 and TypeScript ≥ 5.7. - Tests: Node's built-in test runner (
node --test) with type stripping — no test framework dependency. Test files aresrc/**/*.test.ts. - Formatting/linting: Biome (
npm run check). Everyif/loop body is a braced block (useBlockStatements), and a logic check is negated with=== false, not!(no-negation.grit;!stays for null guards). - File names: kebab-case (
zod-schema.ts,event-store.ts). A new module goes in the folder whose phrase below covers it, never in autilsorhelpersfolder. - Comments: every function and method has a TSDoc block: a description of at most four
sentences, a blank line, then
@param name - …for each parameter (@param [name] - …when optional) and@returns …unless it returns nothing. No{type}annotations. A comment in a function body is at most two lines. Keep the one fact that stops a reader undoing a decision; the longer history goes in this file or the commit message. - Dependencies:
@graphql-tools/schema(schema merging for theextendoption) is the only runtime dependency.@modelcontextprotocol/sdk(>=1.12),graphql(>=16) andzod(^3.25 || ^4.0) are peer deps — zod because the SDK validates against the caller's copy, and a second one in our own tree makesinstanceofchecks fail across the boundary. Express is not a dependency — the HTTP handler is framework-agnostic.createFetchHandlerneeds SDK ≥ 1.25 and loads that transport lazily so the floor stays at 1.12 for everyone else. - Guiding constraint: avoid adding libraries unless writing it ourselves
isn't worth the effort (e.g. the GraphQL→Zod mapping is hand-written). The
scalarsoption is a plainRecord<string, AnyZodType>for the same reason — it's structurally identical to what generators emit (e.g.defaultScalarMapfrom@vantreeseba/graphql-zod), so interop needs no adapter or dependency.
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 Changed · +25 lines · +477 tokens per session f5aa3335965b
- 2mo ago Changed · +395 lines · +7,302 tokens per session 8fd50d0f3c41
- 2mo ago First seen · 214 lines · 3,253 tokens per session scan A e4a8006fcfa7
graphql-mcp AGENTS.md is an instructions file published in the GitHub repository cubicecho/graphql-mcp (0 stars, last pushed 29d ago), licensed MIT. It adds 11,032 tokens to every session, about $0.0441 per session on Opus 5.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.
graphql-mcp AGENTS.md compared with instructions from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| graphql-mcp AGENTS.mdcubicecho/graphql-mcp | Instructions file | 0 | 29d ago | MIT | A | 11,032 | 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 |