Wraps any MCP server or HTTP endpoint with automatic retry logic, circuit breakers, and observability. Run it standalone to get a wrap_call tool that adds exponential backoff and failure tracking to arbitrary API requests, or use proxy mode to transparently wrap existing MCP servers so all their tools inherit self-healing behavior. Includes tools to check circuit breaker status, reset failed circuits, and pull metrics on success rates and recent errors. Useful when your agents are hitting flaky third-party APIs or you want to add resilience to an MCP server that doesn't handle transient failures gracefully. Configure retry counts, backoff delays, and circuit thresholds through environment variables.
claude mcp add --transport stdio carsonroell-debug-selfheal-mcp uvx selfheal-mcp