mcptoon: Instructions file for Codex

AGENTS.md

mcptoon AGENTS.md is an instructions file for Codex, OpenCode from activeing123/mcptoon. It costs 1,537 tokens per session, scanned A, original, Apache-2.0.

Repository instructions for agents working on mcptoon. They define coding, testing, dependency, Windows compatibility, commit, and release rules for that project.

In plain words
What is it for?
They are for guiding development and release work on mcptoon, including running its tests, keeping it dependency-free, supporting Windows, and using Conventional Commits.
Why use it?
They make important project requirements explicit before an agent changes code or publishes a release. This helps avoid broken builds, missing tests, incompatible behavior, or improperly formatted commits.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: mentions Claude Code; mentions AGENTS.md; mentions Codex.

This is activeing123/mcptoon's own configuration. It tells Codex and OpenCode how to work on mcptoon 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 mcptoon configures →

Reuse

Borrowing it

Nothing to install: this file belongs to activeing123/mcptoon. 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/activeing123/mcptoon/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/activeing123/mcptoon

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 mcptoon AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/activeing123/mcptoon/agents-md/github.svg)](https://agentmods.dev/instructions/activeing123/mcptoon/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/activeing123/mcptoon/agents-md"><img src="https://agentmods.dev/badge/instructions/activeing123/mcptoon/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 mcptoon AGENTS.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/activeing123/mcptoon/agents-md"><img src="https://agentmods.dev/badge/instructions/activeing123/mcptoon/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,537 This file is loaded in full into every session.
When invoked 1,537 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.01537 $0.01537
Opus 5 $0.00768 $0.00768
Sonnet 5 $0.00307 $0.00307
Haiku 4.5 $0.00154 $0.00154

Measured today against content hash 53f19b7b9894, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

mcptoon 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 today.

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 · 91 lines

How it starts

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

AGENTS.md — rules for AI agents working on mcptoon

Any AI agent (Codex, Claude Code, Cursor, DSH, ...) writing code, docs, or cutting releases in this repo follows the rules on this page. They exist because mcptoon is now carried by external automation: numtide/llm-agents.nix packages this project and an official bot auto-bumps it on every PyPI release. A careless release breaks that channel; these rules keep it clean. Human contributors: see CONTRIBUTING.md.

Hard rules

  1. Zero dependencies, always. The dependencies field in pyproject.toml stays empty. Standard library only. CI enforces this via scripts/check_zero_deps.py — treat a red zero-deps job as a broken build, not a suggestion.
  2. Tests gate every change. New behavior ships with tests in tests/. Run python -m pytest tests/ and paste the real green output before claiming done.
  3. Windows is a first-class target. Anything touching paths, subprocess, or npx must work on Windows; the CI matrix runs it on every PR.
  4. Conventional Commits for every commit (feat:, fix:, docs:, test:, chore:).

Release discipline

A release is complete only when all five land together:

  1. version bumped in pyproject.toml
  2. CHANGELOG.md entry written for the new version
  3. full test suite green
  4. git tag vX.Y.Z pushed
  5. PyPI publish green (.github/workflows/publish.yml)

The numtide bot turns PyPI releases into Nix bump PRs automatically. A version that exists on main but not on PyPI (or the reverse) leaves a broken bump in that channel. Breaking changes must land as deprecation warnings one minor version before removal.

Details that bit us during v0.7.4 (2026-09-05), so they are now part of the ritual:

  • The version lives in four places. pyproject.toml, server.json (twice: top level and packages[]), and the hardcoded __version__ in src/mcptoon/__init__.py. 0.7.6 shipped with mcptoon --version printing 0.7.5 because the last one was missed — caught only by the post-release smoke test. tests/test_registry_sync.py now pins all of them together; update every one on every bump.
  • The publish workflows used to race each other. publish.yml and publish-mcp.yml start on the same release event; the registry run validated the PyPI version while the wheel was still uploading and failed with 400. This happened on both 0.7.6 and 0.7.7. Root cause fixed in publish-mcp.yml: a wait step now polls PyPI's JSON API for the released version (up to 5 minutes) before pushing the registry record. If the wait step ever times out, retry with gh workflow run publish-mcp.yml -f reason=....
  • Pushing a tag does not publish. publish.yml triggers on release: [published], so a GitHub Release must be created (gh release create vX.Y.Z --notes-file …).
  • Verify against the real index. This machine's pip points at a mirror that lags — and its global ALL_PROXY=socks5:// breaks fresh venvs (no PySocks). Confirm a fresh release with a clean venv, proxy vars cleared: python -m venv .scratch/check && .scratch/check/Scripts/python -m pip install --no-cache-dir --index-url https://pypi.org/simple/ mcptoon, then run mcptoon --version from that venv and compare with the tag.
  • Run the lint job locally (python -m ruff check src/mcptoon/ tests/, ruff 0.15.20) before pushing — unpushed commits never see CI, and one UP037 turned the release red.
  • Update the Tests-<n> passed badges in README.md and README.zh-CN.md (and the matching comment in their contributor sections) to the suite total of the release.
  • The MCP Registry record used to be pushed by hand. 0.7.0 and 0.7.2 were published from a laptop; 0.7.3–0.7.5 never reached it, and server.json's package version had drifted a release behind its own top-level version. publish-mcp.yml now publishes on every release, and tests/test_registry_sync.py fails CI if the versions, the mcp-name: marker in the PyPI README, or the workflow drift apart. Do not remove that marker when rewriting the README — it is invisible when rendered and load-bearing.

Read the full file on GitHub · 91 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. today Changed · +15 lines · +328 tokens per session 53f19b7b9894
  2. 3d ago First seen · 76 lines · 1,209 tokens per session scan A 27d88465a89d

Subscribe to this mod's changes

mcptoon AGENTS.md is an instructions file published in the GitHub repository activeing123/mcptoon (195 stars, last pushed yesterday), licensed Apache-2.0. It adds 1,537 tokens to every session, about $0.0077 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-09-06.

Related

Other instructions, from other repositories

next.js AGENTS.md

AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.

vercel/next.js · 7,296 tokens

codex AGENTS.md

AGENTS.md instructions for openai/codex, covering rust/codex-rs, the codex-core crate, code review rules, crate api surface and model visible context.

openai/codex · 5,153 tokens

vscode buildNext.instructions.md

Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).

microsoft/vscode · 6,785 tokens

vscode oss-third-party-notices.instructions.md

Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, applying the notice (cutover) and fallback chain (never fail the build).

microsoft/vscode · 5,001 tokens

langchain AGENTS.md

AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.

langchain-ai/langchain · 4,469 tokens

deepseek-harness AGENTS.md

AGENTS.md instructions for deepseek-ai/deepseek-harness, covering agents.md, pre-stable apis and released session data, repository layout, commands and host sandbox failures.

deepseek-ai/deepseek-harness · 3,735 tokens