AgentGuard

io.github.MerchantGuard由 GitHub 帳號 MerchantGuard 發布v0.3.1更新於 Oct 27, 2026

Local spend caps, kill-switch blocking and Ed25519-signed receipts for AI agent tool calls.

已驗證STDIO僅桌面安全與監控AI 與機器學習

概覽

AI 產生的概覽

本機 MCP 伺服器,為 AI 代理的模型呼叫提供花費上限、攔截阻擋與 Ed25519 簽章的雜湊鏈收據。

可以做什麼
  • 在模型呼叫執行前做出放行或阻擋判定,受每日與單次花費上限約束
  • 驗證簽章收據,只要更動任一簽章位元組即驗證失敗
  • 將租戶的決策帳本匯出為可驗證的雜湊鏈,包含先前程序執行的紀錄
  • 為自架模型登錄價格,並預覽某模型或端點將被證明的內容
  • 查看目前生效的上限、租戶、決策數量與簽署者指紋
適用情境
適用於代理直接呼叫模型的情境,尤其是自架模型——此時供應商的花費儀表板、速率限制與稽核日誌都不復存在,而你需要本機預算限制與可驗證的呼叫來源紀錄。
執行需求
透過 npx 以 stdio 在本機執行,需要 Node.js 20.19 或更新版本。選用環境變數可設定花費上限、租戶、帳本模式與主目錄;選用的 AGENTGUARD_LICENSE_KEY 用於授權驗證與席次註冊。首次執行會產生簽章金鑰對。
安裝前請注意
它會在 AGENTGUARD_HOME 下寫入簽章金鑰對與決策帳本,請保護該目錄。設定授權後會聯繫授權與席次服務;啟用遙測需主動開啟且不含內容,兩者都不傳送提示詞、工具內容或收據。收據會記錄模型身分、權重來源國與託管司法管轄區,請留意所傳送的詮釋資料。本軟體屬治理工具,不構成法律或法遵建議。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 AgentGuard,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

@agentguard-run/mcp

[smithery badge]

AgentGuard® as an MCP server: local spend caps and Ed25519-signed provenance receipts for AI agent actions, usable from any Model Context Protocol host (Claude Desktop, Claude Code, Cursor, Cline, or your own agent runtime).

Zero data plane. Tools accept metadata only: model names, token counts, endpoint URLs. Prompts and completions never pass through this server, and their content stays on your machine. Receipts are content-free.

A configured license uses the license and seat service. Optional activation telemetry requires consent and can be disabled with AGENTGUARD_NO_BEACON=1. Neither path sends prompts, tool content or receipts.

Install

json
{  "mcpServers": {    "agentguard": {      "command": "npx",      "args": ["-y", "@agentguard-run/mcp"]    }  }}

Optional environment variables:

VariableDefaultMeaning
AGENTGUARD_MCP_DAILY_CAP_CENTS500Hard per-day spend cap (block on exceed)
AGENTGUARD_MCP_PER_CALL_CAP_CENTS100Hard per-call spend cap (block on exceed)
AGENTGUARD_MCP_TENANTmcp-localTenant scope stamped into receipts
AGENTGUARD_HOME~/.agentguardSigning key and decision-ledger directory
AGENTGUARD_MCP_LEDGERndjsonPersist signed decisions; memory restores process-only storage
AGENTGUARD_MCP_DISABLE_COST_OVERRIDEunset1 discards and prevents pricing overrides
AGENTGUARD_ACTOR_DIGESTunset1 stores SHA-256 digests of actor IDs; provider stays readable

A signing keypair is generated on first run and persisted to <AGENTGUARD_HOME>/mcp-signing.json (0600). Signed decisions are appended to <AGENTGUARD_HOME>/<tenant>/decisions.ndjson, including the public verification key. Exports include prior process runs and new decisions extend the existing chain. Tenant directory names use the spend store's filename normalization. Spend counters remain process-local, as in earlier versions.

All tools accept optional agent_id, task_id, and workflow_id identifier parameters. spend_decide passes these to the call context, signing them as actor.agentId, actor.taskId, and actor.workflowId; the configured tenant becomes actor.tenantId. Other tools accept these metadata fields without recording a spend decision. Prompts, arbitrary content, credentials, and filesystem paths are rejected as IDs. Existing calls without these parameters keep working.

Tools

  • spend_decide: gate a model call before it runs. Returns allow/block plus a signed, hash-chained receipt recording model identity, weights origin country (China-origin families such as GLM, DeepSeek, Qwen, and Kimi are flagged automatically), hosting jurisdiction, and retention posture. Unrecognized endpoints (vLLM, Ollama, TGI, your own cluster) route as self-hosted: zero retention, your jurisdiction.
  • verify_receipt: independently verify any receipt. Change one signed byte and verification fails.
  • export_receipts: export the tenant decision ledger as a verified hash chain, including earlier process runs. Memory mode exports only the current process.
  • set_model_cost: register pricing for self-hosted models (AgentGuard fails closed on unknown costs).
  • provenance_preview: see what would be attested for a model/endpoint without spending.
  • spend_status: active caps, tenant, decision count, signer fingerprint.

Why

When agents move from hosted APIs to self-hosted models, the provider's spend dashboard, rate limits, and audit logs disappear with the provider. AgentGuard puts them back, locally, and adds something hosted providers never gave you: a cryptographic receipt an outsider can verify without trusting you or us.

More: https://agentguard.run/sovereign/ and https://agentguard.run/sovereign/guide/

Verify independently

Any receipt can be checked off-platform at https://agentguard.run/verify or with verify_receipt and the signer public key from spend_status.

Local release verification

Requires Node.js 20.19 or later. Run npm ci, npm test, and npm run scan:release from this package or its public mirror. The lockfile uses the published spend 0.19.0 package; no private sibling checkout is required.

Release checklist: keep package.json, the server version in src/index.ts, and both versions in server.json aligned; run the tests and release scan; publish npm first, publish with mcp-publisher, then verify the registry's active entry. See the registry release guide for exact commands and the public mirror allowlist.

The official registry name is io.github.MerchantGuard/agentguard. Its package entry runs @agentguard-run/mcp locally through npx and stdio.

AgentGuard® is a registered trademark of Dunecrest Ventures Inc. US patent filings pending. This package is governance software, not legal or compliance advice.

來源:README.md,提交 811f4fa

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

1
  1. v0.3.1最新Sep 21, 2026

評分

已滿足適用檢查項的 40%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分

    請在儲存庫或註冊中心條目中宣告授權條款。