Skip to main content

Quick Install

uvx zenable-mcp install cursor
Requires UV. See the CLI command reference for more options.
That’s it! You’re all set. Restart Cursor and start using Zenable’s conformance checking in your AI coding assistant. This installs both the MCP server and Cursor hooks for real-time code checking.
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:
{
  "mcpServers": {
    "zenable": {
      "type": "http",
      "url": "https://mcp.zenable.app/"
    }
  }
}
In one of these file locations:
.cursor/mcp.json
We only recommend this manual approach if your host doesn’t have uv or uvx installed and you’d like to avoid installing it. Otherwise, the installer 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 after file edits to check for conformance issues. The quick install command sets this up for you.
Place the following configuration in .cursor/hooks.json (project) or ~/.cursor/hooks.json (global):
{
  "version": 1,
  "hooks": {
    "afterFileEdit": [
      {
        "command": "uvx zenable-mcp@latest hook"
      }
    ]
  }
}
This uses Cursor’s afterFileEdit hook to run conformance checks after each file edit made by the AI agent.
Current Limitation: Cursor’s afterFileEdit hook cannot send output back to the agent or use exit codes to block edits. Conformance issues are printed to stdout for visibility in Cursor’s hook output panel, but the agent won’t automatically act on them. We’re talking with the Cursor team about enhanced support.