
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 分
