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

MinIO Client

$ mc Official Med Risk
MinIO · Cloud & Infra · AGPL-3.0 · macos / linux / windows

MinIO Client (mc) provides UNIX-like commands (mc alias set, ls, cat, cp, mirror, watch, admin) across local filesystems, MinIO servers, and S3-compatible object stores. Passing --json (or MC_JSON=true) emits clean JSON lines across all operations.

FCRS-1.0 Score
86 /100
Good
Medium Confidence
Zero-Friction Install
brew install minio-client
CLI vs MCP Decision CLI Only

mc handles high-speed object transfers, mirroring, and cluster admin ops locally via S3 APIs—never route binary object payloads through MCP.

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 22 / 25

Global --json flag and MC_JSON=true env var produce consistent NDJSON output, and MC_HOST_<alias> allows completely stateless auth.

  • Global --json and MC_JSON=true across subcommands
  • MC_HOST_<alias> supports zero-config-file env authentication
Trust & Safety 20 / 25

Supports --disable-pager and requires --force on recursive rm / rb, though mc mirror --remove and mc admin carry high impact if mis-targeted.

  • Requires --force for recursive object removal (mc rm -r --force)
Setup & Portability 14 / 15

Single static Go binary across macOS, Linux, and Windows, though mc binary name collides with Midnight Commander on some systems.

  • Static Go binary via brew install minio-client and dl.min.io
Utility & Efficiency 14 / 15

Covers both standard S3 operations (ls, cp, mirror, diff, find) and MinIO server administration (mc admin).

  • Rich UNIX-like verb set including mc diff, mc find, and mc mirror
Maintenance & Lineage 8 / 10

Official MinIO tool (minio/mc), though AGPL-3.0 licensing requires attention in commercial redistributions.

  • Official minio/mc repository under AGPL-3.0
Docs & Verifiability 8 / 10

Comprehensive MinIO reference docs and inline -h help.

  • Official reference documentation at min.io/docs

Security, Auth & Guardrails

Auth Modes
Config File Env API Key
Credential Storage

Stores named S3/MinIO aliases in ~/.mc/config.json or reads ephemeral MC_HOST_<alias> URLs from environment variables.

Side Effects
Read-Only Local Write Remote Write Destructive
Cost & Quotas

AGPL-3.0 open-source CLI; connects to self-hosted MinIO or S3-compatible endpoints.

Copyable Guardrail for CLAUDE.md / AGENTS.md
# MinIO Client (mc) Agent Rules
- Always pass `--json` (before the subcommand) or set `MC_JSON=true`.
- Remember that the binary name `mc` can collide with Midnight Commander on some Linux distros; verify `mc --version`.
- Never run `mc rm --recursive --force`, `mc rb --force`, or `mc mirror --remove` without explicit user confirmation.

Agent-Ready Command Recipes

Safe Read-Only Queries

List objects under an alias as JSON
mc --json ls myminio/my-bucket/

Emits JSON lines describing buckets, keys, sizes, and ETags.

Inspect bucket metadata and disk usage in JSON
mc --json stat myminio/my-bucket/archive.tar.gz

Returns structured object metadata, checksum, and content type.

Controlled Writes & Previews

Copy build artifacts to object storage without overwriting
mc --json cp --disable-multipart=false ./dist/app.zip myminio/releases/

Uploads a specific local artifact with structured JSON progress/status output.

Strengths for Agents

  • + Global --json / MC_JSON=true works consistently across data and admin commands.
  • + MC_HOST_<alias> env vars avoid mutating ~/.mc/config.json in ephemeral sandboxes.
  • + Rich UNIX-style verbs (diff, find, mirror, watch) across any S3-compatible store.

Caveats & Pitfalls

  • ! Binary name mc may conflict with Midnight Commander (mc) if both are installed.
  • ! mc uses AGPL-3.0 license; --json must be placed before the subcommand.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI