Code Firewall MCP
Structural similarity-based code filter.
Connector by egoughnour · GitHub account verified by the MCP Registry
Install
Works with Claude Code, Codex, VS Code, Claude Desktop, Cursor, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install connector/egoughnour-code-firewall-mcp
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this server can do and what it asks for, from its tool list and install config. Checked Oct 25, 2026.
- Tools
- 6 read · 4 write · 1 delete
- Secrets
- None asked for
- Install scripts
- Not scanned yet
- Runs as
- Python package
Tools by what they do 11
Read from the source code; the running server may list different tools.
Read 6 · Look things up without changing anything.
firewall_checkfirewall_check_codefirewall_list_patternsfirewall_ollama_statusfirewall_statusfirewall_system_check
Write 4 · Create, change, send or run things.
firewall_blacklistfirewall_record_deltafirewall_setup_ollamafirewall_setup_ollama_direct
Delete 1 · Delete, drop, revoke or wipe things.
firewall_remove_pattern
Secrets and settings it asks for
Other settings (environment variables or headers).
EMBEDDING_MODELFIREWALL_DATA_DIROLLAMA_URLSIMILARITY_THRESHOLD
Network hosts it talks to 1
github.com· found in install command
Files it touches
- Any path the agent passes to its tools
Tools (11)
Read from the source code; the running server may differ. Descriptions are the server’s own words; hidden characters are shown as [U+…].
firewall_blacklistAdd a code pattern to the blacklist. Either file_path or code must be provided. Args: file_path: Path to code file to blacklist code: Code string to blacklist (alternative to file_path) reason: Why this pattern is dangerous severity: critical, high, medium, low language: Programming language (used if code is provided) Returns: {"status": "added", "pattern_id": str, "structure_hash": str}
firewall_checkCheck if code is safe to pass to execution tools like rlm_exec. Parses the code, normalizes to structural skeleton, embeds via Ollama, and checks similarity against blacklisted dangerous patterns. Args: file_path: Path to the code file to check Returns: { "allowed": bool, # True if safe to proceed "blocked": bool, # True if matched blacklist "similarity": float, # Similarity to closest blacklist match (0-1) "matched_pattern": str, # ID of matched pattern (if blocked) "reason": str, # Why it was blocked (if b…
firewall_check_codeCheck if code string is safe (without requiring a file). Args: code: The code to check language: Programming language (default: python) Returns: Same as firewall_check
firewall_list_patternsList patterns in the blacklist or delta collection. Args: collection_name: "blacklist" or "deltas" limit: Maximum number of patterns to return Returns: {"patterns": [...], "count": int}
firewall_ollama_statusCheck Ollama server status and embedding model availability. Args: force_refresh: Force refresh the cached status
firewall_record_deltaRecord a near-miss variant to help sharpen the classifier. Use this when code is similar to a blacklisted pattern but represents a legitimate use case, or when a new variant of a dangerous pattern is discovered. Args: file_path: Path to code file code: Code string (alternative to file_path) similar_to: Pattern ID this is similar to notes: Notes about why this is being recorded language: Programming language Returns: {"status": "recorded", "delta_id": str}
firewall_remove_patternRemove a pattern from the blacklist or delta collection. Args: pattern_id: The pattern ID to remove collection_name: "blacklist" or "deltas" Returns: {"status": "removed", "pattern_id": str}
firewall_setup_ollamaInstall Ollama via Homebrew (macOS). Args: install: Install Ollama via Homebrew start_service: Start Ollama as a background service pull_model: Pull the embedding model (nomic-embed-text) model: Model to pull (default: nomic-embed-text)
firewall_setup_ollama_directInstall Ollama via direct download (macOS) - no Homebrew, no sudo. Args: install: Download and install Ollama to ~/Applications start_service: Start Ollama server in background pull_model: Pull the embedding model (nomic-embed-text) model: Model to pull (default: nomic-embed-text)
firewall_statusGet firewall status and statistics. Returns: { "ollama_available": bool, "chromadb_available": bool, "tree_sitter_available": bool, "blacklist_count": int, "delta_count": int, "similarity_threshold": float, "near_miss_threshold": float, }
firewall_system_checkCheck if system meets requirements for Ollama embeddings. Verifies: macOS, Apple Silicon (M1/M2/M3/M4), RAM, Homebrew installed. Use before attempting Ollama setup.
Signals
- Stars
- 0
- Forks
- 0
- Open issues
- 0
- Weekly downloads
- 45
- Last commit
- Jan 19, 2026 (9 months ago)
- Last release
- Jan 19, 2026 (9 months ago)
- Last package publish
- Jan 19, 2026 (9 months ago)
From GitHub (fetched Oct 24, 2026) and the package registry.
Details
- Registry name
io.github.egoughnour/code-firewall-mcp- Version
- 0.7.0
- Auth
- No auth
- Packages
- pypi code-firewall-mcpmcpb https://github.com/egoughnour/code-firewall-mcp/releases/download/v0.7.0/code-firewall-mcp.mcpb
- License
- MIT
- Repository
- github.com/egoughnour/code-firewall-mcp
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
More from egoughnour
- 0.452score
Massive Context MCP
egoughnour
Handles 10M+ token contexts with chunking, sub-queries, and local Ollama inference.
ConnectorDFreshness: DLocal★ 1↓ 62/wkClaude Code +5 - 0.440score
Curate-Ipsum
egoughnour
Code synthesis through belief revision, mutation testing, and verification
ConnectorDFreshness: DLocal↓ 55/wkClaude Code +5 - 0.425score
Cowork History
egoughnour
Hybrid search for Cowork history: FTS, Spotlight, and semantic vectors
ConnectorDFreshness: DLocal★ 1↓ 19/wkClaude Code +5
Cite this page
Code Firewall MCP. Agent Mart. https://agentmart.dev/connectors/egoughnour-code-firewall-mcp (last updated 2026-10-24)