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 小时 新手友好度 70/100
-
难度 2/5 1-3 小时 新手友好度 75/100
mksglu/context-mode#1200 ·
-
难度 2/5 1-3 小时 新手友好度 75/100
jaegertracing/jaeger-ui#4506 ·
-
area:desktop area:ui bug platform:macos
难度 2/5 1-3 小时 新手友好度 75/100
anthropics/claude-code#96687 ·
-
good first issue
难度 1/5 1 小时以内 新手友好度 95/100
AOSSIE-Org/DebateAI#582 · 2 条评论 ·