The local security layer for coding agents: secret redaction, injection checks and an MCP proxy.
Setup
Choose your client, copy the config, then fill in any required environment variables.
claude mcp add zn-gate --env ZN_API_KEY='<ZN_API_KEY>' -- npx -y zn-gate~/.codex/config.toml
[mcp_servers.zn-gate]
command = "npx"
args = ["-y", "zn-gate"]
env = { ZN_API_KEY = "<ZN_API_KEY>" }
# codex mcp add zn-gate --env ZN_API_KEY='<ZN_API_KEY>' -- npx -y zn-gate~/.cursor/mcp.json
{
"mcpServers": {
"zn-gate": {
"command": "npx",
"args": [
"-y",
"zn-gate"
],
"env": {
"ZN_API_KEY": "<ZN_API_KEY>"
}
}
}
}.vscode/mcp.json
{
"servers": {
"zn-gate": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"zn-gate"
],
"env": {
"ZN_API_KEY": "<ZN_API_KEY>"
}
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"zn-gate": {
"command": "npx",
"args": [
"-y",
"zn-gate"
],
"env": {
"ZN_API_KEY": "<ZN_API_KEY>"
}
}
}
}claude_desktop_config.json
{
"mcpServers": {
"zn-gate": {
"command": "npx",
"args": [
"-y",
"zn-gate"
],
"env": {
"ZN_API_KEY": "<ZN_API_KEY>"
}
}
}
}.trae/mcp.json
{
"mcpServers": {
"zn-gate": {
"command": "npx",
"args": [
"-y",
"zn-gate"
],
"env": {
"ZN_API_KEY": "<ZN_API_KEY>"
}
}
}
}Environment variables
ZN_API_KEY
Replace the placeholders with your own credentials and keep them out of version control.