github activeing123/mcptoon v0.8.17
v0.8.17 — mcptoon select, the portable Windows zip, and the skill that could not load

latest releases: v0.8.40, v0.8.39, v0.8.38...
one month ago

[0.8.17] - 2026-10-11

Added

  • mcptoon select "<task>" — pick the few tools a task needs, with a pluggable
    ranker.
    Past roughly 40-50 tools the model starts choosing the wrong one, and
    compressing the catalog does not fix accuracy. select answers the question
    that decides whether the agent succeeds — which 3 tools to look at (default 3)
    — instead of search's "which tools match this keyword" (up to 20). The ranker
    is pluggable through select.engine: lexical (the default, pure stdlib,
    offline, no model) or command (run your own embedding or LLM ranker — one
    JSON object in, one JSON array out), so a machine that already runs a ranker
    gets semantic ranking without mcptoon taking a dependency (dependencies = []
    stays true; CI enforces it). The engine that answered is always named in the
    output, including when a configured command engine failed and the built-in
    one took over — a silent fallback would leave a broken ranker undiscovered.
    Also fixes a latent bug this surfaced: config set lowercased the value as
    well as the key, which is fine for the enum settings and corrupts a free-text
    one (a ranker path with any uppercase was stored mangled). Enums still accept
    "ON" / "Off"; free text is stored verbatim. The skill documents the new command
    (mcptoon select), and tests/test_skill_package.py now pins the five core
    commands the skill must always name, so a shipped command cannot go unmentioned
    in the file agents actually read.

  • A self-contained Windows zip is attached to every release. The winget PR
    and the Chocolatey package both install a zip that contains a portable exe, and
    only v0.8.3 ever had one — the script that made it hardcoded the version and
    machine paths, so v0.8.4 .. v0.8.16 shipped with zero release assets and both
    channels sat 13 versions behind PyPI with no error anywhere. (v0.8.16 now has a
    zip, but it was attached two days after the release, when this workflow first
    ran — not at publish time.)
    scripts/build_portable_zip.py is that script made version-generic (the wheel
    comes from PyPI or --wheel, the embeddable CPython is pinned by sha256) and
    runs three self-checks before writing the zip; release-portable.yml runs it
    from the release tag and attaches the asset.

  • The skill now checks that the CLI exists before using it. A copy of
    SKILL.md travels on its own — an agent folder or a dotfiles repo copies the
    one file and does not install the binary with it — so the common failure is an
    agent holding the skill on a machine where mcptoon does not exist. Every
    command in the skill then reads as an instruction that cannot run, and the
    skill said nothing about checking first. Step 0 now runs mcptoon --version
    before the command tables, gives the install path (pip install mcptoon, or
    uvx mcptoon … / pipx install mcptoon), and tells the agent to say what it
    did rather than report success it never had. Rules gain #6 (the file travels
    alone) and #7 (a stale copy is the second failure after a missing binary —
    judge by mcptoon --help, and never compare the skill's frontmatter version
    with the CLI's version, they are different systems).

    Measured failure mode (2026-10-11): meowveloper/nix-config vendored this
    skill into dot-files/programs/.agents/skills/mcptoon/SKILL.md (233 lines,
    pinned at skill 1.2.0) and never installed the CLI — a full-tree scan of that
    commit finds no mcptoon.nix and no binary, only the skill. The copy was
    deleted five days later in a batch "update and cleanup". A skill that cannot
    run is a skill that gets removed.

    Skill version 1.3.0 → 1.4.0. All three distribution copies (packaged,
    repo-root, Claude Code plugin) stay byte-identical, and
    tests/test_skill_package.py pins the check, the install command, the
    no-install command, and that the check precedes the first command table.

Fixed

  • A wedged server can no longer hang a command, and server failures are
    explained in plain words.
    doctor, inspect and manifest reported a
    failure as a raw protocol string ([RESPONSE_TIMEOUT] no JSON-RPC response for request id 2 within 30s). manifest.explain_error now turns the code into the
    plain reason plus the next step, keeps the raw text for the real cause, and
    never invents a diagnosis for an error it does not recognise; doctor names
    the broken servers together at the end instead of "see above".

    Same failure, test side: ~65 tests spawn real child processes (npx, uvx, an
    MCP server over stdio), and one wedged child blocked its test forever — a run
    that normally takes ~150s ran indefinitely, and killing it left the
    grandchildren orphaned. timeout = 120 in pyproject.toml now fails such a
    test and names it, and scripts/run_tests.ps1 puts a wall-clock ceiling on the
    whole run and kills the process tree on expiry. Both verified: a probe that
    spawns a 600s-sleeping child is killed in 21s with no orphan left.

  • The skill's YAML frontmatter was invalid, so every strict host silently
    dropped the skill.
    Since 0.8.16 the description — a double-quoted YAML
    scalar — contained two inner quotes left unescaped (`mcptoon docs resolve "<question>"` and `mcptoon select "<task>"`), while two others were
    correctly written \\". A double-quoted scalar ends at the first unescaped
    ", so the value closed early and the rest of the line was garbage. PyYAML
    and the yaml package a skill host uses both reject the whole block with
    Nested mappings are not allowed in compact mappings; the loader logs a
    warning nobody reads and drops the skill. Measured window: 2026-10-07
    (6245006) to 2026-10-11.
    Every version before 0.8.16 parses clean, so this
    was a four-day-old defect, not a long-standing one. Both inner quotes are now
    escaped; the value parses in PyYAML and in DSH's parser, and the skill loads
    again.

    Why nothing caught it: yaml_frontmatter_error in tests/test_skill_package.py
    pinned only the plain-scalar rule (a bare ': ' opens a nested mapping,
    the v0.8.2 bug) and explicitly skipped any value starting with a quote. It
    returned None for this block. The guard now also validates double- and
    single-quoted scalars, and a new test cross-checks the guard against PyYAML
    itself (skipped when PyYAML is absent, so the zero-dependency contract holds).

    The count surfaces moved with the four new tests: 2038 → 2044 in
    README.md, README.zh-CN.md, DEVELOPERS.md, ROADMAP.md, docs/index.html,
    docs/index-zh.html and docs/tiktoken-benchmarks.md (the two landing pages also
    re-dated, since they claim the count was taken on the day the page was built).

Don't miss a new mcptoon release

NewReleases is sending notifications on new releases.