getsentry / getsentry/XcodeBuildMCP

Feature Suggestion: Optional token metering & paid API key support via `neuforge-pay`

未关闭
#516 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
stale
主要语言
TypeScript
星标
6.4k
派生
319
PR 合并指标
30 天内没有已合并 PR

描述

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:
```python
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!

贡献指南

这个仓库没有索引到贡献指南

调研方向

Start by reviewing the proposed /v1/query integration and the neuforge_pay meter_endpoint example, then inspect the repository's TypeScript MCP server entry points and request handling. Done would require an agreed approach for optional metering, paid API keys, token-cost calculation, and session budget enforcement, with the relevant tests identified before implementation.

由索引模型根据 Issue 内容生成。

评估

技术栈
typescript
领域
api, backend-api-design, payments
Issue 类型
功能
难度
5/5
预计耗时
一周以上
活跃度
活跃
描述清晰度
基本清楚
新手友好度
35/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。