Skip to content

mcc v0.5.0

Choose a tag to compare

@github-actions github-actions released this 21 Oct 13:06
· 20 commits to main since this release

mcc usage --all looks every account's usage up live for one run, the default profile included, without a config change and with a risk notice each time, and saves what it finds to the mcc statusline cache, so plain mcc usage, mcc list and mcc run show those numbers afterwards with their age.

Added

  • mcc usage --all looks every account's usage up live for one run, the default profile included, with each profile's own login instead of the mcc statusline cache, without turning on [usage] live = true or changing the config. Because it reads and sends each profile's OAuth access token to Anthropic's undocumented usage endpoint, it prints a risk notice on stderr every time it runs (with -q too; --json on stdout is unaffected), and mcc usage --help shows that notice in full. What it finds is saved to ~/.mcc/state/<profile>/usage.json, the same cache mcc statusline writes, so a later mcc usage without --all (and mcc list and mcc run) shows those numbers with their age until a window resets or newer numbers are cached; an account it can't read keeps what was cached. --all can't be combined with a profile name (exit 2), and MCC_NO_USAGE=1 still turns usage off. Without --all, mcc usage behaves as before. (#94)

Full Changelog: v0.4.0...v0.5.0

Install

The install script downloads the prebuilt binary for your platform, checks its SHA-256 checksum and installs it into ~/.local/bin, so you don't need Rust:

curl -fsSL https://raw.githubusercontent.com/luongnv89/mcc/main/install.sh | sh

Or with Homebrew, which builds mcc from source with its own Rust:

brew install luongnv89/tap/mcc

This release carries mcc-<target>.tar.gz archives for macOS and Linux on x86_64 and arm64 (x86_64-apple-darwin, aarch64-apple-darwin, x86_64-unknown-linux-musl, aarch64-unknown-linux-musl; the Linux builds are static), each with a .sha256 file, plus SHA256SUMS. To build from source, see the README.