zn-gate in other editors
In VS Code, Windsurf, Cline, Zed, JetBrains and Continue, zn-gate runs as an MCP server that the agent calls when it decides to.
In VS Code, Windsurf, Cline, Zed, JetBrains and Continue, zn-gate runs as an MCP server only: the agent calls it when it decides to. It is not automatic protection.
Each editor writes its MCP configuration differently. Use the section for your editor, and add only the zn-gate entry if the file already has other servers.
VS Code
Command Palette (Ctrl+Shift+P or Cmd+Shift+P) → MCP: Open User Configuration, or .vscode/mcp.json in one project. VS Code uses servers and needs type:
{
"servers": {
"zn-gate": { "type": "stdio", "command": "npx", "args": ["-y", "zn-gate", "mcp"] }
}
}
Antigravity
This sets up the MCP server only. Antigravity also has hooks, which zn-gate supports: see Google Antigravity.
File ~/.gemini/config/mcp_config.json (… menu in the agent panel → MCP Servers → Manage MCP Servers → View raw config). This editor uses mcpServers:
{
"mcpServers": {
"zn-gate": { "command": "npx", "args": ["-y", "zn-gate", "mcp"] }
}
}
Windsurf
File ~/.config/devin/mcp_config.json (macOS and Linux) or %APPDATA%\devin\mcp_config.json (Windows). Same block as above:
Cline
In the Cline panel: MCP Servers → Configure → Configure MCP Servers. Same block as above.
JetBrains
Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add, choose STDIO and paste the same block as above.
Zed
Command Palette → zed: open settings file. Zed uses context_servers in settings.json:
{
"context_servers": {
"zn-gate": { "command": "npx", "args": ["-y", "zn-gate", "mcp"], "env": {} }
}
}
Continue
Your config.yaml, or a file in .continue/mcpServers/. Continue uses a YAML list, not JSON:
mcpServers:
- name: zn-gate
type: stdio
command: npx
args: ["-y", "zn-gate", "mcp"]
Details for each editor: Editors.
Protect the MCP servers you already use
zn-gate can also sit in front of the MCP servers in your configs: every result is checked for prompt injection, and secrets zn-gate recognizes are removed, before the agent sees it.
npx -y zn-gate init --dry-run # preview, changes nothing
npx -y zn-gate init --wrap-mcp # wrap them (a backup is written first)
npx -y zn-gate init --revert # restore the latest backup
More: Protect MCP servers.
On Windows PowerShell, if npx says "running scripts is disabled on this system", use npx.cmd instead: see Install.