Server data from the Official MCP Registry
AI/LLM retry diagnostics, SDK double-retry audit, and fault evaluation MCP server.
About
AI/LLM retry diagnostics, SDK double-retry audit, and fault evaluation MCP server.
Security Report
retrykit is a zero-dependency TypeScript retry/rate-limit library with an embedded stdio MCP server and CLI; the visible code shows no exfiltration, shell execution, or hardcoded secrets, and its permissions (filesystem reads of the workspace, stdio, env-based API keys) match its developer-tools purpose. Minor concerns are limited to the CLI's workspace file writes via init and the truncated engine.ts being unreviewed, so no significant findings lower the score. Supply chain analysis found 1 known vulnerability in dependencies (1 critical, 0 high severity). Package verification found 1 issue.
10 files analyzed · 6 issues found
Security scores are indicators to help you make informed decisions, not guarantees. Always review permissions before connecting any MCP server.
Permissions Required
This plugin requests these system permissions. Most are normal for its category.
How to Install
Add this to your MCP configuration file:
{
"mcpServers": {
"retrykit": {
"command": "npx",
"args": [
"-y",
"@rohan9024/retrykit@2.1.2"
]
}
}
}Some servers take additional arguments. See the repository for details.
Documentation
View on GitHubFrom the project's GitHub README.
@rohan9024/retrykit v3.0.0
The reliability and quota engine for production AI applications: prevent retry storms, coordinate provider limits, and recover streams safely—with zero runtime dependencies.
Quick start
npm i @rohan9024/retrykit
# Node.js >=22 is required
import OpenAI from 'openai';
import { wrapOpenAI } from '@rohan9024/retrykit/auto';
const client = wrapOpenAI(new OpenAI({ apiKey: process.env.OPENAI_API_KEY, maxRetries: 0 }));
const result = await client.chat.completions.create({ model: 'gpt-4o-mini', messages: [{ role: 'user', content: 'Hello' }] });
Vibe-coder prompt
Install
@rohan9024/retrykit, inspect existing provider retry behavior, use@rohan9024/retrykit/autoor a focused subpath, set nested SDK retries to0, and run the project checks. Never use the unscopedretrykitpackage.
Install the coding-agent skill separately:
npx skills add rohan9024/retrykit --skill retrykit
Modules
| Import | Purpose |
|---|---|
@rohan9024/retrykit | Curated root API |
/core | Retry, backoff, providers, circuit breaker, coordinator |
/auto | Nested client proxy and environment key discovery |
/fetch | Abort-aware HTTP retries and idempotency policies |
/stream | Checkpoint-safe stream recovery |
/compaction | Tool-call-safe context compaction |
/budget | Retry and cost budget primitives |
/validate | Structural Standard Schema validation retries |
/mcp | Explicitly idempotent MCP retries |
/ai-sdk | Structural Vercel AI SDK middleware |
/otel | Zero-dependency, secret-scrubbed GenAI span hooks |
/stores/upstash | Edge-safe Upstash REST state store |
/testing | Deterministic Fault Lab utilities |
/client | Coordinated fetch, retry, circuit, budget, and stream client |
Reliability rules
- Retry only safe or explicitly idempotent operations.
- A stream is resumable only when
getCheckpointis supplied. - Set SDK retries to
0when RetryKit owns the policy. - Built-in coordination state is process-local.
- Pricing and token estimates are estimates unless based on actual provider usage.
POSTandPATCHretries require an idempotency key or explicit replay approval.- Unclassified errors are not retried by default.
Honest comparison
RetryKit focuses on AI-provider concerns—rate-limit headers, key pools, stream checkpoints, budgets, and agent-friendly subpaths. p-retry, async-retry, and cockatiel remain good generic promise-retry choices; Axios Retry and Opossum target HTTP and circuit breaking. Provider SDKs and AI frameworks may overlap, so avoid stacking policies.
Development
npm run typecheck
npm test
npm run build
CLI and migration
Use npx @rohan9024/retrykit doctor --json to audit SDK retry settings, npx @rohan9024/retrykit eval to run deterministic Fault Lab scenarios, npx @rohan9024/retrykit init --dry-run to preview setup, and npx @rohan9024/retrykit mcp for the stdio MCP server.
Migrating from p-retry: use retry() for promise operations, createRetryFetch() for HTTP, and the provider-aware policy when rate-limit headers, billing classification, stream checkpoints, or replay safety matter. Keep p-retry for generic non-AI work that does not need these guarantees.
CI / PR Audit Action
- uses: rohan9024/retrykit@v2
with:
fail-on-error: 'true'
sarif-file: retrykit-doctor.sarif
The action writes a SARIF report and prints JSON findings. It fails only for error-severity findings when fail-on-error is enabled.
Fault Lab
Try the static Fault Lab at https://rohan9024.github.io/retrykit/ for deterministic demonstrations of retry storms, stream interruptions, and tool-call safety.
Reproducible benchmark simulation
Run node benchmarks/storm-benchmark.mjs for the deterministic 50-caller Fault Lab simulation. The current measured policy table is:
| Strategy | Requests Fired | Wasted Quota Retries | Stream Duplicates | Compaction Crashes |
|---|---|---|---|---|
| Naive SDK + generic 3x loop | 150 | 100 | 50 | 50 |
| Naive while retry | 200 | 150 | 100 | 50 |
| RetryKit v2.1 policy | 100 | 0 | 0 | 0 |
These are deterministic simulation counts, not provider-latency or download claims.
MIT licensed.
Reviews
No reviews yet
Be the first to review this server!
More Developer Tools MCP Servers
Rea
Freeby Morluto · Developer Tools
Reverse engineer anything from your terminal or agent with one CLI and MCP server.
Paperclip
Freeby Paperclipai · Developer Tools
Trending hip-hop artist momentum scores across four cultural dimensions.
Scrapling
Freeby D4Vinci · Developer Tools
Web scraping with stealth HTTP, real browsers, and Cloudflare bypass. CSS selectors supported.
Server Time
Freeby Modelcontextprotocol · Developer Tools
Current time lookup and conversion between IANA timezones
Toleno
Freeby Toleno · Developer Tools
Toleno Network MCP Server — Manage your Toleno mining account with Claude AI using natural language.
MCP Marketplace
Freeby mcp-marketplace · Developer Tools
Search and install MCP servers from inside your AI client.
