v1.0.0
First release of mysql-cli.
What it is
A Go CLI that lets any shell-capable AI agent query MySQL — no MCP runtime required. A drop-in replacement for designcomputer/mysql_mcp_server: all read/write capabilities re-exposed as plain subcommands, with JSON by default and stable exit codes.
Highlights
- Agent-first — JSON envelope
{success,data,error:{code,message}}+ numeric exit codes (2–10), designed to be parsed by agents - Tiered safety model — read-only by default; DML needs
--write, DDL needs--write --ddl, destructive ops need--yes; identifier allowlist + multi-statement rejection, all checked before a DB connection is opened - AI agent skills — 3 skills (
mysql-shared/mysql-query/mysql-schema) with a shared auto-load pattern (mirrorslarksuite/cli) - Multi-agent installer —
./scripts/install-skills.shsupports 7 agents: Claude Code, Cursor, Codex CLI, OpenCode, GitHub Copilot, Windsurf, Aider - Embedded skills —
//go:embedbundles skills into the binary;mysql-cli skill installinstalls with zero external deps;mysql-cli skill checkreports version drift - CI — skill-format-check + installer tests (38 assertions covering all 7 agents)
Install
go install github.com/AllenMuu/mysql-cli/cmd/mysql-cli@latestInstall skills for your agent
./scripts/install-skills.sh # auto-detect
./scripts/install-skills.sh --agent all # all 7 agentsSee the README for full docs.