Overview
Zenable - Clean Up Sloppy AI Code and Prevent AI-Created Security VulnerabilitiesGlobal Options
These options are available for all commands:| Option | Description |
|---|---|
--verbose | Enable verbose output |
--debug | Enable debug output |
-h, --help | Show help message |
Commands
install
Install the Zenable integrations.
mcp or hook).
Options
| Option | Description |
|---|---|
--dry-run | Preview what would be done without actually performing the installation |
--recursive | Install in all git repositories found below the current directory |
-g, --global | Install globally in user’s home directory instead of project directory |
--include TEXT | Include only directories matching these glob patterns (e.g., '**/microservice-*') |
--exclude TEXT | Exclude directories matching these glob patterns |
--all | Install for all supported IDEs, even if not currently installed |
-h, --help | Show help message |
Subcommands
install mcp
Install Zenable MCP server configuration.
Uses OAuth for secure authentication.
all- Install MCP for all detected IDEs (default)amazonq- Install MCP for Amazon Q Developerclaude- Install MCP for Claude Codecontinue- Install MCP for the Continue IDE*copilot- Install MCP for GitHub Copilot CLIcursor- Install MCP for Cursor IDE and cursor-agent CLIgemini- Install MCP for Gemini CLIroo- Install MCP for Roo Codevscode- Install MCP for Visual Studio Codewindsurf- Install MCP for Windsurf IDE
install hook
Install hooks for various tools.
all- Install hooks for all supported toolsclaude- Install Claude Code hooks
Options
| Option | Description |
|---|---|
--dry-run | Preview what would be done without actually performing the installation |
--recursive | Install in all git repositories found below the current directory |
--include TEXT | Include only directories matching these glob patterns (e.g., '**/microservice-*') |
--exclude TEXT | Exclude directories matching these glob patterns |
-h, --help | Show help message |
Examples
check
Check the provided files against your conformance tests.
**/*.py to check all Python files recursively.
Files are processed in batches of 5 for optimal performance.
Arguments
PATTERNS: Glob patterns for files to check (e.g.,'**/*.py','src/**/*.js')- If no patterns are provided, we auto-detect the last edited file, subject to some filtering, and sends that. For filtering details use
--verbose
- If no patterns are provided, we auto-detect the last edited file, subject to some filtering, and sends that. For filtering details use
Options
| Option | Description |
|---|---|
--exclude TEXT | Patterns to exclude from checking |
--base-path DIRECTORY | Base directory for pattern matching (defaults to current directory) |
--branch | Check all files changed on the current branch compared to the base branch |
--base-branch TEXT | Base branch to compare against when using --branch (default: $ZENABLE_CHECK_BASE_BRANCH or main) |
--dry-run | Show which files would be sent without actually checking them |
-h, --help | Show help message |
Configuration
Thecheck command supports configuration via environment variables:
| Environment Variable | Description | Default |
|---|---|---|
ZENABLE_CHECK_BASE_BRANCH | Default base branch to compare against when using --branch | main |
Example
Examples
hook
Handle calls from the hooks of Agentic IDEs.
Options
| Option | Description |
|---|---|
-h, --help | Show help message |
logs
View zenable_mcp logs.
Options
| Option | Description |
|---|---|
-f, --follow | Follow log output (like tail -f) |
-r, --raw | Show raw log entries instead of just messages |
-n, --lines INTEGER | Number of lines to show (from end of file, default: 50) |
--clear | Clear the log file (cannot be used with other options) |
-h, --help | Show help message |
Examples
version
Show the zenable-mcp version.
Options
| Option | Description |
|---|---|
-h, --help | Show help message |
Configuration Files
MCP Server Configuration
The tool creates MCP server configuration in IDE-specific locations, appropriate for that individual IDE. For instance:Hook Configuration (Claude Code)
Hooks are configured in Claude Code settings:Exit Codes
| Code | Meaning |
|---|---|
| 0 | Success |
| 2 | Conformance issues found |
| 3 | Handler conflict |
| 4 | No hook input |
| 12 | No files specified |
| 13 | No files found |
| 14 | File read error |
| 15 | Invalid parameters |
| 16 | File write error |
| 20 | API error |
| 51 | Installation error |
| 52 | Partial success |
| 130 | User interrupt |