Skip to main content

MCP client for Zenable conformance checking

This project has been archived.

The maintainers of this project have marked this project as archived. No new releases are expected.

Project description

Assess Existing Codebase with Zenable MCP

Use Zenable's MCP (Model Context Protocol) server to analyze and assess your existing codebase for conformance with organizational policies and best practices. Quickly identify areas that need improvement and ensure consistency across your entire project.

Features

  • Real-time code validation against configurable policies
  • Automatic file detection from IDE hooks
  • Glob pattern support for checking multiple files (**/*.py)
  • Integration with MCP-compatible agentic IDEs
  • Command-line interface for standalone checking
  • Lightweight Python package with minimal dependencies

Installation

# Set API key
export ZENABLE_API_KEY="your-api-key-here"

# Install and run zenable-mcp against your python files
uvx zenable-mcp check '**/*.py'

Usage

Command Line

Check files using glob patterns or automatic detection:

# Automatic detection from IDE hooks
zenable-mcp check

# Check a single file
zenable-mcp check example.py

# Check all Python files recursively
zenable-mcp check '**/*.py'

# Check multiple patterns
zenable-mcp check 'src/**/*.js' 'tests/**/*.js'

# Exclude test files
zenable-mcp check '**/*.py' --exclude '**/test_*.py'

# Specify a base directory for pattern matching
zenable-mcp check '**/*.py' --base-path ./src

Automatic File Detection

When running from IDE hooks, zenable-mcp check automatically detects files for Claude; if other IDEs support deterministic hook-based script calling and you'd like support, let us know!

This means hooks can simply run zenable-mcp check without specifying files.

IDE Integration

Zenable MCP integrates seamlessly with modern AI-powered development tools through hooks and automation.

Quick Setup

Claude Code - Add to .claude/settings.json:

{
  "hooks": {
    "PostToolUse": [
      {
        "matcher": "Write|Edit",
        "hooks": [
          {
            "type": "command",
            "command": "uvx zenable-mcp check"
          }
        ]
      }
    ]
  }
}

How It Works

  1. File Analysis: Submits code to Zenable's conformance engine
  2. Policy Validation: Checks against configured organizational policies
  3. Result Reporting: Returns validation results with specific issues and suggestions

See our MCP Server Documentation for more details.

API Reference

Commands

  • check <patterns...> - Validate files against conformance policies
    • Supports glob patterns (e.g., **/*.py, src/**/*.js)
    • Options:
      • --exclude: Patterns to exclude from checking
      • --base-path: Base directory for pattern matching
      • --verbose: Show files being checked
    • Returns: JSON response with validation results
    • Exit codes: 0 (pass), 1 (fail), 2 (error)

Documentation

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

zenable_mcp-1.1.0-py3-none-any.whl (20.3 kB view details)

Uploaded Python 3

File details

Details for the file zenable_mcp-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: zenable_mcp-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 20.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for zenable_mcp-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6d68d54bfa60863842b31393282fad1c3a80d284d42acf824cad8907258db538
MD5 d7055356cd8bc5f125cda07e74424cd7
BLAKE2b-256 ee4a43722028acbaa528019511abce47de50bff94157beb866a3e1b3d725caeb

See more details on using hashes here.

Provenance

The following attestation bundles were made for zenable_mcp-1.1.0-py3-none-any.whl:

Publisher: release_package.yml on Zenable-io/next-gen-governance

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page