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

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

wrap_call Self-Healing Function Call

Execute a function call with retry, circuit breaker, and metrics. Pass a target name and the function will be retried on transient failures. Use this to wrap any unreliable external call.

ParameterTypeDescription
description *stringHuman-readable description of what this call does
target *stringIdentifier for the target service (used for circuit breaker tracking)
bodystringRequest body (for POST/PUT/PATCH)
headersobjectHTTP headers
methodstringHTTP method (default: GET)
timeoutMsnumberTimeout per attempt in ms (default: 30000)
urlstringURL to call (for HTTP targets)

circuit_status Circuit Breaker Status

Check the health status of a target. Returns circuit state, failure count, and cooldown.

ParameterTypeDescription
targetstringTarget to check. Omit to see all targets.

circuit_reset Reset Circuit Breaker

Reset a circuit breaker back to closed (healthy). Use after fixing the underlying issue.

ParameterTypeDescription
targetstringTarget to reset. Omit to reset all.

metrics Call Metrics

Get observability metrics — success rates, latency, top errors, breakdown by tool and target.

ParameterTypeDescription
windowMinutesnumberTime window in minutes (default: 60)

recent_errors Recent Errors

Get the most recent failed calls with full error details and retry logs.

ParameterTypeDescription
limitnumberNumber of errors to return (default: 20)