Skip to content

v0.8.45 — numbers that name their caliber

Latest

Choose a tag to compare

@activeing123 activeing123 released this 06 Dec 12:22

Fixed

  • Three numbers now carry their caliber, because each one was read wrong at least once.
    All three were correct arithmetic and misleading presentation; measured on the 2026-12-06
    ledger of this machine (1,288 calls).

    • mcptoon activity --summary printed 150 slow (>3000 ms) over a ledger where only 463
      rows carry a duration — the gateway's own tools record none — so the honest reading was
      150/463 (32%), not the 150/1,288 (12%) the line implied. It now prints 153 slow of 477 timed (32%), plus 477 of 1292 calls timed (815 untimed, e.g. mcptoon's own tools).
      activity_summary() gained timed_count for this; every latency figure was always computed
      over the timed sample, only the label was missing.
    • mcptoon usage printed Total calls: 1292 and, below it, Success rate: 992/1000 — one
      lifetime number and one capped-window number with nothing saying so. It now prints
      Success rate: 992/1000 (last 1,000 calls) whenever the window is the smaller number, and
      stays bare under 1,000 calls where the two are equal.
    • the bare mcptoon banner said 省 31,911 tokens while status said 48,607 → 3,303
      (saved 45,304): two of our own screens, one fact, two numbers, because the banner quoted
      the slim-schema figure (full − --slim) and status the gateway figure (full − resident).
      Both are true of different installs. The banner now prefers the gateway figure when the
      gateway is wired (91 个工具, 网关省 45,304 tokens) and keeps the slim figure only before
      a gateway exists.
    • the README headline carried the same pair stale (46,808→3,303, skills
      1,835,987→39) while footer-facts measured 48,607 / 1,838,453 on the same catalog.
      Both READMEs now quote the measured figures (same caliber: tiktoken cl100k_base).
  • Two screens no longer give one error two different stories. Both were follow-ups found by
    re-reading the surfaces the previous fix touched.

    • A timeout's advice and the client's own hint contradicted each other: explain_error()
      (used by doctor, inspect, manifest) said only "it is probably waiting for something —
      run it once by hand", while the client had just appended "if it is merely slow, raise the
      cap". A ComfyUI call that answered at 31,937 ms against a 30 s cap was the second story.
      The advice now names both, with MCPTOON_CALL_TIMEOUT as the lever, and deliberately does
      not quote a default deadline it cannot know when a per-server timeout is in force.
    • mcptoon help "how do I ship a release" answered with the global page and said nothing about
      the mismatch. It now prints no command named '…' — showing the global page on stderr and
      points at the three surfaces that do answer questions (search, docs resolve,
      skills resolve), then still prints the global page. Exit code is unchanged (0); a fourth
      router over the same catalog was deliberately not built.
  • mcptoon status repairs a lagging skill index instead of instructing you. The row read
    592 index entries and, directly under it, live catalog has 621 — index may be stale, run mcptoon skills index — two numbers for one fact, plus homework for the reader. status now
    calls ensure_index() when the counts disagree and prints the repaired figure. That rebuild
    only fires when a skill actually changed under the index (catalog_signature), so a machine
    whose numbers agree never pays for it, and the status read path stays the cheap file read it
    was. Measured on this machine 2026-12-06: a deliberately truncated index (600 entries, bad
    signature) rebuilt to 621 inside status, and the caveat line disappeared.

  • A tool timeout now names the cap that killed it. A ComfyUI tool answered at 31,937 ms
    against the 30 s default — one second short of working — and the ledger recorded a bare
    "server went silent", which reads like a dead server rather than a slow one. RESPONSE_TIMEOUT
    now ends with — if it is merely slow, raise the cap: MCPTOON_CALL_TIMEOUT=120 (default 30s),
    but only when the deadline in force is that default and the env var is unset: a per-call or
    per-server timeout was chosen on purpose, so advising a wider one there would be advice the
    caller already declined — and "default 30s" would be a lie under a per-server timeout: 120.