mas
$ mas Community Med Riskmas (mas-cli/mas) provides a simple command-line interface to the Mac App Store on macOS (mas list, mas search, mas info, mas install, mas upgrade). Commonly paired with Homebrew Brewfile provisioning to audit and update Mac App Store software non-interactively.
brew install mas mas talks directly to local macOS StoreKit/App Store daemons to inventory and update /Applications bundles, which has no MCP equivalent.
Agent-Readiness Checklist
Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.
FCRS-1.0 6-Dimension Breakdown
Simple subcommands (list, search, outdated, install, upgrade) work cleanly in scripts, but output is unstructured text with no --json flag.
- No
--jsonoutput flag; fixed-width or line-based stdout - Headless execution fails on
installif macOS GUI App Store is signed out
Read commands are safe and install targets explicit numeric Adam IDs, though paid-app purchases/updates inherit GUI session permissions without --dry-run.
mas list,mas search, andmas outdatedprovide safe pre-flight inspection- No
--dry-runflag oninstallorupgrade
macOS-only tool via brew install mas that also depends on macOS system App Store frameworks.
- Strictly macOS-only and tied to local App Store daemon state
Standard companion to brew bundle for declarative macOS workstation setup and updates.
- Integrates directly with Homebrew
Brewfile(mas "Name", id: ...)
Established MIT community tool (mas-cli/mas) maintained alongside macOS StoreKit changes.
- Open-source MIT repository at mas-cli/mas
Concise README and standard --help descriptions for all subcommands.
- Clear subcommand reference in repository README
Security, Auth & Guardrails
Relies on the signed-in macOS App Store GUI session (App Store.app); search and info work without sign-in.
MIT open-source CLI; installing paid apps via mas install bills the signed-in Apple Account.
# mas Agent Rules - Run `mas outdated` or `mas list` before calling `mas upgrade`. - Confirm exact numeric App Store IDs via `mas search` before running `mas install <id>`. - Note that `mas install` requires an active GUI App Store sign-in on macOS.
Agent-Ready Command Recipes
Safe Read-Only Queries
mas list
Prints installed App Store app IDs, names, and versions for audit or Brewfile generation.
mas search Xcode
Searches the Mac App Store for matching app IDs and titles without installing anything.
Controlled Writes & Previews
mas upgrade
Updates installed Mac App Store applications to their latest available versions.
Strengths for Agents
- + Lightweight way to audit (
mas list,mas outdated) and automate Mac App Store packages alongside Homebrew. - + Explicit numeric app IDs reduce ambiguity during scripted installs.
Caveats & Pitfalls
- ! macOS-only, plain-text output with no
--jsonflag. - !
mas installrequires an already signed-inApp Store.appsession and breaks in pure headless VM setups.