Verwaltet gemeinsame Quoten-Pools und erzwingt Rate Limits für mehrere AI Agents mithilfe eines Token-Bucket-Systems.
Auch bekannt als jdkabattles/forgingstack-ration, forgingstack-ration
- Stars
- 0
- Tools
- —
- Downloads, 30 Tage
- —
- Neueste Version
- 0.1.0
- Letzter Commit
- 8. Nov. 2026
- Lizenz
- MIT
Was ist ForgingStack Ration MCP?
ForgingStack Ration ist ein MCP server. Verwaltet gemeinsame Quoten-Pools und erzwingt Rate Limits für mehrere AI Agents mithilfe eines Token-Bucket-Systems.
Zusammenfassung generiert aus dem README des Projekts
Über ForgingStack Ration MCP server
ForgingStack Ration bietet eine zentrale Möglichkeit, gemeinsame Quoten-Pools zu verwalten und Rate Limits für mehrere AI Agents durchzusetzen. Es nutzt ein Token-Bucket-System, um Überschreitungen zu verhindern, indem Kapazität, Refill-Raten, Burst-Limits und Limits pro Agent kontrolliert werden. Dieser Server agiert als öffentlicher Client, der mit einem privaten Service verbunden ist und für den Betrieb einen API-Key sowie Credits benötigt. Nutzer müssen ihre E-Mail nach der Registrierung verifizieren, um Pool-Erstellungen und Draw-Operationen zu ermöglichen.
Entwickler interagieren mit dem Service über eine Reihe von Tools, darunter create_pool, draw, get_pool, list_pools, topup_pool, delete_pool, get_credits und get_receipt. Das System verfolgt jeden Draw-Versuch, egal ob erlaubt oder abgelehnt, indem es einen hash-chained Receipt ausstellt. Der Server läuft lokal via stdio, nachdem die Umgebungsvariable FORGINGSTACK_API_KEY gesetzt wurde. Die Kosten basieren auf Pool-Erstellungen und Draw-Calls; 1.000 Credits sind für 10 $ via Stripe erhältlich.
Was du damit machen kannst
- 1Nutzungslimits pro Agent erzwingenVerhindere, dass ein einzelner Agent eine bestimmte Anzahl von Draws innerhalb eines rollierenden 60-Minuten-Fensters überschreitet.
- 2Plötzliche Ressourcen-Spikes verhindernStelle sicher, dass die Aktivitäten der Agents das vordefinierte Burst-Limit für einen bestimmten Pool nicht überschreiten.
- 3Verbrauchshistorie der Agents auditierenRufe einen hash-chained Receipt für jeden Versuch ab, Einheiten aus einem Pool zu ziehen, um die Aktivitäten zu verifizieren.
- 4Gemeinsame Token-Ressourcen verwaltenErstelle einen Pool mit spezifischer Kapazität und Refill-Raten, um Einheiten auf mehrere Agents zu verteilen.
Geschrieben aus dem README des Projekts. Jeder Use Case wurde gegen ein Zitat daraus geprüft.
So installierst du ForgingStack Ration MCP
Formate geprüft am 10. Nov. 2026ForgingStack Ration MCP in Claude Code installieren
$ claude mcp add --env FORGINGSTACK_API_KEY=<YOUR_FORGINGSTACK_API_KEY> forgingstack-ration -- uvx forgingstack-rationForgingStack Ration MCP in Cursor installieren
~/.cursor/mcp.json
{
"mcpServers": {
"forgingstack-ration": {
"command": "uvx",
"args": [
"forgingstack-ration"
],
"env": {
"FORGINGSTACK_API_KEY": "<YOUR_FORGINGSTACK_API_KEY>"
}
}
}
}ForgingStack Ration MCP in VS Code installieren
.vscode/mcp.json
{
"servers": {
"forgingstack-ration": {
"type": "stdio",
"command": "uvx",
"args": [
"forgingstack-ration"
],
"env": {
"FORGINGSTACK_API_KEY": "<YOUR_FORGINGSTACK_API_KEY>"
}
}
}
}ForgingStack Ration MCP in Claude Desktop installieren
claude_desktop_config.json
{
"mcpServers": {
"forgingstack-ration": {
"command": "uvx",
"args": [
"forgingstack-ration"
],
"env": {
"FORGINGSTACK_API_KEY": "<YOUR_FORGINGSTACK_API_KEY>"
}
}
}
}ForgingStack Ration MCP in Codex installieren
~/.codex/config.toml
[mcp_servers.forgingstack-ration] command = "uvx" args = ["forgingstack-ration"] [mcp_servers.forgingstack-ration.env] FORGINGSTACK_API_KEY = "<YOUR_FORGINGSTACK_API_KEY>"
ForgingStack Ration MCP in Gemini CLI installieren
~/.gemini/settings.json
{
"mcpServers": {
"forgingstack-ration": {
"command": "uvx",
"args": [
"forgingstack-ration"
],
"env": {
"FORGINGSTACK_API_KEY": "<YOUR_FORGINGSTACK_API_KEY>"
}
}
}
}Konfiguration
FORGINGSTACK_API_KEYErforderlichSecretAPI key for Ration. Sign up via POST /v1/signup (key shown once).
FORGINGSTACK_API_BASERation API base URL. Live default.
| Name | Beschreibung | Typ |
|---|---|---|
| FORGINGSTACK_API_KEY | API key for Ration. Sign up via POST /v1/signup (key shown once). | ErforderlichSecret |
| FORGINGSTACK_API_BASE | Ration API base URL. Live default. |
Automatisierte Checks
Geluften am 14. Nov. 2026Vollständiger Bericht →Unsere automatisierten Checks bestanden. Das ist kein Security-Audit: Lies den Code und gib dem Server nur den minimal notwendigen Zugriff. Wie die Checks funktionieren
- Source Repository verknüpft und erreichbarjdkabattles/forgingstack-ration is public and reachablegithub.com/jdkabattles/forgingstack-ration ↗Bestanden
- Paket nennt dieses Repository als QuelleNicht geprüft
- Build-Herkunft (Sigstore-Attestierung)No build attestation published for this releaseNicht geprüft
- Open Source Lizenz (OSI)MITspdx.org/licenses/MIT.html ↗Bestanden
- Commit oder Release im letzten JahrLast commit or release 2026-11-08github.com/jdkabattles/forgingstack-ration ↗Bestanden
- OpenSSF ScorecardNicht geprüft
- Package-Name ähnelt keinem populären PackageNo popular package one edit away from forgingstack-rationBestanden
- Kein kritischer Hinweis im Paket oder seinen Abhängigkeiten1 resolved dependencies checked; no critical advisoryosv.dev ↗Bestanden
- Keine versteckten Anweisungen an das Modell0 tool descriptions and the README read; no override phrases, credential paths or hidden charactersBestanden
- Destruktive Tools sind markiertNicht geprüft
- Remote-Endpoint beantwortet den MCP-HandshakeNicht geprüft
README
Auf GitHub ansehenForgingStack 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
ForgingStack Ration MCP Fragen
Wie füge ich ForgingStack Ration MCP zu Claude Code hinzu?
Führe claude mcp add --env FORGINGSTACK_API_KEY=<YOUR_FORGINGSTACK_API_KEY> forgingstack-ration -- uvx forgingstack-ration in deinem Terminal aus. Füge --scope user hinzu, damit der Server in jedem Projekt verfügbar ist.
Wie füge ich ForgingStack Ration MCP zu Cursor hinzu?
Öffne ~/.cursor/mcp.json und füge den Server unter mcpServers hinzu, mit der Cursor-Config aus dem Installationsabschnitt oben.
Wie viel kostet die Nutzung des Service?
Es kostet 1 Credit pro Pool-Erstellung und 1 Credit pro Draw-Call, auch wenn der Draw abgelehnt wird. Top-ups, Pool-Reads, Listen und Löschvorgänge sind kostenlos.
Wie erhalte ich einen API-Key?
Du kannst dich über einen POST-Request an den Signup-Endpoint mit deiner E-Mail registrieren. Du erhältst deinen API-Key nur einmal und musst ihn sofort speichern.
Was passiert, wenn ein Draw abgelehnt wird?
Ein Draw kann abgelehnt werden, wenn das Burst-Limit überschritten wird, der Pool nicht genügend Einheiten hat oder wenn der Agent sein Limit pro Agent innerhalb eines rollierenden 60-Minuten-Fensters überschreitet.