Docs · DBCatz

MCatzP in DBCatz

Let an AI assistant use DBCatz through MCatzP — what you share, what it can read, what it asks first, and how to take it back.

From DBCatz 1.1.0. MCatzP lets an AI assistant such as Claude Code or ZCode use the Catzoid apps on your computer. With it on in DBCatz, you can ask your assistant which tables have an email column? or add an index on orders.created_at, and it works through DBCatz. It stays on your computer: nothing is opened to the internet, and DBCatz only listens on a channel your own account can reach (a socket file on macOS and Linux, a named pipe on Windows).

This is not the same as AI in DBCatz. There DBCatz calls a model you set up. Here an assistant you already use calls DBCatz.

Turn it on

MCatzP is off until you turn it on, in Settings → MCatzP:

  1. Turn on Let AI assistants use DBCatz through MCatzP.
  2. Under Clients, press Add next to your assistant. The program and these entries are Shared with Catzoid apps: add it once, from any of them. If MCatzP is not on your computer yet, Install MCatzP comes first; when a newer MCatzP is out, the same place shows Update to … (a copy from Homebrew or npm is updated the way it came), and an Update mark shows on the MCatzP tab of Settings. Zed is among the clients, next to Claude Code, ZCode, Cursor, VS Code and the rest.
  3. Under Access, choose what to share. Nothing is shared at first.
  4. Start a new session in your assistant, so it picks up the tools.

The first time an assistant connects, DBCatz asks Let <client> use DBCatz?. The name is what the assistant says about itself: if you did not just start it, choose Don’t Allow.

What you share

In Access What it does
All connections, including new ones, except Production Every connection is shared, also the ones you add later. Without it, you tick them one by one.
A ticked connection Shared. This is the only way to share a Production connection.
Rows, query results and keys On at first. Off: the assistant only sees the structure (databases, tables, columns, indexes).
Let clients ask for changes On at first. Off: it can only read, and the tools that change things are gone.

A connection opened from a URL for this session is never shared. Whatever the assistant reads goes to its model provider, so think about personal data before you share rows.

What it can do without asking

Reading, inside what you share: connections, databases, tables, structure, rows, keys, saved queries, jobs, the Logs of a connection and the query history.

Queries through run_read_query must only read, and are checked statement by statement. On MySQL, MariaDB and PostgreSQL they also run on a session that is read-only on the server. Something that writes is refused, and named in the answer. Like the Query tab, they read only the rows they return and leave the rest on the server, so a big table does not fill DBCatz’s memory; a row count says when it is the server’s estimate rather than an exact count.

Values under a column, field or key whose name looks secret (password, api_token, secret …) come back as •••, and other secrets in text — Authorization headers, bearer tokens, JWTs, passwords in quotes, passwords in URLs — are masked as they are for AI in DBCatz. An alias or a function around such a column is masked too. This goes by the name, so it can miss a secret kept under an ordinary name. Connection passwords are never read at all.

What it asks first

Every change shows a dialog in DBCatz, built from what will really happen, not from the assistant’s words. Don’t Allow is the default. The one exception is cancelling what is already running, such as a job: that runs at once, without a dialog.

What How DBCatz asks
Insert or update a row, create or change a table, set a key, import, export, back up, show something in the window One dialog
Save a query, favorites, groups, stars, disconnect, open DevCatz or DoCatz One dialog, which can allow this kind of action until the assistant disconnects
Delete rows, drop or empty tables, drop a database, delete keys, flush, delete a saved connection You type a name, every time (a copy button next to the name puts it on the clipboard)
A query that writes, on a Production connection or when it removes data You type the connection’s name
A table change that loses data You type the column, index or table name, as in the Structure tab

A question you do not answer lapses and counts as a refusal. If the assistant gives up, the question closes.

The safety modes still hold: a Read-only connection refuses every write, whoever asks.

Export, backup and import open DBCatz’s own file dialog, so you choose the file. The assistant never gets a path.

What stays with you

An assistant cannot read or set a password, edit a connection (that could lift its Read-only mode), set up SSH, AWS or Vault, change these settings, or approve itself. It can add a plain connection, in Normal mode and without a password; you add the password on the connection.

See what it did, and take it back

Under Activity every call is listed with how it ended: names and outcomes, never what was read. Filter by Changes or Problems.

Approved under Clients lists every assistant with the day it was approved here and the other Catzoid apps it is approved in; one approved only elsewhere asks the first time it connects to DBCatz. Revoke forgets an assistant and closes every connection; it has to ask again next time. Turning the switch off closes the channel altogether.

Uninstall MCatzP

Uninstall…, next to the MCatzP version in Settings → MCatzP, asks Uninstall MCatzP? and says what it will do: MCatzP is taken out of every assistant that runs it, and the program is removed when a Catzoid app installed it. A copy from Homebrew, npm or Bun stays, and DBCatz names the command that removes it (brew uninstall mcatzp, npm uninstall -g mcatzp or bun remove -g mcatzp); an assistant it could not change is named too. Every Catzoid app shares MCatzP, so they lose it as well, and DBCatz’s own MCatzP switch turns off. You can install it again any time. See Uninstall for the rest.

An honest limit

Reading has no dialog, and the channel is open to any program running under your own account. A program pretending to be an approved assistant could read what you share, and ask for changes, which you still confirm. So share what you need, and leave Production out unless you are working on it.

Every tool is listed in the tool reference.

Last updated 2026-11-20