github activeing123/mcptoon v0.8.37
v0.8.37 — per-command ArgParserFactory, doctor migrated

one hour ago

[0.8.37] - 2026-11-12

Added

  • Per-command ArgParserFactory. A new
    src/mcptoon/arg_parser_factory.py module wraps argparse.ArgumentParser
    with allow_abbrev=False and add_help=False, exposing a shared baseline of
    output flags (--json, --toon, --slim, --compact, --mcptoon,
    --yaml, --format, --head, --max-chars, --full, --transport,
    --stdin, --fallback-json). parse_cmd_args uses parse_known_args so
    positionals and opaque tails pass through to the command handler without
    aborting; strict unknown-flag enforcement stays with the global pre-pass in
    cli.py.

  • doctor subcommand migrated to the new parser. _cmd_doctor now takes
    json_mode=False instead of the old fmt/--json in rest heuristic. The
    dispatch is keyed on the resolved command and reads --json from the
    factory's namespace, so a --json on either side of doctor still produces
    JSON, while an argument value that happens to read doctor on another
    command can no longer reach this branch. The global pre-pass still validates
    every other flag and value, so strict-mode behavior is unchanged.

    Contributed by @examosa (#44); landed with the two review items applied (#46).

Don't miss a new mcptoon release

NewReleases is sending notifications on new releases.