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 --summaryprinted150 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 prints153 slow of 477 timed (32%), plus477 of 1292 calls timed (815 untimed, e.g. mcptoon's own tools).
activity_summary()gainedtimed_countfor this; every latency figure was always computed
over the timed sample, only the label was missing.mcptoon usageprintedTotal calls: 1292and, 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
mcptoonbanner said省 31,911 tokenswhilestatussaid48,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) andstatusthe 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) whilefooter-factsmeasured48,607/1,838,453on the same catalog.
Both READMEs now quote the measured figures (same caliber: tiktokencl100k_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 bydoctor,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, withMCPTOON_CALL_TIMEOUTas the lever, and deliberately does
not quote a default deadline it cannot know when a per-servertimeoutis in force. mcptoon help "how do I ship a release"answered with the global page and said nothing about
the mismatch. It now printsno command named '…' — showing the global pageon 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.
- A timeout's advice and the client's own hint contradicted each other:
-
mcptoon statusrepairs a lagging skill index instead of instructing you. The row read
592 index entriesand, 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.statusnow
callsensure_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 insidestatus, 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-servertimeoutwas 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-servertimeout: 120.