getsentry / getsentry/XcodeBuildMCP

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

オープン
#516 コメント 1 件 リアクション 0 件 担当者 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
見積もり時間
1週間以上
活発さ
活発
明瞭さ
おおむね明確
初心者へのやさしさ
35/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。