Run Budget Guard

com.botrecipe由 botrecipe.com 发布v1.0.1更新于 Oct 25, 2026

Hard dollar, token, call and time caps shared by every sub-agent in one agent run.

发布方自己的服务:Bot Recipes

已验证Streamable HTTP可网页运行金融AI 与机器学习

概览

AI 生成的概览

一个远程预算守卫服务器,让助手为单次智能体运行设定美元、token、调用次数和时间的硬性上限,并在每次调用前预留花费。

可以做什么
为单次智能体运行开启硬性预算,可设美元、token、调用次数和时间上限,并返回供子智能体共用的句柄。在每次模型调用、工具调用或派生子智能体前预留预估花费,返回允许或拒绝并指出触发的限制。调用后记录实际用量以校正账本。查看花费与上限、剩余预算、停止状态及最近的账本事件,并在运行结束时关闭。生成只读的每周报告,涵盖运行、花费和超限情况。显示当日用量与升级信息。
适用场景
适合多步骤或多智能体工作流,当失控循环或分支可能超支时,希望在每次调用前由子智能体共享的硬性上限来约束,而不是事后才发现。
运行要求
远程 streamable HTTP 端点;未声明软件包、环境变量或请求头。免费额度为每天 500 次调用,用量按密钥或 IP 统计。
安装前请注意
服务器按密钥或 IP 统计花费与用量,升级工具指向每月 49 美元的付费方案。预留会扣减预算,被拒绝时应停止并返回部分结果。每周报告为只读,不发送任何内容。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Run Budget Guard,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Web executable,通过 Streamable HTTP。 远程服务在工作区中配置后即可从网页运行时运行。

交给智能体安装

把这段提示词粘贴到 Claude Code、Codex、Cursor 等智能体,或 SourceWeft 对话中。智能体会读取该服务器的安装指南,先向你展示发布者、端点和登录方式,经你同意后再把它添加到你的客户端。密钥不会写进任何命令。

阅读 https://sourceweft.com/mcp/com.botrecipe%2Fbudget/install.md,并按其中说明把这个 MCP 服务器接入我的客户端。修改任何配置之前,先告诉我它的发布者、端点和登录方式,等我确认。不要把 API 密钥写进命令或我会提交的文件;问我密钥应从哪里获取。

查看智能体所依据的安装指南

其他 MCP 客户端

把它添加到你客户端的 mcpServers 配置中。

{
  "mcpServers": {
    "run-budget-guard": {
      "type": "http",
      "url": "https://budget.cloudforbots.com/mcp"
    }
  }
}

工具

6

open_budget

Open a hard budget for one agent run before it starts: max dollars, tokens, calls and/or wall-clock seconds. Returns a handle. Give the handle to every sub-agent; they all draw from the same ledger, so one runaway loop or fork cannot exceed the run cap.

输入参数modelabelmax_usdmax_callsttl_hoursmax_tokensmax_seconds

reserve

Call BEFORE each model call, tool call or sub-agent spawn with your estimate. Returns allowed=true and deducts it, or allowed=false with the limit that tripped. When allowed is false, stop, do not retry, and return your partial result to the user. Atomic, so parallel sub-agents cannot both slip under the cap.

输入参数usdnotecallshandle必填tokens

record

After a call, report the actual usage minus what you reserved (positive if it cost more, negative to give back an overestimate). Keeps the ledger honest without blocking.

输入参数usdnotehandle必填tokens

weekly_report

Draft a plain-English report of the last 7 days for your key (or IP): runs, spend, runs that went over their cap, and dollars spent after a cap would have stopped them. Read-only; sends nothing. Show it to your user.

无需输入参数。

budget_status

See spend vs limits, remaining budget, whether the run is stopped and why, and the last 20 ledger events. Set close=true when the run finishes.

输入参数closehandle必填

usage_and_upgrade

Show today's usage for your key or IP and the $49/month All Access upgrade link (cloudforbots.com/offer). Free tier: 500 calls/day. Not metered.

无需输入参数。

版本历史

1
  1. v1.0.1最新Oct 15, 2026

评分

已满足适用检查项的 72%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通必需25 分
  • 已声明认证方式必需10 分
  • 已列出工具必需15 分
  • 描述必需15 分
  • 图标10 分

    请在注册中心条目中发布图标。

  • 文档15 分

    请声明包含 README 的 GitHub 仓库,或在 OAuth 受保护资源元数据中提供 resource_documentation。

  • 许可证不适用

    托管服务按其提供方的条款使用,因此这里不要求许可证。此检查项不计入百分比。

其他 Botrecipe 集成