Feature Suggestion: Optional token metering & paid API key support via `neuforge-pay`
還沒有人認領這個 Issue。
評估
- 難度
- 5/5
- 預估耗時
- 一週以上
- 新手友好度
- 35/100
- Issue 類型
- 功能
- 描述清晰度
- 基本清楚
- 活躍度
- 活躍
- 技術堆疊
- typescript
研究方向
先檢視提議的 /v1/query 整合和 neuforge_pay 的 meter_endpoint 範例,接著檢查儲存庫的 TypeScript MCP 伺服器進入點與請求處理。完成的條件是:針對選用的計量、付費 API 金鑰、token 成本計算及工作階段預算強制執行達成一致的方案,並在實作前確認相關測試。
由索引模型根據 Issue 內容生成。
描述
Hi @getsentry,
Love the work on getsentry/XcodeBuildMCP! As usage grows across AI agent frameworks, server compute costs can start adding up quickly. We've also seen developers report that their autonomous agents accidentally burn through thousands of dollars in a single session because traditional payment rails lack built-in agent guardrails.
Would you be open to adding an optional usage metering & billing decorator using neuforge-pay? It acts as a proactive Spend Firewall and Merchant of Record for MCP servers. In 3 lines of code, it meters tokens, calculates live LLM COGS, and proactively blocks agent transactions that exceed a strict session budget limit (to prevent surprise bills).
Example Integration:
from neuforge_pay import meter_endpoint
@app.get("/v1/query")
@meter_endpoint(price_charged_usd=0.05, model_name="claude-3-5-sonnet", session_budget_usd=10.00)
async def query_endpoint():
...
Happy to submit a clean PR if this aligns with your roadmap!
- 主要語言
- TypeScript
- 星號
- 6.4k
- 分支
- 320
- PR 合併指標
- 30 天內沒有已合併 PR
貢獻指南
這個儲存庫沒有索引到貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
getsentry/XcodeBuildMCP 的其他 Issue
-
難度 2/5 1-3 小時 新手友好度 68/100
getsentry/XcodeBuildMCP#520 ·
-
難度 2/5 1-3 小時 新手友好度 70/100
getsentry/XcodeBuildMCP#495 ·
-
難度 4/5 3-5 天 新手友好度 35/100
getsentry/XcodeBuildMCP#537 ·
-
難度 4/5 3-5 天 新手友好度 45/100
getsentry/XcodeBuildMCP#535 ·
-
難度 5/5 一週以上 新手友好度 28/100
getsentry/XcodeBuildMCP#534 ·
查看 getsentry/XcodeBuildMCP 的全部 Issue
相似的 Issue
-
難度 2/5 1-3 小時 新手友好度 84/100
bcgov/bc-wallet-mobile#4761 · 1 則留言 ·
-
external-issue to-triage
難度 2/5 1-3 小時 新手友好度 88/100
-
area-deployment area-integrations triage:bot-seen
難度 2/5 半天 新手友好度 86/100
-
難度 2/5 1-3 小時 新手友好度 82/100
-
refactor
難度 2/5 1-3 小時 新手友好度 84/100