Install
Add to ~/Library/Application Support/Claude/claude_desktop_config.json
Windows / Linux path
%APPDATA%\Claude\claude_desktop_config.json~/.config/Claude/claude_desktop_config.json{
"mcpServers": {
"io-hibira-mcp-approval-gate": {
"command": "npx",
"args": [
"-y",
"@hibira-io/mcp-approval-gate"
],
"env": {
"GATE_COMMAND": "<YOUR_VALUE>",
"HIBIRA_APP_ID": "<VALUE>",
"HIBIRA_KEY": "<VALUE>",
"HIBIRA_SECRET": "<YOUR_VALUE>",
"GATE_LABEL": "database",
"GATE_PUSH_INTERESTS": "<VALUE>",
"GATE_MODE": "writes",
"PORT": "8787",
"GATE_HOST": "127.0.0.1",
"GATE_TOKEN": "<VALUE>",
"GATE_TOOLS": "<VALUE>",
"GATE_CHANNEL": "<VALUE>",
"GATE_OPTIONS": "Approve,Reject",
"HIBIRA_API_URL": "https://ws.hibira.io",
"GATE_PUSH_USERS": "<VALUE>",
"GATE_ALLOW_TOOLS": "<VALUE>",
"GATE_UPSTREAM_URL": "<VALUE>",
"GATE_WAIT_SECONDS": "50",
"GATE_EXPIRES_MINUTES": "60",
"GATE_UPSTREAM_HEADERS": "<VALUE>"
}
}
}
}
Restart Claude Desktop to activate the new server.
Add to .cursor/mcp.json (project) or ~/.cursor/mcp.json (global)
Windows / Linux path
.cursor\mcp.json (project) or %USERPROFILE%\.cursor\mcp.json (global).cursor/mcp.json (project) or ~/.cursor/mcp.json (global){
"mcpServers": {
"io-hibira-mcp-approval-gate": {
"command": "npx",
"args": [
"-y",
"@hibira-io/mcp-approval-gate"
],
"env": {
"GATE_COMMAND": "<YOUR_VALUE>",
"HIBIRA_APP_ID": "<VALUE>",
"HIBIRA_KEY": "<VALUE>",
"HIBIRA_SECRET": "<YOUR_VALUE>",
"GATE_LABEL": "database",
"GATE_PUSH_INTERESTS": "<VALUE>",
"GATE_MODE": "writes",
"PORT": "8787",
"GATE_HOST": "127.0.0.1",
"GATE_TOKEN": "<VALUE>",
"GATE_TOOLS": "<VALUE>",
"GATE_CHANNEL": "<VALUE>",
"GATE_OPTIONS": "Approve,Reject",
"HIBIRA_API_URL": "https://ws.hibira.io",
"GATE_PUSH_USERS": "<VALUE>",
"GATE_ALLOW_TOOLS": "<VALUE>",
"GATE_UPSTREAM_URL": "<VALUE>",
"GATE_WAIT_SECONDS": "50",
"GATE_EXPIRES_MINUTES": "60",
"GATE_UPSTREAM_HEADERS": "<VALUE>"
}
}
}
}
Cursor usually picks up config changes automatically; if the server does not appear, reload the window.
Add to .mcp.json (project) or ~/.claude.json (global)
Windows / Linux path
.mcp.json (project) or %USERPROFILE%\.claude.json (global).mcp.json (project) or ~/.claude.json (global){
"mcpServers": {
"io-hibira-mcp-approval-gate": {
"command": "npx",
"args": [
"-y",
"@hibira-io/mcp-approval-gate"
],
"env": {
"GATE_COMMAND": "<YOUR_VALUE>",
"HIBIRA_APP_ID": "<VALUE>",
"HIBIRA_KEY": "<VALUE>",
"HIBIRA_SECRET": "<YOUR_VALUE>",
"GATE_LABEL": "database",
"GATE_PUSH_INTERESTS": "<VALUE>",
"GATE_MODE": "writes",
"PORT": "8787",
"GATE_HOST": "127.0.0.1",
"GATE_TOKEN": "<VALUE>",
"GATE_TOOLS": "<VALUE>",
"GATE_CHANNEL": "<VALUE>",
"GATE_OPTIONS": "Approve,Reject",
"HIBIRA_API_URL": "https://ws.hibira.io",
"GATE_PUSH_USERS": "<VALUE>",
"GATE_ALLOW_TOOLS": "<VALUE>",
"GATE_UPSTREAM_URL": "<VALUE>",
"GATE_WAIT_SECONDS": "50",
"GATE_EXPIRES_MINUTES": "60",
"GATE_UPSTREAM_HEADERS": "<VALUE>"
}
}
}
}
The server will be available in the next Claude Code session.
Add to .vscode/mcp.json
Windows / Linux path
.vscode\mcp.json.vscode/mcp.json{
"servers": {
"io-hibira-mcp-approval-gate": {
"command": "npx",
"args": [
"-y",
"@hibira-io/mcp-approval-gate"
],
"env": {
"GATE_COMMAND": "<YOUR_VALUE>",
"HIBIRA_APP_ID": "<VALUE>",
"HIBIRA_KEY": "<VALUE>",
"HIBIRA_SECRET": "<YOUR_VALUE>",
"GATE_LABEL": "database",
"GATE_PUSH_INTERESTS": "<VALUE>",
"GATE_MODE": "writes",
"PORT": "8787",
"GATE_HOST": "127.0.0.1",
"GATE_TOKEN": "<VALUE>",
"GATE_TOOLS": "<VALUE>",
"GATE_CHANNEL": "<VALUE>",
"GATE_OPTIONS": "Approve,Reject",
"HIBIRA_API_URL": "https://ws.hibira.io",
"GATE_PUSH_USERS": "<VALUE>",
"GATE_ALLOW_TOOLS": "<VALUE>",
"GATE_UPSTREAM_URL": "<VALUE>",
"GATE_WAIT_SECONDS": "50",
"GATE_EXPIRES_MINUTES": "60",
"GATE_UPSTREAM_HEADERS": "<VALUE>"
}
}
}
}
Reload the VS Code window to activate.
Add to ~/.codeium/windsurf/mcp_config.json
Windows / Linux path
%USERPROFILE%\.codeium\windsurf\mcp_config.json~/.codeium/windsurf/mcp_config.json{
"mcpServers": {
"io-hibira-mcp-approval-gate": {
"command": "npx",
"args": [
"-y",
"@hibira-io/mcp-approval-gate"
],
"env": {
"GATE_COMMAND": "<YOUR_VALUE>",
"HIBIRA_APP_ID": "<VALUE>",
"HIBIRA_KEY": "<VALUE>",
"HIBIRA_SECRET": "<YOUR_VALUE>",
"GATE_LABEL": "database",
"GATE_PUSH_INTERESTS": "<VALUE>",
"GATE_MODE": "writes",
"PORT": "8787",
"GATE_HOST": "127.0.0.1",
"GATE_TOKEN": "<VALUE>",
"GATE_TOOLS": "<VALUE>",
"GATE_CHANNEL": "<VALUE>",
"GATE_OPTIONS": "Approve,Reject",
"HIBIRA_API_URL": "https://ws.hibira.io",
"GATE_PUSH_USERS": "<VALUE>",
"GATE_ALLOW_TOOLS": "<VALUE>",
"GATE_UPSTREAM_URL": "<VALUE>",
"GATE_WAIT_SECONDS": "50",
"GATE_EXPIRES_MINUTES": "60",
"GATE_UPSTREAM_HEADERS": "<VALUE>"
}
}
}
}
Restart Windsurf (or refresh its MCP servers panel) to activate the new server.
Windsurf Next uses ~/.codeium/windsurf-next/mcp_config.json. Devin Desktop (the Windsurf rebrand) uses ~/.config/devin/mcp_config.json and imports the Windsurf file.
Add to ~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json
Windows / Linux path
%APPDATA%\Code\User\globalStorage\saoudrizwan.claude-dev\settings\cline_mcp_settings.json~/.config/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json{
"mcpServers": {
"io-hibira-mcp-approval-gate": {
"command": "npx",
"args": [
"-y",
"@hibira-io/mcp-approval-gate"
],
"env": {
"GATE_COMMAND": "<YOUR_VALUE>",
"HIBIRA_APP_ID": "<VALUE>",
"HIBIRA_KEY": "<VALUE>",
"HIBIRA_SECRET": "<YOUR_VALUE>",
"GATE_LABEL": "database",
"GATE_PUSH_INTERESTS": "<VALUE>",
"GATE_MODE": "writes",
"PORT": "8787",
"GATE_HOST": "127.0.0.1",
"GATE_TOKEN": "<VALUE>",
"GATE_TOOLS": "<VALUE>",
"GATE_CHANNEL": "<VALUE>",
"GATE_OPTIONS": "Approve,Reject",
"HIBIRA_API_URL": "https://ws.hibira.io",
"GATE_PUSH_USERS": "<VALUE>",
"GATE_ALLOW_TOOLS": "<VALUE>",
"GATE_UPSTREAM_URL": "<VALUE>",
"GATE_WAIT_SECONDS": "50",
"GATE_EXPIRES_MINUTES": "60",
"GATE_UPSTREAM_HEADERS": "<VALUE>"
}
}
}
}
Cline reloads cline_mcp_settings.json automatically; if the server does not appear, reload the VS Code window.
Open it from Cline's MCP Servers panel → Configure. Roo Code uses a different file and format.
Configuration
Environment variables this server reads. Secrets stay on your machine.
| Name | Required | Description |
|---|---|---|
| GATE_COMMAND secret | Yes | The database MCP server command to start. |
| HIBIRA_APP_ID | Yes | Your Hibira app ID. |
| HIBIRA_KEY | Yes | Your Hibira app key. |
| HIBIRA_SECRET secret | Yes | Your Hibira app secret. |
| GATE_LABEL | No | The database name shown on the approval page. Default: database |
| GATE_PUSH_INTERESTS | No | Push the approval request to these interests. |
| GATE_MODE | No | Approval mode: writes, all, or none. Default: writes |
| PORT | No | Port used when serving Streamable HTTP. Default: 8787 |
| GATE_HOST | No | Host used when serving Streamable HTTP. Default: 127.0.0.1 |
| GATE_TOKEN | No | Token required for HTTP mode on a non-local address. |
| GATE_TOOLS | No | Tools that always wait for approval. |
| GATE_CHANNEL | No | Also announce approval requests on this channel. |
| GATE_OPTIONS | No | Answer buttons; the first one approves. Default: Approve,Reject |
| HIBIRA_API_URL | No | Hibira API URL. Default: https://ws.hibira.io |
| GATE_PUSH_USERS | No | Push the approval request to these user IDs. |
| GATE_ALLOW_TOOLS | No | Tools that never wait for approval. A trailing * matches a prefix. |
| GATE_UPSTREAM_URL | No | Remote upstream MCP server URL using Streamable HTTP. |
| GATE_WAIT_SECONDS | No | How long a call waits before answering that it is still waiting. Default: 50 |
| GATE_EXPIRES_MINUTES | No | How long an approval request stays open, up to 7 days. Default: 60 |
| GATE_UPSTREAM_HEADERS | No | Headers for the remote upstream server; ${VAR} reads from the environment. |