firewall_blacklist
Add dangerous code patterns to a security blacklist by providing file paths or code strings with severity ratings and reasons, enabling proactive threat prevention in the Code Firewall MCP server.
Instructions
Add 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}
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | No | ||
| code | No | ||
| reason | No | Security risk | |
| severity | No | high | |
| language | No | python |