agentleFS
reaatechreaatech/mcp-gateway/skills/fan-out/skill.md

fan-out

Skill0 starsChanged 7 months agoMITView on GitHub

8 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We found no rules to list in this file: it reads as prose or reference rather than instructions.

Files
skill.md

Fan-out Routing

Capability

Broadcast MCP requests to multiple upstream servers with configurable aggregation strategies, circuit breaker, and retry logic.

Package

@reaatech/mcp-gateway-fanout — packages/fanout/src/

Components

ComponentPurpose
fanout-router.tsMulti-upstream orchestration: executeFanout, setUpstreamCaller
response-aggregator.tsAggregation by strategy (first-success, all-wait, majority-vote)
upstream-selector.tsWeight-based upstream selection (round-robin, weighted, health-based)
failover-handler.tsCircuit breaker, retry with backoff, health tracking
upstream-client.tsJSON-RPC request creation and upstream HTTP calls
retry-logic.tsExponential backoff with jitter and idempotency keys
health-checker.tsPeriodic upstream health probes with configurable thresholds
connection-pool.tsHTTP Keep-Alive connection pooling for upstream requests

Aggregation Strategies

StrategyBehavior
first-successReturn first valid response, cancel others
all-waitWait for all responses, merge results
majority-voteReturn consensus from multiple upstreams

Error Handling

  • Partial failures handled gracefully (return available results)
  • Timeout on slow upstreams (configurable per upstream)
  • Circuit breaker prevents cascading failures
  • Fan-out metadata included in response

Security Considerations

  • SSRF protection on all upstream URLs (via core package)
  • Each upstream call uses same auth context as original request
  • Circuit breaker state configurable per upstream

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.