mcp-circuit-breaker
CommunityHalt MCP retry loops, protect tokens and session quality.
Software Engineering#mcp#session-management#ai-agent#fallback#circuit-breaker#tool-failure#retry-prevention
Authorchrono-meta
Version1.0.0
Installs0
System Documentation
What problem does it solve?
MCP tool failures often trigger cascading retry loops that waste tokens, degrade AI session performance, and produce no useful output, leaving you stuck waiting for unresponsive tools to recover without a clear path forward.
Core Features & Use Cases
- Failure Pattern Detection: Automatically identifies repeated failures of the same MCP tool and classifies the failure type (timeout, auth error, admin gating, rate limit, etc.) to avoid wasting retries on non-transient issues.
- Circuit Breaker State Machine: Trips a circuit after configurable failure thresholds to block further calls to the broken tool, preventing token waste from compounding.
- Ranked Fallback Alternatives: Proposes 3 prioritized fallback options for each failure type, including substitute tools, graceful degradation, and scheduled recovery probes.
- Use Case: If you are working with a flaky third-party MCP server that keeps timing out, this skill stops the retry loop, suggests using a local alternative or waiting for recovery instead of burning through your token budget.
Quick Start
Invoke the mcp-circuit-breaker skill when you notice an MCP tool failing repeatedly to get failure classification, blocked retries, and ranked fallback options immediately.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: mcp-circuit-breaker Download link: https://github.com/chrono-meta/forge-harness/archive/main.zip#mcp-circuit-breaker Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 536,000+ vetted skills library on demand.