Dolt
$ dolt Official Med Riskdolt combines a MySQL-compatible SQL engine with Git-style branches, commits, diffs, and remotes (dolt sql, dolt diff, dolt branch, dolt commit, dolt push). Native -r json / -r csv query formatting and reversible commit history make it uniquely safe for agent data workflows.
brew install dolt Prefer dolt CLI over generic SQL MCP servers: agents get both dolt sql -r json and Git-like dolt diff/dolt branch/dolt reset primitives.
Agent-Readiness Checklist
Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.
FCRS-1.0 6-Dimension Breakdown
First-class -r json / -r csv output on dolt sql -q plus Git-familiar non-interactive subcommands (status, diff, log, branch).
dolt sql -r json -q ...outputs clean JSON rows- Non-interactive subcommands mirror Git semantics
Built-in branching, dolt diff, and commit rollback mitigate SQL mutation mistakes, though dolt push --force and reset --hard remain destructive.
- Every mutation can be isolated on a branch and diffed before merge
Single static Go binary available via Homebrew and GitHub releases on macOS, Linux, and Windows.
- Zero-dependency Go binary
Combines an embedded MySQL SQL engine with Git-style data versioning, eliminating separate dump/diff scripts.
- Unified SQL query + cell-level version control
Official DoltHub tool (dolthub/dolt) under Apache-2.0 with active release cadence.
- First-party DoltHub repository
Thorough CLI reference at docs.dolthub.com and predictable --help across subcommands.
- Official CLI reference at docs.dolthub.com
Security, Auth & Guardrails
Local repos need no auth; DoltHub remote credentials are stored in ~/.dolt/creds/ via dolt login or DOLT_REMOTE_PASSWORD.
Apache-2.0 open-source database CLI; free for local and self-hosted remotes (DoltHub cloud plans vary).
# Dolt Agent Rules - Always pass `-r json` or `-r csv` to `dolt sql -q` so tabular ASCII padding doesn't waste tokens. - Create a branch (`dolt checkout -b ...`) before running `UPDATE`/`DELETE` SQL mutations. - Never run `dolt push --force` or `dolt reset --hard` without explicit user approval.
Agent-Ready Command Recipes
Safe Read-Only Queries
dolt sql -r json -q "SELECT * FROM users LIMIT 20;"
Executes a read-only SQL query against the local Dolt repo and formats rows as JSON.
dolt diff
Shows cell-level additions, modifications, and deletions compared to HEAD.
Controlled Writes & Previews
dolt checkout -b agent-update && dolt add . && dolt commit -m "Apply verified data update"
Isolates local database edits onto a dedicated branch with a reversible commit.
Strengths for Agents
- +
dolt sql -r json -qreturns compact JSON query results directly. - + Git-like branches and
dolt diffprovide a strong safety net for agent data edits. - + Single static binary with no external daemon required for local queries.
Caveats & Pitfalls
- !
dolt sqlwithout-qopens an interactive SQL shell that blocks headless callers. - !
dolt loginuses browser OAuth unless remote auth env vars or local remotes are configured.