Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.zenable.io/llms.txt

Use this file to discover all available pages before exploring further.

Quick Install

zenable install vscode
See the CLI command reference for more options.
That’s it! You’re all set. Restart VS Code and start using Zenable’s conformance checking in your AI coding assistant. This installs both the MCP server and VS Code Copilot agent hooks for real-time code checking. Hooks rely on VS Code’s Preview hooks API, so the format may change in future releases.
The below is a minimal example which may need to be merged with your existing configuration. Consider using the quick install command to handle this automatically.
Place the following configuration:
{
  "servers": {
    "zenable": {
      "type": "http",
      "url": "https://mcp.zenable.app/"
    }
  },
  "inputs": []
}
In one of these file locations:
.vscode/mcp.json
We only recommend this manual approach if you can’t use zenable install. Otherwise, zenable install is much safer and can handle configuration upgrades over time, handles merges with existing configs, performs backups and logging in case of issues, and more.
Hooks run automatically at session boundaries to check for conformance issues. The quick install command sets this up for you.
VS Code’s Copilot agent hooks are project-level only. Place the following in .github/hooks/zenable.json:
{
  "hooks": {
    "UserPromptSubmit": [
      { "type": "command", "command": "zenable hook" }
    ],
    "Stop": [
      { "type": "command", "command": "zenable hook" }
    ],
    "PostToolUse": [
      { "type": "command", "command": "zenable hook" }
    ],
    "PreToolUse": [
      { "type": "command", "command": "zenable hook || true" }
    ]
  }
}
This uses VS Code’s Copilot agent hooks to run conformance checks. The || true on PreToolUse keeps it non-blocking — Zenable hooks never deny tool calls.