토큰 버킷 시스템을 사용하여 여러 AI agent를 위한 공유 할당량 풀을 관리하고 속도 제한을 적용합니다.
다른 이름 jdkabattles/forgingstack-ration, forgingstack-ration
- 스타
- 0
- Tools
- —
- 다운로드, 30일
- —
- 최신 버전
- 0.1.0
- 마지막 커밋
- 2026년 11월 8일
- 라이선스
- MIT
ForgingStack Ration MCP란?
ForgingStack Ration은(는) MCP server입니다. 토큰 버킷 시스템을 사용하여 여러 AI agent를 위한 공유 할당량 풀을 관리하고 속도 제한을 적용합니다.
프로젝트 README에서 생성된 요약
ForgingStack Ration MCP server 정보
ForgingStack Ration은 여러 AI agent를 위한 공유 할당량 풀을 관리하고 속도 제한을 적용하는 중앙 집중식 방법을 제공합니다. 토큰 버킷 시스템을 사용하여 용량, 리필 속도, 버스트 제한 및 agent별 제한을 제어함으로써 초과 사용을 방지합니다. 이 server는 프라이빗 서비스에 연결되는 퍼블릭 클라이언트로 작동하며, 기능을 사용하려면 API key와 credit이 필요합니다. 사용자는 풀 생성 및 draw 작업을 활성화하려면 가입 후 이메일 인증을 완료해야 합니다.
개발자는 create_pool, draw, get_pool, list_pools, topup_pool, delete_pool, get_credits, get_receipt를 포함한 도구 세트를 통해 서비스와 상호작용합니다. 시스템은 해시 체인 방식의 영수증을 발행하여 허용되거나 거부된 모든 draw 시도를 추적합니다. server는 FORGINGSTACK_API_KEY 환경 변수를 설정한 후 stdio를 통해 로컬에서 실행됩니다. 비용은 풀 생성 및 draw 호출을 기준으로 계산되며, Stripe를 통해 10달러로 1,000 credit을 구매할 수 있습니다.
활용 사례
- 1agent별 사용 제한 적용개별 agent가 60분 이동 창 내에서 특정 횟수 이상의 draw를 수행하지 못하도록 제한합니다.
- 2갑작스러운 리소스 급증 방지agent 활동이 특정 풀에 설정된 버스트 제한을 초과하지 않도록 보장합니다.
- 3agent 소비 이력 감사풀에서 유닛을 draw하려는 모든 시도에 대해 해시 체인 영수증을 조회하여 활동을 검증합니다.
- 4공유 토큰 리소스 관리특정 용량과 리필 속도를 가진 풀을 생성하여 여러 agent에게 유닛을 분배합니다.
프로젝트의 README를 바탕으로 작성되었습니다. 모든 활용 사례는 해당 내용의 인용문과 대조하여 확인합니다.
ForgingStack Ration MCP 설치 방법
형식 확인: 2026년 11월 10일Claude Code에 ForgingStack Ration MCP 설치
$ claude mcp add --env FORGINGSTACK_API_KEY=<YOUR_FORGINGSTACK_API_KEY> forgingstack-ration -- uvx forgingstack-rationCursor에 ForgingStack Ration MCP 설치
~/.cursor/mcp.json
{
"mcpServers": {
"forgingstack-ration": {
"command": "uvx",
"args": [
"forgingstack-ration"
],
"env": {
"FORGINGSTACK_API_KEY": "<YOUR_FORGINGSTACK_API_KEY>"
}
}
}
}VS Code에 ForgingStack Ration MCP 설치
.vscode/mcp.json
{
"servers": {
"forgingstack-ration": {
"type": "stdio",
"command": "uvx",
"args": [
"forgingstack-ration"
],
"env": {
"FORGINGSTACK_API_KEY": "<YOUR_FORGINGSTACK_API_KEY>"
}
}
}
}Claude Desktop에 ForgingStack Ration MCP 설치
claude_desktop_config.json
{
"mcpServers": {
"forgingstack-ration": {
"command": "uvx",
"args": [
"forgingstack-ration"
],
"env": {
"FORGINGSTACK_API_KEY": "<YOUR_FORGINGSTACK_API_KEY>"
}
}
}
}Codex에 ForgingStack Ration MCP 설치
~/.codex/config.toml
[mcp_servers.forgingstack-ration] command = "uvx" args = ["forgingstack-ration"] [mcp_servers.forgingstack-ration.env] FORGINGSTACK_API_KEY = "<YOUR_FORGINGSTACK_API_KEY>"
Gemini CLI에 ForgingStack Ration MCP 설치
~/.gemini/settings.json
{
"mcpServers": {
"forgingstack-ration": {
"command": "uvx",
"args": [
"forgingstack-ration"
],
"env": {
"FORGINGSTACK_API_KEY": "<YOUR_FORGINGSTACK_API_KEY>"
}
}
}
}구성
FORGINGSTACK_API_KEY필수비밀API key for Ration. Sign up via POST /v1/signup (key shown once).
FORGINGSTACK_API_BASERation API base URL. Live default.
| 이름 | 설명 | 유형 |
|---|---|---|
| FORGINGSTACK_API_KEY | API key for Ration. Sign up via POST /v1/signup (key shown once). | 필수비밀 |
| FORGINGSTACK_API_BASE | Ration API base URL. Live default. |
자동 검사
2026년 11월 14일에 실행됨전체 보고서 →자동 검사를 통과했습니다. 이는 보안 감사가 아닙니다. 코드를 직접 읽고 서버에 필요한 최소한의 권한만 부여하십시오. 검사 방식
- 소스 저장소 연결 및 접근 가능jdkabattles/forgingstack-ration is public and reachablegithub.com/jdkabattles/forgingstack-ration ↗통과
- 패키지가 이 저장소를 소스로 지정검사되지 않음
- 빌드 출처(Sigstore 증명)No build attestation published for this release검사되지 않음
- 오픈 소스 라이선스 (OSI)MITspdx.org/licenses/MIT.html ↗통과
- 최근 1년 내 커밋 또는 릴리스Last commit or release 2026-11-08github.com/jdkabattles/forgingstack-ration ↗통과
- OpenSSF Scorecard검사되지 않음
- 패키지 이름이 인기 패키지와 유사하지 않음No popular package one edit away from forgingstack-ration통과
- 패키지와 의존성에 심각한 보안 권고 없음1 resolved dependencies checked; no critical advisoryosv.dev ↗통과
- 모델에 대한 숨겨진 지침 없음0 tool descriptions and the README read; no override phrases, credential paths or hidden characters통과
- 파괴적인 도구에 라벨 표시됨검사되지 않음
- 원격 endpoint가 MCP 핸드셰이크에 응답검사되지 않음
README
GitHub에서 보기ForgingStack 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 질문
ForgingStack Ration MCP를 Claude Code에 추가하려면 어떻게 하나요?
터미널에서 claude mcp add --env FORGINGSTACK_API_KEY=<YOUR_FORGINGSTACK_API_KEY> forgingstack-ration -- uvx forgingstack-ration를 실행합니다. 모든 프로젝트에서 사용할 수 있게 하려면 --scope user를 추가합니다.
ForgingStack Ration MCP를 Cursor에 추가하려면 어떻게 하나요?
~/.cursor/mcp.json를 열고 mcpServers 아래에 서버를 추가합니다. 위 설치 섹션에 표시된 Cursor 구성을 사용합니다.
서비스 이용 비용은 얼마인가요?
풀 생성 시 1 credit, draw 호출 시 1 credit이 소모되며, draw가 거부된 경우에도 비용이 발생합니다. Top-up, 풀 조회, 목록 확인 및 삭제는 무료입니다.
API key는 어떻게 발급받나요?
signup 엔드포인트로 이메일을 포함한 POST 요청을 보내 가입할 수 있습니다. API key는 단 한 번만 발급되므로 즉시 저장해야 합니다.
draw가 거부되면 어떻게 되나요?
버스트 제한을 초과하거나, 풀의 잔여 유닛이 부족하거나, 또는 agent가 60분 이동 창(rolling window) 내의 agent별 제한을 초과할 경우 draw가 거부될 수 있습니다.