Skip to content

agent-wall doctor

Health check — verify your config, environment, and MCP setup are all working correctly.

Usage

bash
agent-wall doctor [options]

Options

OptionDescription
-c, --config <path>Path to agent-wall.yaml config file

Also respects the AGENT_WALL_CONFIG environment variable.

Checks Performed

CheckWhat it verifies
Node.js versionNode.js >= 18 is installed
Policy configConfig file loads, parses, and the policy engine initializes
MCP clients foundDetects installed MCP client configs (Claude, Cursor, VS Code, Windsurf, Cline)
Env overridesReports any AGENT_WALL_CONFIG or AGENT_WALL_LOG environment variables

Examples

bash
# Run all health checks
agent-wall doctor

# Check a specific config
agent-wall doctor --config ./custom-policy.yaml

Example Output

─── Agent Wall Doctor ───────────────────────────

  ✓ Node.js version
    v22.0.0

  ✓ Policy config
    ./agent-wall.yaml (11 rules)

  ✓ MCP clients found
    Claude Code, Cursor

  ✓ Env overrides
    AGENT_WALL_CONFIG

─── Summary ────────────────────────────────────
  All checks passed. Agent Wall is ready.
─────────────────────────────────────────────────

With issues

─── Agent Wall Doctor ───────────────────────────

  ✓ Node.js version
    v22.0.0

  ✗ Policy config
    Policy file not found: ./agent-wall.yaml

  ✗ MCP clients found
    None detected (run 'agent-wall scan' for details)

  ✓ Env overrides
    None set

─── Summary ────────────────────────────────────
  2 issue(s) found:
    • Policy config: Policy file not found
    • MCP clients found: None detected
─────────────────────────────────────────────────

Released under the MIT License.