Directory Compare FCRS-1.0 /llms.txt
← Back to Directory

mas

$ mas Community Med Risk
mas-cli · Workspace & SaaS · MIT · macos

mas (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.

FCRS-1.0 Score
71 /100
Usable w/ Caveats
Medium Confidence
Zero-Friction Install
brew install mas
CLI vs MCP Decision CLI Only

mas talks directly to local macOS StoreKit/App Store daemons to inventory and update /Applications bundles, which has no MCP equivalent.

Agent-Readiness Checklist

— JSON Output
— Field Filtering
✓ Non-Interactive
— Dry-Run
— Read-Only Mode
— NO_COLOR Clean
✓ Self-Describing
— Official SKILL.md

Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.

FCRS-1.0 6-Dimension Breakdown

Agent-Readiness 15 / 25

Simple subcommands (list, search, outdated, install, upgrade) work cleanly in scripts, but output is unstructured text with no --json flag.

  • No --json output flag; fixed-width or line-based stdout
  • Headless execution fails on install if macOS GUI App Store is signed out
Trust & Safety 18 / 25

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, and mas outdated provide safe pre-flight inspection
  • No --dry-run flag on install or upgrade
Setup & Portability 10 / 15

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
Utility & Efficiency 12 / 15

Standard companion to brew bundle for declarative macOS workstation setup and updates.

  • Integrates directly with Homebrew Brewfile (mas "Name", id: ...)
Maintenance & Lineage 8 / 10

Established MIT community tool (mas-cli/mas) maintained alongside macOS StoreKit changes.

  • Open-source MIT repository at mas-cli/mas
Docs & Verifiability 8 / 10

Concise README and standard --help descriptions for all subcommands.

  • Clear subcommand reference in repository README

Security, Auth & Guardrails

Auth Modes
OS Keychain No Auth
Credential Storage

Relies on the signed-in macOS App Store GUI session (App Store.app); search and info work without sign-in.

Side Effects
Read-Only Local Write Billing Impact
Cost & Quotas

MIT open-source CLI; installing paid apps via mas install bills the signed-in Apple Account.

Copyable Guardrail for CLAUDE.md / AGENTS.md
# 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

List installed Mac App Store apps
mas list

Prints installed App Store app IDs, names, and versions for audit or Brewfile generation.

Search the Mac App Store catalog
mas search Xcode

Searches the Mac App Store for matching app IDs and titles without installing anything.

Controlled Writes & Previews

Upgrade outdated Mac App Store apps
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 --json flag.
  • ! mas install requires an already signed-in App Store.app session and breaks in pure headless VM setups.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI