agentleFS
activeing123activeing123/mcptoon/AGENTS.md

mcptoon

AGENTS.md448 starsChanged 4 months agoApache-2.0View on GitHub

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. 1. Zero dependencies, always. The dependencies field in pyproject.toml stays empty. Standard library only. CI enforces this…

  • Installs packages
  • Commits and pushes
  • Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about code style.

    Of the AGENTS.md files we read, the 35,337 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.

  • In this repository2 other files it gives its agents.

The file

We split this AGENTS.md into the rules it gives an agent

1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Finish the attack surface before you bump: If you are probing one module (or one class of defect), keep finding and fixing until the probe …

    line 61

≈ “Common” is an estimate: at least 1 in 5 of the 45,344 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
AGENTS.md

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.

Release notes are in English (added 2026-10-04)

The GitHub Release title and body are English — always. The body is the CHANGELOG.md block for that version, verbatim; the title is vX.Y.Z — <short English summary>. Do not paste a commit subject into the title, and do not hand-write a translated body.

Why this is a rule and not a preference: the Release is a global surface. The numtide packaging bot and its maintainers, the PyPI project page (which renders this body), the MCP Registry, Glama's reviewers and every upstream PR author read it. The Chinese-facing surface already exists and is README.zh-CN.md. Measured drift this rule prevents: v0.8.12 shipped with a Chinese title (the release: commit subject, pasted into name) and v0.8.11 with a fully Chinese body that was never in CHANGELOG.md at all — 2 of 47 releases, both fixed 2026-10-04. CHANGELOG.md itself has stayed 0.0% CJK throughout, so following it is enough to stay English; the failure mode is bypassing it.

Batch the release, don't ship every finding (added 2026-10-02)

A release is the unit of a finished topic, not of a single fix. Ship one version per topic once the topic is exhausted — not one version per discovery. Measured cost of the alternative: six releases on 2026-10-02 (0.8.6 → 0.8.11), each one a full ritual (version in 5 places, 3 claim surfaces, CHANGELOG, tag, GitHub Release, 3 workflow runs, tap dispatch, drift gate, ledger in 2 places) — roughly an hour of mechanical work per version, and most of it repeated. Worse, every release resets the numtide grace window, so the bot that packages us stayed pinned at 0.8.7 all day and could never catch up.

Rules that follow:

  • Finish the attack surface before you bump. If you are probing one module (or one class of defect), keep finding and fixing until the probe reports nothing, then release once. 0.8.10 and 0.8.11 were both products of the same adversarial technique on adjacent code and could have shipped together.
  • Same topic, same version. A fix and the test that pins it and the docstring it corrects belong to one release. Splitting them across versions is what "one finding, one release" looks like from the outside.
  • Cap the cadence at one release per day unless a shipped defect is actively corrupting data or blocking installs. If a second release seems necessary the same day, the honest question is whether the first one should have waited.
  • Do not batch unrelated work into one version to satisfy this rule. The rule is "finish the topic", not "hoard changes". A release with two unrelated themes is harder to reason about than two releases with one theme each.

Step 6 (added 2026-10-01) — run the drift gate, don't eyeball the channels

python scripts/release_sync.py --apply     # from the ops zone, not this repo

One command checks every distribution channel against PyPI as the baseline, auto-repairs the Homebrew tap if it drifted, rewrites the channel ledger, and records an op entry. Exit code 2 means a channel that is supposed to be automatic has drifted — fix it before calling the release done. Exit 0 may still print 🟡 advisory items (Chocolatey / winget / ClawHub): those need a human to build an artifact, so they never block and never go quiet.

scripts/release_sync.py lives in the maintainer's ops zone (mcptoon/scripts/), not in this repo — the public tree deliberately stays free of machine-local paths.

This step exists because of a measured failure, not theory: on 2026-10-01 the Homebrew tap was found four releases behind (0.8.1 while PyPI was at 0.8.5, from 09-25) with zero errors anywhere. The tap is a hand-written formula pinned to a sha256; it is in no workflow and no bot watches it, so the release ritual had nothing to catch it. It is now self-healing — activeing123/homebrew-mcptoon runs .github/workflows/auto-bump.yml daily — but step 6 is what tells you, immediately, if that automation ever breaks.

Windows note: the tap's auto-bump.yml is a twice-daily cron (measured runs 06:49Z and 19:44Z, gaps up to ~13h), so the Homebrew grace window is 14h, not 2h (raised 2026-11-12). At 2h the gate reported Homebrew as blocking for hours after every release while the formula was already correct — v0.8.37's tap commit landed 3.3h after the release — and a false red trains people to ignore the job. A tap that is genuinely broken is still caught within 14h.

Deliberate design limits, so the gate does not turn into noise:

  • Blocking = only channels that are supposed to move automatically (MCP Registry / numtide / Homebrew / gemini manifest / GitHub Release), each with a grace window sized to its bot (14h tap, 24h registry, 72h numtide).
  • Advisory = channels needing a human-built artifact. A gate that cries wolf daily gets ignored, and then the real signal dies with it.
  • ClawHub's version is a different numbering system (skill 1.0.8 vs CLI 0.8.5). It is displayed, never compared.
  • Proving a gate still fires is part of using it: release_sync.py --check --simulate-drift "Homebrew=0.8.1" must exit 2.

Step 7 (added 2026-10-11) — prove the skill still loads in a host

python scripts/check_skill_loadable.py     # from the ops zone, not this repo

The skill's frontmatter must parse with a real YAML parser. If it does not, the host does not error — it drops the skill with a warning nobody reads: the file ships, installs into every view, stays byte-identical in all three copies, and is never loadable. Exit code 2 means at least one copy or installed view failed to parse — fix it before releasing.

This step exists because of a measured failure, not theory: the 0.8.16 skill (6245006, 2026-10-07) wrote description as a double-quoted scalar with two inner quotes left unescaped (`mcptoon docs resolve "<question>"`). A double-quoted scalar ends at the first unescaped ", so the value closed early; PyYAML and DSH's yaml package both rejected the block, and every strict host dropped the skill for four days while all mcptoon's own tooling stayed green. The in-repo guard (tests/test_skill_package.py) now pins the shape, but it only sees the three shipped copies — CI cannot see the installed views (the source skills tree and the per-agent skill folders) that a host actually reads. This checks both, and cross-checks against PyYAML rather than a home-grown rule.

Design limits, so the check does not turn into noise:

  • Blocking = any copy or view whose frontmatter fails to parse.
  • Advisory = the description's length against the host's catalog budget (currently 1024 chars; the skill is ~1900, which the host renders every turn). It is printed, never compared, and never blocks a release.
  • It is a strict-parse proxy: if PyYAML accepts the block, every YAML-based host will too. It cannot see a host that reads frontmatter without a YAML parser.

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

  • The version lives in five places. pyproject.toml, server.json (twice: top level and packages[]), the hardcoded __version__ in src/mcptoon/__init__.py, and gemini-extension.json. 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 pins the registry set and tests/test_gemini_manifest.py pins the extension; update every one on every bump and run both suites green. Use python scripts/bump.py X.Y.Z — it rewrites all of the above plus the softwareVersion in both landing pages and the vX.Y.Z · N passed line in DEVELOPERS.md / ROADMAP.md (the surfaces test_registry_sync and test_footprint_claims also check), and renames ## [Unreleased] to the new version. Then run those guard suites to prove the tree is consistent.
  • 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.
  • The test total is on eight surfaces — let the script write it. python scripts/sync_claims.py --apply measures collection and rewrites the tests-<n>%20passed badges in both READMEs, the one-line N passed · M skipped claim on the landing pages / DEVELOPERS / ROADMAP, the prose N tests spelling, and docs/tiktoken-benchmarks.md, then runs test_footprint_claims.py to prove it. Adding tests without running it is how the badges drift; note the badge text is lowercase tests- (a case-sensitive guard missed it for months — fixed 2026-10-17).
  • 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.

Ecosystem channel ledger

What mcptoon has earned externally, and the standing obligation each one creates:

ChannelStandingOur obligation
numtide/llm-agents.nixS-tier: packaged; bot auto-follows since init PR #7839 (zimbatm). Its derivation fetches the GitHub tag (fetchFromGitHub { tag = "v${version}"; hash = …; }), not PyPI and not main — so a fix on main reaches it only after a release. Its build runs our pytest suite inside the Nix sandbox (pytestCheckHook), which means a flaky test of ours blocks their PR: measured 2026-10-29, checks.aarch64-linux.pkgs-mcptoon failed with RESPONSE_TIMEOUT != PROCESS_DIED while every x86_64 run passed.Release discipline above; after each release, confirm the bot PR merged. A red nixbot/nix-build is our defect until proven otherwise — read the log, do not assume infrastructure. Re-runs are not available through the GitHub API (rerequest returns 404), so a red PR can only be superseded by the next release
sudosubin/agents.nixS-tier: packaged twice — as an agent skill and as an agent plugin (data/agent-skills/github.com/activeing123/mcptoon.json and data/agent-plugins/…, two separate files). Its own bot auto-follows; 6+ merged PRs in three days, each titled 0.8.x → 0.8.x. Measured 2026-10-30: already at 0.8.33, hours after release. It was not in this ledger until now — nothing watched it, which is the same structural gap that let the Homebrew tap drift four releases unnoticed.after each release, confirm both entries moved. They are separate files and can diverge, and a skill/plugin version mismatch is a real drift signal. Advisory only today: it has never drifted, so it does not block the drift gate yet
PyPIevery releasepublish workflow green before announcing
MCP Registry (server.json)listed; published automatically by .github/workflows/publish-mcp.yml on every release (OIDC)keep server.json in sync — CI enforces the versions, the mcp-name: README marker and the workflow itself via tests/test_registry_sync.py
Homebrew tap (activeing123/homebrew-mcptoon)personal tap, not Homebrew core (core rejects pip-installable Python CLIs)listed here on purpose — it is a hand-written formula pinned to a sha256, invisible to every workflow and bot. It drifted four releases (0.8.1 vs PyPI 0.8.5) with zero errors until 2026-10-01. Now self-healing via that repo's daily auto-bump.yml; step 6 above is what reports it if that automation ever breaks. Never publish a release without checking it.
Chocolatey community packagelisted and approved at 0.8.5 (2026-10-02 verified: OData Published=2026-09-30T12:07:12Z, package page Approved). 0.8.40 pushed 2026-11-15, in moderation — package page exists (HTTP 200) with all three lights Pending, OData still lists 0.8.36 as the newest approved version.manual: build the nupkg, choco push, wait for moderation. There is no automation — release_sync.py lists this one as advisory, so a new release needs a human to push the package. Advisory-only in the drift gate. Local choco install cannot be used as acceptance on this host: duplicate proxy env vars (NO_PROXY/no_proxy, HTTP_PROXY/http_proxy) make Chocolatey's case-insensitive env dictionary throw 已添加项 and abort. Verify instead by downloading the same two artifacts, extracting them, and running python.exe -m mcptoon --version.
Scoop (activeing123/scoop-mcptoon)live since 2026-11-15 — personal bucket, manifest at bucket/mcptoon.json, scoop bucket add mcptoon https://github.com/activeing123/scoop-mcptoon then scoop install mcptoon installs 0.8.40. Verified end-to-end on this machine: install → mcptoon --version = mcptoon 0.8.40, then uninstall + reinstall to prove the manifest is reproducible. Not in ScoopInstaller/Main or /Extras (both 404 for mcptoon.json); a pip-installable Python CLI does not belong in Main.the manifest self-updates: checkver follows the GitHub releases of activeing123/mcptoon, autoupdate rewrites the download URL per version. So a new release needs no manual step here — but the hash only moves if scoop update is run against the bucket, so confirm with scoop update mcptoon after a release. Advisory-only in the drift gate (not yet wired in).
microsoft/winget-pkgsPR #480716 open (0.8.40) — filed 2026-11-15 from activeing123:activeing123.mcptoon-0.8.40, 3 files added under manifests/a/activeing123/mcptoon/0.8.40/, winget validate exit 0 locally. Supersedes #460772 (0.8.27), closed 2026-11-15 with a closing note pointing at the new PR; earlier submissions #443014 (0.8.3) / #450462 (0.8.17) / #457898 (0.8.25) were all closed unmerged. The package has never been merged into winget-pkgs — manifests/a/activeing123/mcptoon does not exist upstream, and the open-PR queue there was 5,726 on 2026-11-15, so queue time is measured in weeks. release_sync.py reads the live number and was always right; only this prose goes stale.manual: needs a self-contained zip asset per version. Advisory-only in the drift gate. Say "PR submitted", never "on winget" until merged. Version directories are immutable in winget-pkgs, so a newer version always means closing the old PR and filing a fresh one — decided 2026-10-02 and executed 2026-11-15. Do not reopen an old PR to change its version, and do not chase the moderator. Re-verified 2026-11-15: komac 2.17.1 new fails on this host with os error 5 (access denied, no cache dir, token passed or not), so the manifests are written by hand and validated with winget validate; that is the working path here, not komac.
ClawHub skill listinglisted; its tag number is ClawHub's own counter (not the CLI version, not the SKILL.md frontmatter version)manual republish when SKILL.md changes. Never compare its number to any other version line
apify/mcpc client comparisonlisted in comparison tablenone — leave the table alone
HOL Registry (hol.org)listed; owner-verified 2026-10-22 (GitHub provenance check; the granted scopes are read:user + user:email only — no repo access)free Owner-verified badge + a followed link on the verified listing. A live README badge exists but its trust metric is still unknown — do not paste it until it resolves. It is a listing, not a versioned channel: nothing to re-publish per release
awesome-mcp-clients PR #283pendingdo not nag maintainers until ≥500 stars
striki18/benchmarkthird-party benchmark harness running mcptoonexternal repo — read for intel, do not touch

Auto-crawler listings (topic indexes, news aggregators) are noise: never report them as traction. When reporting ecosystem progress, always pair listing counts with the real adoption number — PyPI downloads (https://pypistats.org/api/packages/mcptoon).

Where the older rules live (pointers — single source of truth, do not duplicate)

  • Dev workflow, code style, project structure → CONTRIBUTING.md
  • Architecture, the three core commands, token benchmarks → DEVELOPERS.md
  • What to build next and why → ROADMAP.md
  • What makes the CLI feel considered (messages, numbers, first-run paths) → docs/experience-checklist.md
  • Marketing surface (landing pages + README) mission, readers, block duties, gates → docs/homepage-framework.md
  • Competitive landscape and positioning → competitive-intel-mcp-manager-tools.md
  • Release history → CHANGELOG.md

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.