QueryWeaver
An MCP server for Text2SQL: transforms natural language into SQL using graph schema understanding.
Wraps a database MCP server: reads pass, writes wait for a supervisor to approve them.
选择你使用的 AI 应用,然后复制设置。
通过 3/3 项检查 · 在你的电脑上运行 · ✓ 命令已检查 2026年11月14日
第一步:你用哪个 AI?
选择你用的应用,步骤会显示在下方。
可连接 Claude,但需要先准备
需要 Approval gate for databases 的密钥(在开发者网站创建) · 需要填写 1 项设置(HIBIRA_APP_ID) · 需要先在电脑上安装 Node.js(只需一次) · 仅限电脑上的 Claude 应用(Windows 或 Mac),网页和手机不可用
把这段话复制到 Claude 的对话里。AI 会先检查电脑,告诉你要改哪个文件,并且每次都等你同意。
请在这台电脑上为 Claude 安装 MCP server Approval gate for databases,按顺序:1) 用 node -v 检查是否有 Node.js。没有的话,请让我从 https://nodejs.org/en/download 安装,不要自己安装。2) 只使用这份配置(已通过 PopNx MCP 检查):{ "mcpServers": { "approval-gate": { "command": "npx", "args": [ "-y", "@hibira-io/mcp-approval-gate" ], "env": { "GATE_COMMAND": "your-value", "HIBIRA_APP_ID": "your-value", "HIBIRA_KEY": "your-value", "HIBIRA_SECRET": "your-value" } } } } 3) 告诉我要修改的文件完整路径或要运行的命令,等我同意。4) GATE_COMMAND, HIBIRA_KEY, HIBIRA_SECRET, HIBIRA_APP_ID 先保留 "your-value",请我自己把真实值粘贴到文件或应用的输入框里。不要让我在对话里输入密钥。5) 按约定执行,然后确认 Approval gate for databases 的工具真的出现了。这段话不包含你的密钥。如果需要密钥,AI 会请你自己粘贴到文件或应用的输入框里。
已经装好了吗?先检查 · 打开终端,输入这条命令后按 Enter
node -vMac:按 ⌘ + Space,输入 Terminal 后按 Enter
Windows:打开“开始”菜单,输入 Windows PowerShell,然后选“打开”
还没安装: 打开官方下载页,选择 LTS 版本和点选式安装程序:Mac 用 .pkg · Windows 用 .msi。双击后一路下一步即可,不需要 curl 命令
装好后关掉终端再打开,重新运行同一条命令,应显示版本号: node -v
安装一次,所有需要 Node.js 的工具都能用
打开开发者网站,注册账户并创建 API 密钥,下一步要用。价格和免费方案请看开发者网站。
这些是程序设置,不是密钥,无需注册。按开发者的说明填写。
HIBIRA_APP_ID Hibira app ID (hibira.io portal)说明仍为英文原文。
SettingsDeveloperEdit Config
{
"mcpServers": {
"approval-gate": {
"command": "npx",
"args": [
"-y",
"@hibira-io/mcp-approval-gate"
],
"env": {
"GATE_COMMAND": "your-value",
"HIBIRA_APP_ID": "your-value",
"HIBIRA_KEY": "your-value",
"HIBIRA_SECRET": "your-value"
}
}
}
}只把密钥粘贴到应用的输入框里,不要粘贴到聊天中或发给任何人
用 Approval gate for databases 告诉我你能帮我做什么,然后做一件给我看✓ 如果 Claude 说正在使用 Approval gate for databases,或回答中出现 Approval gate for databases 的工具名称,就表示连接成功
上面的命令不填这些也能用。想调整时再按开发者的说明添加。
GATE_LABEL The database's name on the approval pageGATE_PUSH_INTERESTS Comma-separated push interests that receive approval requestsGATE_MODE writes (default), all or none · 默认值 writes说明仍为英文原文。
菜单名称已于 2026年11月11日 对照 Anthropic 帮助页面核实 · 你的界面可能因版本略有不同
ChatGPT 暂时无法连接 Approval gate for databases
Approval gate for databases 需要安装在你的电脑上,而 ChatGPT 只能连接在网上运行的服务器
A · 使用能连接 Approval gate for databases 的应用
B · 数据库与数据集 类中能连接 ChatGPT 的其他服务器
从同类中使用较多的里挑选,仅限用地址即可连接、无需密钥的
可连接 Claude Code,但需要先准备
需要 Approval gate for databases 的密钥(在开发者网站创建) · 需要填写 1 项设置(HIBIRA_APP_ID) · 需要先在电脑上安装 Node.js(只需一次)
把这段话复制到 Claude Code 的对话里。AI 会先检查电脑,告诉你要改哪个文件,并且每次都等你同意。
请在这台电脑上为 Claude Code 安装 MCP server Approval gate for databases,按顺序:1) 用 node -v 检查是否有 Node.js。没有的话,请让我从 https://nodejs.org/en/download 安装,不要自己安装。2) 只使用这份配置(已通过 PopNx MCP 检查):claude mcp add --scope user approval-gate --env GATE_COMMAND=your-value --env HIBIRA_APP_ID=your-value --env HIBIRA_KEY=your-value --env HIBIRA_SECRET=your-value -- npx -y @hibira-io/mcp-approval-gate 3) 告诉我要修改的文件完整路径或要运行的命令,等我同意。4) GATE_COMMAND, HIBIRA_KEY, HIBIRA_SECRET, HIBIRA_APP_ID 先保留 "your-value",请我自己把真实值粘贴到文件或应用的输入框里。不要让我在对话里输入密钥。5) 按约定执行,然后确认 Approval gate for databases 的工具真的出现了。这段话不包含你的密钥。如果需要密钥,AI 会请你自己粘贴到文件或应用的输入框里。
已经装好了吗?先检查 · 打开终端,输入这条命令后按 Enter
node -vMac:按 ⌘ + Space,输入 Terminal 后按 Enter
Windows:打开“开始”菜单,输入 Windows PowerShell,然后选“打开”
还没安装: 打开官方下载页,选择 LTS 版本和点选式安装程序:Mac 用 .pkg · Windows 用 .msi。双击后一路下一步即可,不需要 curl 命令
装好后关掉终端再打开,重新运行同一条命令,应显示版本号: node -v
安装一次,所有需要 Node.js 的工具都能用
打开开发者网站,注册账户并创建 API 密钥,下一步要用。价格和免费方案请看开发者网站。
这些是程序设置,不是密钥,无需注册。按开发者的说明填写。
HIBIRA_APP_ID Hibira app ID (hibira.io portal)说明仍为英文原文。
Mac:按 Command+空格,输入 Terminal · Windows:打开 PowerShell
claude mcp add --scope user approval-gate --env GATE_COMMAND=your-value --env HIBIRA_APP_ID=your-value --env HIBIRA_KEY=your-value --env HIBIRA_SECRET=your-value -- npx -y @hibira-io/mcp-approval-gate按 Enter 前,把“your-value”改成你的密钥
只把密钥粘贴到应用的输入框里,不要粘贴到聊天中或发给任何人
应能看到 Approval gate for databases 在列表中并显示已连接
用 Approval gate for databases 告诉我你能帮我做什么,然后做一件给我看✓ 如果 Claude Code 说正在使用 Approval gate for databases,或回答中出现 Approval gate for databases 的工具名称,就表示连接成功
上面的命令不填这些也能用。想调整时再按开发者的说明添加。
GATE_LABEL The database's name on the approval pageGATE_PUSH_INTERESTS Comma-separated push interests that receive approval requestsGATE_MODE writes (default), all or none · 默认值 writes说明仍为英文原文。
菜单名称已于 2026年11月11日 对照 Anthropic 帮助页面核实 · 你的界面可能因版本略有不同
可连接 Cursor,但需要先准备
需要 Approval gate for databases 的密钥(在开发者网站创建) · 需要填写 1 项设置(HIBIRA_APP_ID) · 需要先在电脑上安装 Node.js(只需一次)
把这段话复制到 Cursor 的对话里。AI 会先检查电脑,告诉你要改哪个文件,并且每次都等你同意。
请在这台电脑上为 Cursor 安装 MCP server Approval gate for databases,按顺序:1) 用 node -v 检查是否有 Node.js。没有的话,请让我从 https://nodejs.org/en/download 安装,不要自己安装。2) 只使用这份配置(已通过 PopNx MCP 检查):{ "mcpServers": { "approval-gate": { "command": "npx", "args": [ "-y", "@hibira-io/mcp-approval-gate" ], "env": { "GATE_COMMAND": "your-value", "HIBIRA_APP_ID": "your-value", "HIBIRA_KEY": "your-value", "HIBIRA_SECRET": "your-value" } } } } 3) 告诉我要修改的文件完整路径或要运行的命令,等我同意。4) GATE_COMMAND, HIBIRA_KEY, HIBIRA_SECRET, HIBIRA_APP_ID 先保留 "your-value",请我自己把真实值粘贴到文件或应用的输入框里。不要让我在对话里输入密钥。5) 按约定执行,然后确认 Approval gate for databases 的工具真的出现了。这段话不包含你的密钥。如果需要密钥,AI 会请你自己粘贴到文件或应用的输入框里。
已经装好了吗?先检查 · 打开终端,输入这条命令后按 Enter
node -vMac:按 ⌘ + Space,输入 Terminal 后按 Enter
Windows:打开“开始”菜单,输入 Windows PowerShell,然后选“打开”
还没安装: 打开官方下载页,选择 LTS 版本和点选式安装程序:Mac 用 .pkg · Windows 用 .msi。双击后一路下一步即可,不需要 curl 命令
装好后关掉终端再打开,重新运行同一条命令,应显示版本号: node -v
安装一次,所有需要 Node.js 的工具都能用
打开开发者网站,注册账户并创建 API 密钥,下一步要用。价格和免费方案请看开发者网站。
这些是程序设置,不是密钥,无需注册。按开发者的说明填写。
HIBIRA_APP_ID Hibira app ID (hibira.io portal)说明仍为英文原文。
在 Approval gate for databases 的设置中,GATE_COMMAND, HIBIRA_KEY, HIBIRA_SECRET, HIBIRA_APP_ID 还是空的,填入你的密钥并保存
只把密钥粘贴到应用的输入框里,不要粘贴到聊天中或发给任何人
用 Approval gate for databases 告诉我你能帮我做什么,然后做一件给我看✓ 如果 Cursor 说正在使用 Approval gate for databases,或回答中出现 Approval gate for databases 的工具名称,就表示连接成功
上面的命令不填这些也能用。想调整时再按开发者的说明添加。
GATE_LABEL The database's name on the approval pageGATE_PUSH_INTERESTS Comma-separated push interests that receive approval requestsGATE_MODE writes (default), all or none · 默认值 writes说明仍为英文原文。
菜单名称已于 2026年11月11日 对照 Cursor 帮助页面核实 · 你的界面可能因版本略有不同
可连接 VS Code,但需要先准备
需要 Approval gate for databases 的密钥(在开发者网站创建) · 需要填写 1 项设置(HIBIRA_APP_ID) · 需要先在电脑上安装 Node.js(只需一次)
把这段话复制到 VS Code 的对话里。AI 会先检查电脑,告诉你要改哪个文件,并且每次都等你同意。
请在这台电脑上为 VS Code 安装 MCP server Approval gate for databases,按顺序:1) 用 node -v 检查是否有 Node.js。没有的话,请让我从 https://nodejs.org/en/download 安装,不要自己安装。2) 只使用这份配置(已通过 PopNx MCP 检查):{ "servers": { "approval-gate": { "type": "stdio", "command": "npx", "args": [ "-y", "@hibira-io/mcp-approval-gate" ], "env": { "GATE_COMMAND": "your-value", "HIBIRA_APP_ID": "your-value", "HIBIRA_KEY": "your-value", "HIBIRA_SECRET": "your-value" } } } } 3) 告诉我要修改的文件完整路径或要运行的命令,等我同意。4) GATE_COMMAND, HIBIRA_KEY, HIBIRA_SECRET, HIBIRA_APP_ID 先保留 "your-value",请我自己把真实值粘贴到文件或应用的输入框里。不要让我在对话里输入密钥。5) 按约定执行,然后确认 Approval gate for databases 的工具真的出现了。这段话不包含你的密钥。如果需要密钥,AI 会请你自己粘贴到文件或应用的输入框里。
已经装好了吗?先检查 · 打开终端,输入这条命令后按 Enter
node -vMac:按 ⌘ + Space,输入 Terminal 后按 Enter
Windows:打开“开始”菜单,输入 Windows PowerShell,然后选“打开”
还没安装: 打开官方下载页,选择 LTS 版本和点选式安装程序:Mac 用 .pkg · Windows 用 .msi。双击后一路下一步即可,不需要 curl 命令
装好后关掉终端再打开,重新运行同一条命令,应显示版本号: node -v
安装一次,所有需要 Node.js 的工具都能用
打开开发者网站,注册账户并创建 API 密钥,下一步要用。价格和免费方案请看开发者网站。
这些是程序设置,不是密钥,无需注册。按开发者的说明填写。
HIBIRA_APP_ID Hibira app ID (hibira.io portal)说明仍为英文原文。
在 Approval gate for databases 的设置中,GATE_COMMAND, HIBIRA_KEY, HIBIRA_SECRET, HIBIRA_APP_ID 还是空的,填入你的密钥并保存
只把密钥粘贴到应用的输入框里,不要粘贴到聊天中或发给任何人
用 Approval gate for databases 告诉我你能帮我做什么,然后做一件给我看✓ 如果 VS Code 说正在使用 Approval gate for databases,或回答中出现 Approval gate for databases 的工具名称,就表示连接成功
上面的命令不填这些也能用。想调整时再按开发者的说明添加。
GATE_LABEL The database's name on the approval pageGATE_PUSH_INTERESTS Comma-separated push interests that receive approval requestsGATE_MODE writes (default), all or none · 默认值 writes说明仍为英文原文。
菜单名称已于 2026年11月11日 对照 VS Code 帮助页面核实 · 你的界面可能因版本略有不同
Claude Code
claude mcp add --scope user approval-gate --env GATE_COMMAND=your-value --env HIBIRA_APP_ID=your-value --env HIBIRA_KEY=your-value --env HIBIRA_SECRET=your-value -- npx -y @hibira-io/mcp-approval-gateClaude Desktop (claude_desktop_config.json)
{
"mcpServers": {
"approval-gate": {
"command": "npx",
"args": [
"-y",
"@hibira-io/mcp-approval-gate"
],
"env": {
"GATE_COMMAND": "your-value",
"HIBIRA_APP_ID": "your-value",
"HIBIRA_KEY": "your-value",
"HIBIRA_SECRET": "your-value"
}
}
}
}Cursor (~/.cursor/mcp.json)
{
"mcpServers": {
"approval-gate": {
"command": "npx",
"args": [
"-y",
"@hibira-io/mcp-approval-gate"
],
"env": {
"GATE_COMMAND": "your-value",
"HIBIRA_APP_ID": "your-value",
"HIBIRA_KEY": "your-value",
"HIBIRA_SECRET": "your-value"
}
}
}
}VS Code (mcp.json)
{
"servers": {
"approval-gate": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@hibira-io/mcp-approval-gate"
],
"env": {
"GATE_COMMAND": "your-value",
"HIBIRA_APP_ID": "your-value",
"HIBIRA_KEY": "your-value",
"HIBIRA_SECRET": "your-value"
}
}
}
}GATE_COMMAND 机密 必填 envHIBIRA_APP_ID 必填 envHIBIRA_KEY 机密 必填 envHIBIRA_SECRET 机密 必填 envGATE_LABEL envGATE_PUSH_INTERESTS envGATE_MODE env说明仍为英文原文。
这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。
依据这个服务器的连接方式和各应用自己的文档,检查于 2026年11月10日。
在你的电脑上运行,适用于
ClaudeGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatRaycast
它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。
我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月16日
注册名称已通过域名 hibira.io 验证(注册中心会核实域名所有权)
代码最后更新于3天前
使用 MIT
它在你的电脑上运行,没有互联网端点
在你的电脑上运行,改用本地设置
它在你的电脑上运行;我们只能读取互联网端点的工具列表
OSV.dev 中没有 @hibira-io/mcp-approval-gate@0.4.0 的记录
只检查这个版本的包本身,不包括所有依赖 · 检查于 2026年11月16日
提问、分享技巧或报告无法使用。按“有帮助”数量排序。
还没有评价
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
它在 3 项适用的基础检查中通过了 3 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。
你需要填写:GATE_COMMAND, HIBIRA_KEY, HIBIRA_SECRET
它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。
GitHub 仓库最后更新于3天前,最新版本(0.4.0)于3天前进入注册中心。
支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Node.js。
同一分类中有:QueryWeaver, Supabase, Neon, DBCode, Keboola MCP
同一分类、其他作者、命令已通过检查。官方的排在前面,再按星标排序。
如何看卡片:↓ 每周下载量i★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i
An MCP server for Text2SQL: transforms natural language into SQL using graph schema understanding.
Official Neon MCP server for managing Neon projects and Lakebase Postgres databases.
Connect your AI assistants to Keboola and expose your data, transformations, SQL queries, ...
按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。
@hibira-io/mcp-approval-gate sits in front of the MCP server that connects your assistant to a database. Reads go straight through. Anything that changes data or schema waits until another person approves it on a hosted approval page, sent to their phone as a push notification. Then it runs once, exactly as approved.
A real session: Claude Code asks to mark order 1042 as refunded through DBHub. The UPDATE waits and the assistant never gets the approval link. The request shows up in the store manager's Hibira Approvals inbox on her phone (it is also sent to her as a push notification); she opens it, checks the statement and approves, and the assistant finishes the change. (MP4 · the same request rejected)
It works with any MCP server, and is tested with:
postgres-mcp)mcp.supabase.com)and with Claude (Desktop, Code and claude.ai), Cursor, ChatGPT and any other MCP client.
assistant ──► approval gate ──► database MCP server ──► database
│ writes only ▼ Hibira approval page + push ──► supervisor taps Approve / Reject
Most database MCP servers offer two choices: read-only, or let the assistant write anything. Client-side "allow this tool?" prompts are answered by the same person who asked. The gate adds the step a team usually wants for production data: a supervisor approval by someone else, with the exact statement in front of them.
UPDATE, DROP TABLE, ...), warnings such as "DELETE without WHERE changes every row", and the full statement.-- is the database server's usual command. There are no keys to copy.To connect ahead of time from a terminal instead, run npx -y @hibira-io/mcp-approval-gate login. status and logout work the same way. The connection is a token, kept in ~/.config/hibira/approval-gate.json, that can only ask for and read that workspace's approvals. Admins see every connected gate in the workspace settings and can revoke one at any time.
claude mcp add shop-db -e GATE_LABEL=shop-production \
-- npx -y @hibira-io/mcp-approval-gate \ -- npx -y @bytebase/dbhub --transport stdio --dsn "postgres://user:pass@host:5432/shop"
claude_desktop_config.json, .cursor/mcp.json and the others take the same shape:
{
"mcpServers": { "shop-db": { "command": "npx", "args": [ "-y", "@hibira-io/mcp-approval-gate", "--label", "shop-production", "--", "npx", "-y", "@bytebase/dbhub", "--transport", "stdio", "--dsn", "postgres://user:pass@host:5432/shop" ] } } }
postgres-mcp:
"args": ["-y", "@hibira-io/mcp-approval-gate", "--label", "analytics", "--",
"uvx", "postgres-mcp", "--access-mode=unrestricted"], "env": { "DATABASE_URI": "postgresql://..." }
--access-mode=unrestricted is fine here: the gate is what holds writes back.
Supabase (local server):
"args": ["-y", "@hibira-io/mcp-approval-gate", "--label", "supabase-prod", "--",
"npx", "-y", "@supabase/mcp-server-supabase@latest", "--project-ref= "], "env": { "SUPABASE_ACCESS_TOKEN": "sbp_..." }
execute_sql with a SELECT runs right away; writes, apply_migration, deploy_edge_function, branch merges and project pauses wait for approval.
Supabase (hosted server):
"args": ["-y", "@hibira-io/mcp-approval-gate", "--label", "supabase-prod",
"--upstream-url", "https://mcp.supabase.com/mcp?project_ref= ", "--header", "Authorization: Bearer ${SUPABASE_ACCESS_TOKEN}"],
Web clients need an HTTPS URL, so run the gate as a small server next to your database and put HTTPS in front of it (your reverse proxy, a tunnel, or a platform such as Fly.io or Railway):
npx -y @hibira-io/mcp-approval-gate login # once, on the server
export GATE_TOKEN="$(openssl rand -hex 24)" # keep it secret npx -y @hibira-io/mcp-approval-gate --http --host 0.0.0.0 --port 8787 \ --label shop-production \ -- npx -y @bytebase/dbhub --transport stdio --dsn "$DATABASE_URL"
The endpoint is https://your-host/mcp/ ; clients that can send headers may use https://your-host/mcp with Authorization: Bearer .
The gate refuses to listen on a non-local address without GATE_TOKEN. A Dockerfile is included. In a container, where there is no terminal to sign in from, pass the workspace token as HIBIRA_APPROVALS_TOKEN (copy it from ~/.config/hibira/approval-gate.json after login on any machine), or watch the gate's log for the connect link on first start.
The gate works in front of any MCP server. For a few common ones, --preset knows which tools only read and which change something, and gives the approval a plain title such as "Stripe: POST /v1/refunds" or "GitHub: merge pull request acme/shop#42". --allow and --gate still win over a preset.
| Preset | Waits for approval | Runs right away |
|---|---|---|
stripe | stripe_api_write, send_money, transfer_money, convert_currency, ... | stripe_api_read, search, docs, analytics |
github | merges, pushes, file changes, new repos, workflow runs, comments | get_*, list_*, search_*, *_read |
gmail | sending, replying, forwarding, deleting, filters | reading, searching, drafts |
shopify | graphql_mutation, creating, updating, discounts, inventory | queries, analytics, docs |
Stripe (hosted server, with an agent API key):
claude mcp add stripe -- npx -y @hibira-io/mcp-approval-gate --preset stripe \
--upstream-url https://mcp.stripe.com --header 'Authorization: Bearer ${STRIPE_AGENT_KEY}'
GitHub (official server in Docker):
claude mcp add github -e GITHUB_PERSONAL_ACCESS_TOKEN=... \
-- npx -y @hibira-io/mcp-approval-gate --preset github \ -- docker run -i --rm -e GITHUB_PERSONAL_ACCESS_TOKEN ghcr.io/github/github-mcp-server
For Gmail and Shopify, put --preset gmail or --preset shopify in front of the server you already use. Tools a preset does not know follow the usual rules below.
A write call waits up to 50 seconds (--wait) for the decision, sending progress updates so the client does not give up early:
approval_id. The gate adds one tool, check_approval: when the person says it is decided, the assistant calls it with that approval_id, and the call runs if it was approved. Asking for the same call again reuses the same request.The assistant does not get the approval link when the gate is connected to an Approvals workspace (its members are notified and decide signed in), or when the request reaches the supervisor another way (--push-interests, --push-users or --channel), so the person chatting with it cannot approve their own change from the chat. Without any of those, the link is the only way to reach a supervisor, so the assistant shows it for you to forward. --show-link always or never overrides this.
With the default --mode writes:
--gate always wait; tools in --allow never do (a trailing * matches a prefix).sql, query, statement, queries, ...) wait if any statement changes something: INSERT, UPDATE, DELETE, MERGE, CREATE, ALTER, DROP, TRUNCATE, GRANT, COPY, CALL, DO, SET, VACUUM, data-changing WITH, SELECT ... INTO, EXPLAIN ANALYZE of a write, SELECT of functions such as setval or pg_terminate_backend, and anything it cannot parse. Comments, strings and dollar-quoted bodies are skipped, so SELECT 'DROP TABLE x' is a read.readOnlyHint or named like a read (list_, get_, search_, describe_, explain_, analyze_, ...). Everything else waits.--mode all sends every call for approval, reads included. --mode none turns the gate off (useful while testing).
The gate is a second pair of eyes, not a permission system. Give the database user only the rights it needs too.
The same package is a hook for Claude Code, Codex, Cursor and Hermes Agent. Shell commands that are hard to take back wait until a second person in your Hibira Approvals workspace approves them; everything else runs as usual.
| Waits for approval | Examples |
|---|---|
| Deleting files | rm -rf src, find . -delete, git clean -fdx (not rm -rf node_modules, dist, build, ...) |
| Rewriting git history | git push --force, git reset --hard, git branch -D, deleting remote branches |
| Deploys and releases | `vercel -