retrykit MCP Server
AI/LLM retry diagnostics, SDK double-retry audit, and fault evaluation MCP server.
retrykit scores 68 (Good), licensed MIT and written in TypeScript. It installs as a local process. It does not declare tools yet. Filed under AI and memory. GitHub shows 0 stars. Package registries report about 474 downloads a week. Install configs are generated for 12 clients. Being listed in the registry is not the same as being vendor-official.
Good trust
68 of 100 from six public signals. Nobody can buy a point.
- Listed in the official MCP registry.
- OSI-style license: mit.
License, quality and maintenance
Quality: Grade C
60/100 for listing completeness. Lost points: no listed tools, short summary, no docs link.
How quality is graded
Where the 68 comes from
22 + 20 + 5 + 10 + 4 + 7 = 68. Each factor is capped, so no single signal can carry a listing.
Active in the official MCP registry, plus a known vendor namespace.
Registry: 22 of 30 points.How recently the repository saw a commit or release.
Maintenance: 20 of 20 points.GitHub stars and weekly downloads, on a log scale.
Popularity: 5 of 20 points.A clear, OSI-style open-source license.
License: 10 of 10 points.Not archived, a secure install path, a pinned version.
Security: 4 of 10 points.A real summary, a README with depth, listed tools.
Docs: 7 of 10 points.Install
Pick your client, copy the config, paste it in.
Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.
{ "mcpServers": { "rohan9024-retrykit": { "command": "npx", "args": [ "-y", "@rohan9024/retrykit@2.1.2" ] } }}
Environment variables
This server does not declare environment variables.
Tools
All capabilitiesTools show up when the registry metadata or the repository README lists them. Public READMEs are read directly. A GitHub token is used only when one is already configured.
About
@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.
Frequently asked questions
What is retrykit MCP Server?
AI/LLM retry diagnostics, SDK double-retry audit, and fault evaluation MCP server.
How do I install retrykit MCP Server in Claude Desktop, Cursor, or VS Code?
Pick your client in the Install section on this page and copy the generated config into the client's config file. Step-by-step guides: Claude Desktop, Cursor, and VS Code. retrykit MCP Server runs locally from the npm package @rohan9024/retrykit with the command npx -y @rohan9024/retrykit@2.1.2.
Is retrykit MCP Server free and open source?
Yes. retrykit MCP Server is released under the MIT license, an OSI-approved open-source license, so you can use, modify, and self-host it under those terms.
Does retrykit MCP Server support remote (HTTP) connections?
No remote endpoint is listed for retrykit MCP Server. It runs locally on your machine over stdio, started by your MCP client.
How is retrykit MCP Server's trust score calculated?
retrykit MCP Server scores 68 out of 100 (Good). The score adds six capped public signals: registry status, maintenance, popularity, license, documentation, and security. Nobody can pay for points. Read the methodology for the full formula.
Reviews
No reviews yet—Be the first to review
No published reviews yet. Used it? Tell the next person how it went.
Sign inA verified email is required to review this server.
Add badge to your README
Paste either snippet into the repository README. The image links to this listing.