Gestiona pools de cuotas compartidas y aplica límites de velocidad para múltiples agentes de IA mediante un sistema de token bucket.
También conocido como jdkabattles/forgingstack-ration, forgingstack-ration
- Stars
- 0
- Herramientas
- —
- Descargas, 30 días
- —
- Última versión
- 0.1.0
- Último commit
- 8 nov 2026
- Licencia
- MIT
¿Qué es ForgingStack Ration MCP?
ForgingStack Ration es un MCP server. Gestiona pools de cuotas compartidas y aplica límites de velocidad para múltiples agentes de IA mediante un sistema de token bucket.
Resumen generado a partir del README del proyecto
Acerca del MCP server de ForgingStack Ration
ForgingStack Ration proporciona una forma centralizada de gestionar pools de cuotas compartidas y aplicar límites de velocidad para múltiples agentes de IA. Utiliza un sistema de token bucket para evitar excesos controlando la capacidad, las tasas de recarga, los límites de ráfaga y los topes por agente. Este servidor actúa como un cliente público que se conecta a un servicio privado, por lo que requiere una API key y créditos para funcionar. Los usuarios deben verificar su correo electrónico tras el registro para habilitar las operaciones de creación y draw de pools.
Los desarrolladores interactúan con el servicio a través de un conjunto de herramientas que incluyen create_pool, draw, get_pool, list_pools, topup_pool, delete_pool, get_credits y get_receipt. El sistema rastrea cada intento de draw, ya sea permitido o denegado, mediante la emisión de un recibo con cadena de hashes. El servidor se ejecuta localmente vía stdio tras configurar la variable de entorno FORGINGSTACK_API_KEY. Los costes se calculan en función de las creaciones de pools y las llamadas de draw; se pueden adquirir 1,000 créditos por $10 a través de Stripe.
Qué puedes hacer con él
- 1Aplicar límites de uso por agenteRestringir que un agente individual exceda un número específico de draws dentro de una ventana móvil de 60 minutos.
- 2Prevenir picos repentinos de recursosGarantizar que la actividad de los agentes no supere un límite de ráfaga predefinido para un pool específico.
- 3Auditar el historial de consumo de agentesRecuperar un recibo con cadena de hashes por cada intento de extraer unidades de un pool para verificar la actividad.
- 4Gestionar recursos de tokens compartidosCrear un pool con capacidad y tasas de recarga específicas para distribuir unidades entre varios agentes.
Escrito a partir del README del proyecto. Cada caso de uso se verifica con una cita del mismo.
Cómo instalar ForgingStack Ration MCP
Formatos verificados el 10 nov 2026Instalar ForgingStack Ration MCP en Claude Code
$ claude mcp add --env FORGINGSTACK_API_KEY=<YOUR_FORGINGSTACK_API_KEY> forgingstack-ration -- uvx forgingstack-rationInstalar ForgingStack Ration MCP en Cursor
~/.cursor/mcp.json
{
"mcpServers": {
"forgingstack-ration": {
"command": "uvx",
"args": [
"forgingstack-ration"
],
"env": {
"FORGINGSTACK_API_KEY": "<YOUR_FORGINGSTACK_API_KEY>"
}
}
}
}Instalar ForgingStack Ration MCP en VS Code
.vscode/mcp.json
{
"servers": {
"forgingstack-ration": {
"type": "stdio",
"command": "uvx",
"args": [
"forgingstack-ration"
],
"env": {
"FORGINGSTACK_API_KEY": "<YOUR_FORGINGSTACK_API_KEY>"
}
}
}
}Instalar ForgingStack Ration MCP en Claude Desktop
claude_desktop_config.json
{
"mcpServers": {
"forgingstack-ration": {
"command": "uvx",
"args": [
"forgingstack-ration"
],
"env": {
"FORGINGSTACK_API_KEY": "<YOUR_FORGINGSTACK_API_KEY>"
}
}
}
}Instalar ForgingStack Ration MCP en Codex
~/.codex/config.toml
[mcp_servers.forgingstack-ration] command = "uvx" args = ["forgingstack-ration"] [mcp_servers.forgingstack-ration.env] FORGINGSTACK_API_KEY = "<YOUR_FORGINGSTACK_API_KEY>"
Instalar ForgingStack Ration MCP en Gemini CLI
~/.gemini/settings.json
{
"mcpServers": {
"forgingstack-ration": {
"command": "uvx",
"args": [
"forgingstack-ration"
],
"env": {
"FORGINGSTACK_API_KEY": "<YOUR_FORGINGSTACK_API_KEY>"
}
}
}
}Configuración
FORGINGSTACK_API_KEYObligatorioSecretoAPI key for Ration. Sign up via POST /v1/signup (key shown once).
FORGINGSTACK_API_BASERation API base URL. Live default.
| Nombre | Descripción | Tipo |
|---|---|---|
| FORGINGSTACK_API_KEY | API key for Ration. Sign up via POST /v1/signup (key shown once). | ObligatorioSecreto |
| FORGINGSTACK_API_BASE | Ration API base URL. Live default. |
Verificaciones automáticas
Ejecutado 14 nov 2026Informe completo →Pasó nuestras verificaciones automáticas. Esto no es una auditoría de seguridad: lee el código y dale al servidor el acceso más limitado que necesite. Cómo funcionan las verificaciones
- Repositorio de origen vinculado y accesiblejdkabattles/forgingstack-ration is public and reachablegithub.com/jdkabattles/forgingstack-ration ↗Aprobado
- El paquete cita este repositorio como fuenteNo verificado
- Procedencia de la compilación (atestación Sigstore)No build attestation published for this releaseNo verificado
- Licencia de código abierto (OSI)MITspdx.org/licenses/MIT.html ↗Aprobado
- Commit o lanzamiento en el último añoLast commit or release 2026-11-08github.com/jdkabattles/forgingstack-ration ↗Aprobado
- OpenSSF ScorecardNo verificado
- El nombre del paquete no es similar a un paquete popularNo popular package one edit away from forgingstack-rationAprobado
- Sin avisos críticos en el paquete ni en sus dependencias1 resolved dependencies checked; no critical advisoryosv.dev ↗Aprobado
- Sin instrucciones ocultas para el modelo0 tool descriptions and the README read; no override phrases, credential paths or hidden charactersAprobado
- Las herramientas destructivas están etiquetadasNo verificado
- El endpoint remoto responde al handshake MCPNo verificado
README
Ver en GitHubForgingStack Ration
One quota pool, many agents, no overruns.
mcp-name: io.github.jdkabattles/forgingstack-ration
This is the public client for Ration. The service itself — the token bucket, the receipt chain, the key store, and billing — runs on ForgingStack's private service and is not in this repo. Copying this repo does not give you the service: you still need an API key and credits, from signup below.
Live API: https://forgingstack-ration.jkbattles.workers.dev
What it does
A principal creates a pool with a capacity, a refill rate, a per-agent cap, and a burst limit. Agents draw units from it. The pool enforces the limits and issues a hash-chained receipt for every draw attempt — allowed and denied.
A draw is denied when:
- the units exceed the burst limit (
draw_exceeds_burst) - the pool does not have enough available units
(
pool_insufficient_units) - the agent's allowed draws inside the rolling 60-minute window
would exceed the per-agent cap (
per_agent_cap_exceeded)
The per-agent cap window is a rolling 60 minutes — a documented design choice, not a calendar window.
Signup (v1)
curl -X POST https://forgingstack-ration.jkbattles.workers.dev/v1/signup \
-H "Content-Type: application/json" \
-d '{"email":"you@example.com"}'
Returns an API key once and 100 starter credits. Save the key
immediately — it is stored only as a hash and cannot be shown again.
Click the verification link in the signup email before the key can
create pools or draw: until then, pool creation and draws return
403 email_not_verified.
Buying more credits
1 credit per pool creation, 1 credit per draw call (allowed or denied). Top-ups, pool reads, pool lists, and deletes are free.
curl -X POST https://forgingstack-ration.jkbattles.workers.dev/v1/billing/checkout \
-H "X-API-Key: YOUR_PRIMARY_KEY"
Returns the Stripe Payment Link: $10 for 1,000 credits. Pay on Stripe's hosted page with the same email you signed up with. Credits land once the payment is verified (within the hour).
Use it (MCP, stdio)
Set the key, then run the MCP server in this repo:
export FORGINGSTACK_API_KEY="your-key-here"
python -m app.mcp_server
Tools: create_pool, draw, get_pool, list_pools,
topup_pool, delete_pool, get_credits, get_receipt.
See SKILL.md for when to use it and when not to.
Price
1 credit per pool creation. 1 credit per draw call — a denied draw
still costs 1 credit, the draw was performed. An idempotent replay
(same Idempotency-Key) is free and returns the original receipt.
Files in this repo
app/mcp_server.py— MCP wrapper client (stdio, stdlib only)SKILL.md— when to use it, how to read allowed/deniedagent-card.json— A2A-style discovery cardserver.json— MCP Registry metadatapyproject.toml— package metadata for the MCP client
Preguntas sobre ForgingStack Ration MCP
¿Cómo agrego ForgingStack Ration MCP a Claude Code?
Ejecuta claude mcp add --env FORGINGSTACK_API_KEY=<YOUR_FORGINGSTACK_API_KEY> forgingstack-ration -- uvx forgingstack-ration en tu terminal. Añade --scope user para que esté disponible en todos los proyectos.
¿Cómo agrego ForgingStack Ration MCP a Cursor?
Abre ~/.cursor/mcp.json y añade el servidor en mcpServers, usando la configuración de Cursor que se muestra en la sección de instalación de arriba.
¿Cuánto cuesta usar el servicio?
Cuesta 1 crédito por cada creación de pool y 1 crédito por cada llamada de draw, incluso si el draw es denegado. Las recargas, lecturas de pools, listados y eliminaciones son gratuitas.
¿Cómo obtengo una API key?
Puedes registrarte mediante una solicitud POST al endpoint de signup con tu correo electrónico. Recibirás una API key una sola vez, por lo que debes guardarla inmediatamente.
¿Qué pasa si se deniega un draw?
Un draw puede ser denegado si excede el límite de ráfaga (burst limit), si el pool no tiene suficientes unidades o si el agente supera su límite por agente dentro de una ventana móvil de 60 minutos.