
Agent Spend Policy Mcp
io.github.dingdawg由 GitHub 账号 dingdawg 发布v0.1.1更新于 Oct 25, 2026
Local agent spend-policy checks. No funds, keys, payment authority, or network access.
概览
本地 MCP 服务器,按给定策略评估拟议的智能体支出操作,返回 ELIGIBLE、DENY 或 STEP_UP 及原因代码。
- 可以做什么
- 按给定策略评估拟议的支出操作:传入评估时间、操作内容以及以整数微单位字符串表示的已支出金额,返回 ELIGIBLE、DENY 或 STEP_UP 之一及稳定的原因代码。评估是确定性的本地计算,无副作用,可作为付款前的试运行依据。
- 适用场景
- 当助手需要对拟议的支出操作做本地、确定性的策略检查时使用,例如在独立支付系统执行前进行把关或试运行。它不是支付或记账系统。
- 运行要求
- 作为桌面本地 stdio 进程运行,通过 npx 从 npm 包启动。未声明账户、API 密钥、环境变量或请求头,且不发起网络请求。
安装
在 SourceWeft 中
- 打开 控制台中的 Agent Spend Policy Mcp,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
DingDawg Agent Spend Policy MCP
A small, local MCP server that deterministically evaluates whether a proposed agent spend action matches a supplied policy.
It returns one of ELIGIBLE, DENY, or STEP_UP, with a stable reason code.
ELIGIBLE is local policy evidence only. It is not payment authorization.
Safety boundary
This package does not hold funds, private keys, payment credentials, customer data, or settlement authority. It does not sign, send, settle, custody, or record payments. It makes no network requests.
A production payment adapter needs separate, independently verified controls for authenticated policy/action provenance, canonical payload hashing, durable atomic budget reservation and replay protection, customer-controlled signing, rail validation, and settlement reconciliation.
Install
Configure it as a local stdio MCP server:
Tool
evaluate_spend_policy accepts an evaluation time, a policy, a proposed action,
and the already-spent amount. All money is passed as integer micro-unit strings,
never JavaScript floating-point numbers.
The caller supplies the clock and already-spent value; therefore this tool is safe for dry runs and local evidence, not a replacement for a trusted payment or accounting system.
Agent contract
The versioned machine-readable contract is
capabilities.json. It describes the only tool this
package exposes, its required inputs, its three possible outcomes, and its
non-negotiable safety boundary.
- Transport: local stdio MCP
- Tool:
evaluate_spend_policy - Required inputs:
evaluationTime,policy,action, andalreadySpentMicros - Outputs:
ELIGIBLE,DENY, orSTEP_UP, each with a stable reason code - Side effects: none
- Credentials, payment execution, custody, signing, settlement, and network access: not supported
The manifest is package-source evidence for this release, not a promise of a
hosted agent-discovery endpoint. ELIGIBLE remains local policy evidence only,
not payment authorization.
Development
来源:README.md,提交 8e959c2
工具
0版本历史
1- v0.1.1最新Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分
