关于 Run Budget Guard
一次 Agent 运行中,所有子 Agent 共用金额、令牌、调用次数和时间上限
配置
远程服务无需本地安装。选择你使用的客户端,复制配置或使用一键安装。
服务地址
https://budget.cloudforbots.com/mcp一键复制安装命令
Claude CodeTerminal
claude mcp add --transport http com-botrecipe-budget https://budget.cloudforbots.com/mcpCursor.cursor/mcp.json
{"mcpServers":{"com-botrecipe-budget":{"type":"http","url":"https://budget.cloudforbots.com/mcp"}}}在 Cursor 中打开VS Code.vscode/mcp.json
{"servers":{"com-botrecipe-budget":{"type":"http","url":"https://budget.cloudforbots.com/mcp"}}}在 VS Code 中打开Claude Desktopclaude_desktop_config.json
{"mcpServers":{"com-botrecipe-budget":{"type":"http","url":"https://budget.cloudforbots.com/mcp"}}}Windsurf~/.codeium/windsurf/mcp_config.json
{"mcpServers":{"com-botrecipe-budget":{"serverUrl":"https://budget.cloudforbots.com/mcp"}}}命令在终端中运行;JSON 粘贴到对应客户端的 MCP 配置后重启。需要授权的服务会在首次连接时提示登录。
工具
6| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
| mode | enum | 否 | shadow = 仅监控:跟踪支出并标记上限本来会阻止运行的位置,但绝不阻止(免费)。enforce = 达到上限时返回 allowed=false(Pro)。默认值:Pro 使用 enforce,免费版使用 shadow。shadow | enforce |
| label | string | 否 | 说明本次运行的用途,例如 "nightly code cleanup"。 |
| max_usd | number | 否 | 整次运行的美元金额上限(按你对每次调用的估算)。 |
| max_calls | integer | 否 | 整次运行的模型/工具调用次数上限。 |
| ttl_hours | integer | 否 | 句柄有效期(免费版最长 24 小时,Pro 最长 168 小时)。默认 24 小时。 |
| max_tokens | integer | 否 | 整次运行的令牌数上限(输入 + 输出)。 |
| max_seconds | integer | 否 | 从现在起计算的墙钟时间上限(秒)。 |
详细介绍
维护者还没有提供详细介绍,可以先查看代码仓库中的 README。
评论
支持 Markdown
一个开放协议,规定了 AI 应用如何以统一方式连接外部工具与数据源。客户端负责与模型对话,MCP 服务负责提供工具、资源和提示模板,两者通过标准消息通信,同一个服务可以被不同客户端复用。