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

オープン
#534 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
28/100
issue の種類
機能追加
明瞭さ
説明が足りない
活発さ
活発
技術スタック
typescript

調査の方向性

payloadにはファイル、テスト、エントリポイントが記載されていないため、まずTypeScript MCP serverのrequestまたはtoolの登録箇所と依存関係の設定を探してください。実装前に、オプションのメータリングと有料API keyがroadmapに適合するかを確認し、サポートする課金の境界と予算の動作を定義してください。完了とするには、maintainerが承認した設計とテストが必要です。

索引モデルが 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 はありません

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

getsentry/XcodeBuildMCP のほかの issue

getsentry/XcodeBuildMCP の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

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

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