Skip to content
cmosghPublic

About

AXI MySQL CLIs for agents: read-only mysql-axi (guard + read-only session) and loopback-only mysql-rw-axi for local dev databases

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

mysql-axi

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.

Documentation

mysql-axi (read-only)

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

Layout

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

Development

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 verifies

Both 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.

Other AXI tools

  • atl-axi: Atlassian Jira Cloud CLI for agents
  • bb-axi: Bitbucket Cloud CLI for agents
  • hetzner-axi: Hetzner Cloud CLI for agents
  • mongo-axi: Read-only MongoDB CLI for agents, plus mongo-rw-axi (write-capable MongoDB CLI for agents, loopback hosts only)
  • secrets-axi: Secrets guard CLI for agents
  • ts-axi: TypeScript symbol CLI for agents

About

AXI MySQL CLIs for agents: read-only mysql-axi (guard + read-only session) and loopback-only mysql-rw-axi for local dev databases

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages