Skip to content

code firewall mcp for Zed

io.github.egoughnour/code-firewall-mcp

Structural similarity-based code filter. Stops malicious code pattern reaching execution tools.

client:Zed transport:stdio runtime:pypi

Install code firewall mcp in Zed

~/.config/zed/settings.json · windows: %APPDATA%\Zed\settings.json

Held in this page only — never stored, logged, or sent anywhere but back to your screen.

{
  "context_servers": {
    "code-firewall-mcp": {
      "command": "uvx",
      "args": [
        "code-firewall-mcp"
      ],
      "env": {
        "FIREWALL_DATA_DIR": "<FIREWALL_DATA_DIR>",
        "OLLAMA_URL": "<OLLAMA_URL>",
        "EMBEDDING_MODEL": "<EMBEDDING_MODEL>",
        "SIMILARITY_THRESHOLD": "<SIMILARITY_THRESHOLD>"
      }
    }
  }
}

Merge this into your existing settings object — do not replace the file. Zed docs

code firewall mcp in other clients