Borrowing it
Nothing to install: this file belongs to cookiechain/cookie-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/cookiechain/cookie-mcp/main/AGENTS.mdgit clone --depth 1 https://github.com/cookiechain/cookie-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/cookiechain/cookie-mcp/agents-md)<a href="https://agentmods.dev/instructions/cookiechain/cookie-mcp/agents-md"><img src="https://agentmods.dev/badge/instructions/cookiechain/cookie-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/cookiechain/cookie-mcp/agents-md"><img src="https://agentmods.dev/badge/instructions/cookiechain/cookie-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.01724 | $0.01724 |
| Opus 5.5 | $0.00690 | $0.00690 |
| Sonnet 5.5 | $0.00345 | $0.00345 |
| Haiku 4.5 | $0.00172 | $0.00172 |
Grade A, and why
cookie-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 9d 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 — 105 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Contributing to cookie-mcp
A local stdio MCP server that exposes Cookie Chain actions to any AI agent. It runs on the contributor's machine and signs with their key — non-custodial by design. This is a community/ecosystem project for all Cookie Chain developers: Cookiebox, Candy Shop, CookieSwap, Baked Bazaar and Hyperlane are venues it uses, not owners. Keep code and docs venue-neutral.
Layout
src/
mcp/server.ts # the ONLY entry point: registers every tool, thin wrappers over core/
core/ # all logic lives here — pure, testable, framework-agnostic
config.ts # constants, program IDs, endpoints
rpc.ts # getConnection()
wallet.ts # key loading, signer resolution: requireSigner() / getSigner()
spendGuard.ts # hold an API-built tx's simulated effect on our wallet to the request
errors.ts # CookieMcpError — the one error type surfaced to agents
format.ts # rawToUi / uiToRaw / shortAddr — always go through these
http.ts # fetchJson with retry policy
txVerify.ts # decode + refuse an aggregator-built tx before signing (shared by escrow flows)
limitOrders.ts # Cookiebox limit / stop orders (+ curveOrders.ts for curve pairs)
dca.ts # Cookiebox DCA schedules (separate program, same build-verify-sign shape)
zip/ # Cookiebox Zip: trailing range orders on CLMM positions — decision (keeper rules, pure)
# + program (PDAs, decoders, owner-signed enable/disable) + index (the three tools)
launchpad/ # MomoSwap launchpad: api (HTTP client) + curve (quote math) + positions (PDAs)
# + program (which deployment: PDA scope + error-code build)
nftLaunchpad/ # MomoSwap NFT drops: api + verify (builds held to the vendored IDL) + curve
# (drop design + graduation target) + art (local art folder) + chain (escrow,
# fee wallet read from program accounts) + index (tools)
domains/ # CookOven `.cook` names: names (rules + pricing) + program (ixs/PDAs/decode)
# + marketplace (market.cookoven.xyz ixs/PDAs/decode) + market (listings, buy/
# sell ops) + shared (reads both halves need — escrow awareness lives here)
liquidity/ # create/add/remove/lock/claim across damm, cpAmm, clmm, cookieswap
nft/ # Baked Bazaar: auctionHouse (writes) + bazaar (reads) + momoListing (MomoSwap's
# listing build, verified, list_nft's `via: "momoswap"`)
idl/ # committed IDLs (cp_amm, whirlpool, cookie_domains, momo_nft_launchpad, …)
scripts/ # smoke.ts (boots server, asserts tool count) + verify-*.ts (live checks)
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.
- 9d ago Changed · -2 tokens per session 4680285bad65
- 11d ago Changed · +4 lines · +99 tokens per session bf21b25881e6
- 13d ago Changed · +2 lines · +61 tokens per session 25217c5b873d
- 1mo ago Changed · +7 lines · +149 tokens per session 6cdc2e354c88
- 1mo ago Changed · +3 lines · +67 tokens per session 8f70531c94a5
- 2mo ago First seen · 89 lines · 1,350 tokens per session scan A 971f02f40068
cookie-mcp AGENTS.md is an instructions file published in the GitHub repository cookiechain/cookie-mcp (4 stars, last pushed 10d ago), licensed MIT. It adds 1,724 tokens to every session, about $0.0069 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.
cookie-mcp AGENTS.md compared with instructions from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| cookie-mcp AGENTS.mdcookiechain/cookie-mcp | Instructions file | 4 | 10d ago | MIT | A | 1,724 | Codex, OpenCode |
| vscode buildNext.instructions.mdmicrosoft/vscode | Instructions file | 195k | today | MIT | A | 9,719 | GitHub Copilot |
| next.js AGENTS.mdvercel/next.js | Instructions file | 143k | today | MIT | A | 7,461 | Codex, OpenCode |
| vscode oss-third-party-notices.instructions.mdmicrosoft/vscode | Instructions file | 195k | today | MIT | A | 5,649 | GitHub Copilot |
| langchain AGENTS.mdlangchain-ai/langchain | Instructions file | 149k | today | MIT | A | 4,680 | Codex, OpenCode |
| vscode copilot-instructions.mdmicrosoft/vscode | Instructions file | 195k | today | MIT | A | 3,093 | GitHub Copilot |
| vscode ai-customization.instructions.mdmicrosoft/vscode | Instructions file | 195k | today | MIT | A | 1,907 | GitHub Copilot |