schemaVersion: "1.0.0"
name: "ruff-mcp"
displayName: "astral-sh/ruff MCP Server"
description: "An extremely fast Python linter and code formatter written in Rust."
homepage: "https://github.com/astral-sh/ruff"
repository: "https://github.com/astral-sh/ruff"
license: "MIT"
startCommand:
  type: stdio
  command: python3
  args:
    - "server.py"
    - "--stdio"
  configSchema:
    type: object
    properties:
      allowExec:
        type: boolean
        title: "Allow Local Execution"
        description: "Set true to execute local CLI commands instead of dry-run plans."
        default: false
  env:
    MCP_ALLOW_EXEC: "${config.allowExec}"
tools:
  - name: repo_overview
    description: "Return architecture, install commands, and tool catalog for astral-sh/ruff."
  - name: cli_check
    description: "Run lint rules across Python source files with optional auto-fix"
  - name: cli_format
    description: "Format Python code deterministically to Ruff style rules"
  - name: cli_rule
    description: "Explain a specific Ruff lint rule code and rationale"
  - name: cli_analyze
    description: "Inspect module imports and symbol graph across a repository"
