cookie-mcp: Instructions file for Codex

AGENTS.md

cookie-mcp AGENTS.md is an instructions file for Codex, OpenCode from cookiechain/cookie-mcp. It costs 1,724 tokens per session, scanned A, original, MIT.

Contributor instructions for cookie-mcp, a local MCP server that exposes Cookie Chain actions to AI agents. It describes the project structure, security rules, and conventions for adding tools.

In plain words
What is it for?
Use them when contributing to cookie-mcp, adding Cookie Chain tools, changing wallet or transaction logic, or updating its HTTP, RPC, launchpad, and formatting code.
Why use it?
They keep blockchain actions non-custodial, limit wallet spending, and ensure the server remains testable and consistent as features are added.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md.

This is cookiechain/cookie-mcp's own configuration. It tells Codex and OpenCode how to work on cookie-mcp itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything cookie-mcp configures →

Reuse

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.

Copy the file
curl -O https://raw.githubusercontent.com/cookiechain/cookie-mcp/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/cookiechain/cookie-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 cookie-mcp AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/cookiechain/cookie-mcp/agents-md/github.svg)](https://agentmods.dev/instructions/cookiechain/cookie-mcp/agents-md)
Your own site
<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.

agentmods 80×15 button for cookie-mcp AGENTS.md

Your own site · 80×15
<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>
Per session 1,724 This file is loaded in full into every session.
When invoked 1,724 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.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

Measured 9d ago against content hash 4680285bad65, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

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.

AGENTS.md · 105 lines

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.

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)

Read the full file on GitHub · 105 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. 9d ago Changed · -2 tokens per session 4680285bad65
  2. 11d ago Changed · +4 lines · +99 tokens per session bf21b25881e6
  3. 13d ago Changed · +2 lines · +61 tokens per session 25217c5b873d
  4. 1mo ago Changed · +7 lines · +149 tokens per session 6cdc2e354c88
  5. 1mo ago Changed · +3 lines · +67 tokens per session 8f70531c94a5
  6. 2mo ago First seen · 89 lines · 1,350 tokens per session scan A 971f02f40068

Subscribe to this mod's changes

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.

Related

cookie-mcp AGENTS.md compared with instructions from other repositories

cookie-mcp AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
cookie-mcp AGENTS.mdcookiechain/cookie-mcpInstructions file410d agoMITA1,724Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143ktodayMITA7,461Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA5,649GitHub Copilot
langchain AGENTS.mdlangchain-ai/langchainInstructions file149ktodayMITA4,680Codex, OpenCode
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA3,093GitHub Copilot
vscode ai-customization.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA1,907GitHub Copilot