
Rowbit
io.github.Ermag由 GitHub 帳號 Ermag 發布v0.2.2更新於 Nov 7, 2026
Preview, approve and undo AI agents' writes to MariaDB and MySQL
概覽
Rowbit 介於 AI 代理與 MariaDB/MySQL 之間,預覽每次寫入、將高風險寫入交由人工核准,並可復原單次變更。
- 可以做什麼
- 透過 MCP 讀取並向 MariaDB/MySQL 資料表提出寫入,代理不需持有資料庫憑證
- 在暫存副本上重播寫入,精確預覽將被修改的資料列及其修改前後內容
- 依 YAML 規則放行、暫留或拒絕寫入,暫留的變更只能由人工核准
- 復原單次變更,還原該變更涉及的資料列
- 以作用域限制每個代理可讀寫的資料表與不可見欄位,並可用影子模式先試規則
- 在本地網頁介面審閱變更,支援登入、通知與雜湊鏈稽核日誌
- 適用情境
- 適合需要讓編碼代理修正 MariaDB 或 MySQL 中的資料、又希望每次高風險寫入都先預覽並由人工核准的情境,並可依單次變更復原。它針對一次性資料修補,而非結構變更;README 認為結構變更應交給遷移工具。
- 執行需求
- 需在 macOS 或 Linux 本機安裝(Windows 透過 WSL),以安裝腳本安裝並用 setup 指令設定。需要 MariaDB 或 MySQL 資料庫 URL、具備 TRIGGER 與 PROCESS 權限的資料庫使用者,以及每個代理各自的權杖,透過 Authorization Bearer 標頭傳送。試用時可選擇以 Docker 執行的範例資料庫。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Rowbit,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
Rowbit
A safety net for AI agents that write to your database. Preview every write, approve the risky ones, undo any single change. MariaDB and MySQL, over MCP.
[Release] [CI] [License: AGPL-3.0]
[Rowbit: a safety net for AI agents that write to your database. Preview, approve, undo.]
Get started
macOS and Linux (Windows through WSL). If ~/.local/bin isn't on your PATH, the installer says so: run ~/.local/bin/rowbit setup instead. Setup finds your database's URL, checks Rowbit's privileges and prints the GRANT statements to fix them, writes rules that hold every write for review, connects the agent clients you pick, and prints the review page's password. See the quickstart.
No database to try it on? Choose the sample when setup asks: it runs a shop database in Docker with Rowbit in front of it (the tour). Then ask the agent:
The pending orders are stuck. Cancel them.
Works with Claude Code, Cursor, VS Code, Claude Desktop, Codex, Gemini CLI, Windsurf and any MCP client.
Docs · Quickstart · Interactive demo · Tell us what you think
What it does
You ask a coding agent to fix the orders stuck in pending, and it writes UPDATE shop.orders SET status = 'cancelled' WHERE status = 'pending'. That also matches every order placed in the last hour. Rowbit catches it before it touches a row, shows a person exactly which 1,284 rows would change, and waits. If something bad does get through, you undo that one change without restoring a backup.
Status: early and open source; see the changelog for each release. What we build next depends on what you tell us in the feedback discussion.
How it works
Rowbit sits between your agents and your database. Agents talk to Rowbit over MCP, never to the database directly: they read and propose writes through it, without the database's credentials.
- Exact preview. Rowbit reads the rows a write would change and replays it on a private temporary copy, so you see each row before and after, exactly as the table would store it. Your tables are only read.
- Rules, then people. A small YAML file lets safe writes through, holds risky ones for a person, and refuses the rest. Only people approve, and approval applies exactly what was previewed, or nothing. See rules.
- Undo one change. Rowbit keeps every row a change touched, so you can take back one bad write and keep everything else.
- Scopes and shadow mode. Per agent, which tables it may read or write and which columns it may never see, enforced by the database with a user of the agent's own. Shadow mode shows what the rules would hold before you enforce them.
- Review where you are. A web UI in the binary, sign-in through your identity provider, Slack or webhook notifications, and an audit log in a hash chain. See how a change moves.
Here the agent can change the status of up to 20 orders on its own. An update that writes any other column, or more rows, waits for a person, and deletes are refused.
See examples/rowbit.yml and the rowbit.yml spec for the full schema.
Connect your agent
rowbit setup connects the clients you pick. rowbit connect <client> sets up one more, with a token of the agent's own. See Connect your agent.
Claude Code
Adds Rowbit with claude mcp add, for this directory (--scope user for everywhere). Add the skill that teaches the agent to use Rowbit well:
Cursor
Adds Rowbit to ~/.cursor/mcp.json. Restart Cursor.
VS Code
Or, with rowbit demo or rowbit serve running, add it to VS Code and paste the token from rowbit connect vscode --print --new-token when VS Code asks (an agent has one token, so this signs out a client the demo connected).
Claude Desktop, Codex, Gemini CLI, Windsurf
Any other MCP client
prints the address (http://127.0.0.1:8080/mcp) and a token to send as Authorization: Bearer <token>.
Why not just migrations?
Having an agent write a migration file that goes through code review and CI is the right answer for a coding agent changing your schema, and Rowbit doesn't compete there: it holds every schema change for a person and leaves the real workflow to your migration tool. It works badly for fixing data:
- A reviewed diff shows SQL, not rows.
UPDATE orders SET status = 'cancelled' WHERE status = 'pending'looks fine in review. What it touches depends on the data when it runs. Rowbit shows the exact rows when the decision is made, and refuses to apply if they changed since. - A one-off fix can't wait for a pull request. Repairing a few broken rows during an incident needs an answer in minutes, and nobody writes and reviews a migration for every one.
- Not every write needs a person. Rules let small, safe writes straight through and hold only the risky ones, so reviewers aren't trained to rubber-stamp.
- Undo is per change. Down-migrations for data are usually missing or lossy. Rowbit keeps the before image of every row a change touched.
The well-known incidents of coding agents wiping production databases are a credentials problem as much as anything: take the credentials away and have the agent write migrations. Rowbit is for the agents that need to write. And if an agent does the same thing over and over, like issuing refunds, give it a tool that does just that instead of SQL.
Good to know
- Only Rowbit holds the database credentials. If an agent also has its own connection string, it can write around Rowbit. Give agents Rowbit's endpoint and nothing else (over HTTP, a token of their own), and Rowbit a database user of its own.
- An agent without
scopesreads and writes with Rowbit's privileges. Its rules still decide every write, but nothing stops it reading whatever Rowbit's user can. Give production agents scopes. - Undo restores rows, not the world. It puts the data back, but it can't take back an email that was sent or a refund that was paid because of it.
- Preview never writes to your tables. It reads the affected rows without taking locks and replays the write on a temporary copy that only Rowbit's connection can see. Tables with triggers or cascading foreign keys are refused, because their side effects wouldn't show in the preview or be undone. So are tables Rowbit's database user can't fully inspect: it needs the
TRIGGERandPROCESSprivileges. See database privileges for the exact grants. - Where data lives. Change state, previews (including before and after copies of affected rows) and the audit log are stored in a local SQLite file next to Rowbit. Protect it like a replica of the database (how).
- The CLI trusts whoever runs it. Anyone who can read
rowbit.dband has the database URL can runrowbit approve, under any--asname. Keep both from agents, and run Rowbit as a user they can't act as; see Before you use it for real. - Fail closed. Anything Rowbit can't evaluate, it refuses. See the change lifecycle and SECURITY.md.
Contributing
Ideas and opinions are welcome in Discussions. For code, see CONTRIBUTING.md. Commits need a DCO sign-off (git commit -s). Report security issues as described in SECURITY.md.
License
The server is AGPL-3.0-only. The rowbit.yml policy schema (crates/rowbit-policy) and future client SDKs are Apache-2.0.
來源:README.md,提交 fccc449
工具
0版本歷史
1- v0.2.2最新Nov 7, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分