Skip to content

v1.0.0

Choose a tag to compare

@AllenMuu AllenMuu released this 23 Jul 06:04
· 96 commits to main since this release

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 (mirrors larksuite/cli)
  • Multi-agent installer./scripts/install-skills.sh supports 7 agents: Claude Code, Cursor, Codex CLI, OpenCode, GitHub Copilot, Windsurf, Aider
  • Embedded skills//go:embed bundles skills into the binary; mysql-cli skill install installs with zero external deps; mysql-cli skill check reports 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@latest

Install skills for your agent

./scripts/install-skills.sh              # auto-detect
./scripts/install-skills.sh --agent all  # all 7 agents

See the README for full docs.