Skip to content

BerryDB 1.1.0

Latest

Choose a tag to compare

@github-actions github-actions released this 12 Nov 07:07
· 14 commits to main since this release
9480612

Coding agents (MCP) — Schema cache & opt-in live reads

BerryDB.app now includes berrydb-mcp (/Applications/BerryDB.app/Contents/Helpers/berrydb-mcp), a local helper that Claude Code, Codex and Antigravity start as a stdio MCP server.

  • 7 schema cache tools (default): berrydb_status, berrydb_list_connections, berrydb_get_schema, berrydb_search_schema, berrydb_graph_query, berrydb_get_graph_stats, and berrydb_get_schema_changes. In cache-only mode, the helper opens BerryDB's local store read-only, never connects to a database, and never reads connection passwords.
  • 2 opt-in live read tools (off by default, per connection in Settings → AI Agents):
    • berrydb_execute_read_query (PostgreSQL, MySQL/MariaDB, SQLite): runs one SQL statement in a read-only transaction (BEGIN TRANSACTION READ ONLY / SET TRANSACTION READ ONLY / PRAGMA query_only = ON) with a SQL read policy, max 4 concurrent reads per helper process, row/size/time limits (stricter on production-labeled connections: 50 rows / 256 KiB / 5 s vs. 100 rows / 1 MiB / 30 s), and best-effort column redaction by name. A read-only database user (and read replica for production) is recommended: on production-labeled connections, a write-capable database user is refused and live reads expire (1h, 8h, 24h default, or 7d, reported as live_read_until). Note: on MySQL/MariaDB, a user with the FILE privilege can still write files inside a read-only transaction; only the read policy and secure_file_priv stop that.
    • berrydb_dynamodb_query (DynamoDB): executes one Query per call on a partition key—never a Scan—with the same item, size, and time limits. Direct IAM auth only (not supported over SSH tunnels); use an access key limited to dynamodb:ListTables ("Resource": "*"), dynamodb:DescribeTable, and dynamodb:Query.
  • Production protection & audit log: BerryDB does not cache the schema of a connection while it is marked as production (a schema cached before you set the label stays). Tool calls made for a project appear under Recent Activity in Settings (newest 100) without query text or rows, using keyed HMAC-SHA256 digests.
  • What leaves your Mac: whatever a tool returns—schema or rows—goes to the agent, and from there to that agent's model provider. Only add connections whose schema and data you are willing to share.

Schemas are cached for PostgreSQL, MySQL/MariaDB, SQLite, SQL Server and DynamoDB connections. MongoDB, Redis/Valkey, Elasticsearch and Qdrant are not cached, so agents see no schema for them.

Setup: run BerryDB from the Applications folder, open each connection once so its schema is cached, create a project in Settings → AI Agents, and run the command shown in Agent Setup (or pin a project by name in .mcp.json / .codex/config.toml). The first time an agent uses BerryDB (and on the first live read per connection), macOS may ask whether berrydb-mcp may use a key in your login keychain; choose Always Allow.

Guide: https://db.berryhub.app/docs.html#coding-agents

Tested with Claude Code 2.1.294, Codex CLI 0.157.1 and Antigravity 1.3.1. Other MCP hosts may work but are not tested.

AI SQL Copilot improvements

  • Read-only connection isolation for auto-runs: On PostgreSQL, MySQL/MariaDB and SQLite, safe read-only SELECT auto-runs now execute over a separate read-only connection, so the database itself refuses writes. When the read-only connection cannot take a query (such as inside an open transaction), the approval card asks first and explains why.
  • On-device Apple Intelligence isolation: On macOS 26 with Apple Intelligence, on-device turns send nothing to BerryDB's backend service (including conversation embedding search). Switching back to cloud mode in the same thread sends earlier messages as context.
  • Provider transparency: The AI panel displays which provider serves each model and surfaces MCP tools rejected by the AI service.

DynamoDB without PartiQL permissions

If your IAM policy denies dynamodb:PartiQLSelect, the table tab now browses with Scan. If PartiQL writes are denied, grid edits go through PutItem, UpdateItem and DeleteItem with condition expressions. BerryDB remembers the fallback per table, so it does not retry the denied call on every page. Also fixes preserving AWS credentials and region when connecting through an SSH tunnel.

UI, driver & installation updates

  • Row Inspector: Added a right-side panel to inspect selected rows in detail.
  • Redis / Valkey & PostgreSQL: Fixed key-browser layout, routed connection tests through the key-value driver with a 10 s unreachable-server timeout, and ensured pg_cancel_backend only cancels queries running on the active connection's backend.
  • Store diagnostics: When BerryDB cannot open its local store, the sidebar explains which upgrade step failed, with the underlying error in a Details popover, instead of showing raw SQL.
  • Homebrew tap: Install via brew install --cask berry-apps/tap/berrydb.

Docs

  • Updated README and db.berryhub.app with verified claims, non-production demo screenshots (Northstar Commerce — Staging), and the complete 9-tool MCP documentation.

Known issue: connecting to Azure Cosmos DB for MongoDB (#34) is still open.