SelfHeal MCP

v0.1.1
io.github.carsonroell-debug/selfheal-mcp Checked 1 day ago Published 8 months ago

Self-healing proxy for MCP servers with retry, circuit breaker, and observability

Values you need

VariableWhat it is
SELFHEAL_CONFIGoptional Path to selfheal.config.json (optional, defaults to cwd)
SELFHEAL_MAX_RETRIESoptional Max retry attempts per call (default: 3)
SELFHEAL_CIRCUIT_THRESHOLDoptional Failures before circuit opens (default: 5)

npm (npx) discovery passed

Requires Node.js 18+

Run in a terminal
claude mcp add selfheal-mcp -- npx -y selfheal-mcp@0.1.1
Add to claude_desktop_config.json
{
  "mcpServers": {
    "selfheal-mcp": {
      "args": [
        "-y",
        "selfheal-mcp@0.1.1"
      ],
      "command": "npx"
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "selfheal-mcp": {
      "args": [
        "-y",
        "selfheal-mcp@0.1.1"
      ],
      "command": "npx"
    }
  }
}
Add to .vscode/mcp.json
{
  "servers": {
    "selfheal-mcp": {
      "args": [
        "-y",
        "selfheal-mcp@0.1.1"
      ],
      "command": "npx",
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.selfheal-mcp]
command = "npx"
args = ["-y", "selfheal-mcp@0.1.1"]

For AI agents

  1. Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
  2. Restart or reload the client so it starts the server.
  3. Verify: the server should expose these tools: wrap_call, circuit_status, circuit_reset, metrics, recent_errors.
  4. If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set.

Machine-readable: install.md · manifest.json