Two AXI MySQL CLIs for agents, built from one shared core:
| Package | Can write? | Hosts | Use for |
|---|---|---|---|
mysql-axi |
No. Client-side guard plus read-only session | any | reading any database |
mysql-rw-axi |
Yes. exec, import, db |
loopback and unix sockets only | changing a local dev database |
These are two separate packages, so installing or allowing only mysql-axi means an agent has no write command available.
mysql-axi (read-only)
- Safe to auto-approve: what the same agent statements do through the plain
mysqlclient, a read-only MCP server andmysql-axi, verified in CI - How writes are blocked and Limitations: what the guard does not cover
- Recipes: slow queries, orphan rows, collation drift, checking a migration
- Live overview and Agent integration: a session hook that starts every agent session knowing the tool (
setup hooks,--project,--local), or the skill instead - Benchmarks against the
mysqlclient and an MCP server: Token usage, Accuracy, Large tables - Connections: profiles, keychain,
MYSQL_AXI_URL
mysql-rw-axi (writes, loopback only)
- What it does:
exec,import,db, and which statements need--confirm - Recipes: restore and compare a dump, dedupe before a unique index, upsert, rerunnable fixes
- Live overview and Agent integration: a session hook only where writing is wanted (
--local), or the skill instead - Connections: separate profiles and keychain entries from
mysql-axi
packages/core shared code (private, bundled into both CLIs)
packages/mysql-axi read-only CLI
packages/mysql-rw-axi write CLI: exec, import, db, loopback rule
test/ guard, unit, whole-CLI (mocked mysql2) and integration tests
pnpm install
pnpm run check # typecheck, tests, bundle, skill freshness
pnpm run test:integration # needs Docker: starts a throwaway MySQL 8 on a random loopback port
TOKENS_SUITE=accuracy TOKENS_MODEL=haiku pnpm run test:tokens # local only, spends model tokens: efficiency|accuracy|large suites
pnpm run tokens:readme # publish test/tokens/results/<suite>/<model>.json as the README tables
pnpm run safety:readme # render the safety matrix that test/integration/safety.test.ts verifiesBoth packages are released together: npm version patch && git push --follow-tags bumps the root and both packages, and the Release workflow stages both on npm for 2FA approval.
MIT licensed.
atl-axi: Atlassian Jira Cloud CLI for agentsbb-axi: Bitbucket Cloud CLI for agentshetzner-axi: Hetzner Cloud CLI for agentsmongo-axi: Read-only MongoDB CLI for agents, plusmongo-rw-axi(write-capable MongoDB CLI for agents, loopback hosts only)secrets-axi: Secrets guard CLI for agentsts-axi: TypeScript symbol CLI for agents