agentguard — policy proxy for agent tool calls

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

Free spend report from an agent log, no key. Hosted proxies: caps, audit export, buy calls.

已驗證Streamable HTTP可網頁執行雲端與基礎設施安全與監控資料與分析

概覽

AI 產生的概覽

面向代理工具呼叫的託管政策代理:可建立代理、設定上限與政策、檢視執行、匯出稽核鏈並統計花費。

可以做什麼
  • 在 MCP 伺服器前建立並設定託管代理,回傳代理網址與金鑰
  • 替換代理政策,涵蓋模式、上游、分類、上限、迴圈、試執行、核准、告警與漂移
  • 檢視單次執行:呼叫次數、含決策的時間軸、試執行變更、帳本與稽核鏈驗證
  • 匯出帶雜湊鏈的稽核項目與 Merkle 根,用於爭議處理與問卷回覆
  • 依代理日誌統計花費,包括總額、依工具呼叫、迴圈,以及哪條上限原本可阻止超支
  • 依已記錄的呼叫推薦最小權限工具白名單,並讀取機器可讀的定價資訊
適用情境
適合代理會呼叫大量工具、需要花費上限、迴圈偵測、核准關卡與可稽核紀錄的情況;也適合只想從現有代理日誌免費取得花費報告時使用。
執行需求
遠端 streamable HTTP 端點,無需本機安裝。建立代理、修改政策、檢視執行、匯出稽核與推薦白名單需以 Authorization Bearer 標頭傳入帳戶金鑰;花費報告與定價工具無需金鑰。帳戶可透過註冊 API 建立。
安裝前請注意
帳戶金鑰是敏感憑證,透過 Authorization 標頭傳送。建立代理會回傳僅顯示一次的代理金鑰,之後由它保護被代理的 MCP 伺服器。政策可攔截、偽造或試執行工具呼叫,政策寫錯會改變代理能做的事。購買呼叫次數會從預付餘額扣款。稽核匯出包含已去識別化的參數。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 agentguard — policy proxy for agent tool calls,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Web executable,透過 Streamable HTTP。 遠端服務在工作區中設定後即可從網頁執行環境執行。

交給代理程式安裝

把這段提示詞貼上到 Claude Code、Codex、Cursor 等代理程式,或 SourceWeft 對話中。代理程式會讀取該伺服器的安裝指南,先向你展示發布者、端點和登入方式,經你同意後再把它新增到你的客戶端。金鑰不會寫進任何命令。

閱讀 https://sourceweft.com/mcp/io.github.agentwares%2Fagentguard-cloud/install.md,並按其中說明把這個 MCP 伺服器接入我的客戶端。修改任何設定之前,先告訴我它的發布者、端點和登入方式,等我確認。不要把 API 金鑰寫進命令或我會提交的檔案;問我金鑰應從哪裡取得。

檢視代理程式所依據的安裝指南

其他 MCP 客戶端

把它新增到你客戶端的 mcpServers 設定中。

{
  "mcpServers": {
    "agentguard-policy-proxy-for-agent-tool-c": {
      "type": "http",
      "url": "https://agentwares-agentguard.vercel.app/api/mcp"
    }
  }
}

README

該儲存庫沒有 README。

工具

7

okgate_get_pricing

Machine-readable pricing for okgate hosted: bands (Starter/Pro/Team) with included tool calls per month, the 80% soft alert and 150% hard stop, features, the free trial allowance, `per_call` — buying tool calls outright at POST /api/v1/calls from a prepaid balance, which is the one purchase here an unattended agent can complete — and `one_time`: reports a person pays for once on Stripe Checkout, such as the $49 EU AI Act Article 50 readiness report. Same data as /pricing.json.

無需輸入參數。

okgate_spend_report

Read an agent log and report what it spent: totals, calls by tool and by class, estimated dollars by rail, loops, the largest single run, and — for every overspend — the okgate band whose cap would have stopped it, the exact cap, and the call that would have tripped it. Needs no account and no key. The log is read in the request and discarded; nothing is stored. Accepts an agentwares audit export (`agentwares.audit/v1`), a Claude Code session `.jsonl`, or a CSV/JSONL of tool calls with any of `tool`, `ts`, `class`, `amount_usd`, `rail`, `run_id`, `model`, `input_tokens`, `output_tokens`. Caps come from the proxy's own default policy, so a band named here refuses exactly what it says it refuses. Buying that band is a checkout a person completes; the calls-only purchase an unattended agent can complete is in `okgate_get_pricing` instead.

輸入參數log必填detail

okgate_create_proxy

Create a hosted okgate proxy in front of an MCP server. Returns the proxy id, the per-customer MCP URL and the proxy key (shown once). Point your agent's MCP client at the URL with `Authorization: Bearer <key>`. Requires an account key.

輸入參數modeslug必填upstreamUrl必填upstreamName

okgate_set_policy

Replace a proxy's policy (YAML: mode, upstreams, classify, caps, loop, dry_run, approvals, alerts, chaos, drift). Validated before saving; takes effect within 30 seconds. Requires an account key.

輸入參數proxyId必填policyYaml必填

okgate_get_run

The incident-shaped report for one run: counts (calls, reads, writes, faked, blocked, spend), the call timeline with decisions, dry-run mutations (what would have changed), ledger entries and the audit-chain verification. Requires an account key.

輸入參數runId必填proxyId必填

okgate_export_audit

Export a run's hash-chained audit entries (prev_hash, hash, redacted args) with the Merkle root, for disputes and questionnaires. Verify offline with sha256(prev_hash + canonical(entry)). Requires an account key.

輸入參數runId必填proxyId必填

okgate_recommend_allowlist

Least-privilege recommendation from the proxy's recorded calls: the minimal tool allowlist, argument keys used per tool, and the upstream tools never used (remove them first). No LLM call here; apply it in the dashboard. Requires an account key.

輸入參數proxyId必填

版本歷史

1
  1. v0.2.0最新Sep 16, 2026

評分

已滿足適用檢查項的 75%

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

  • 近 30 天內可連通必需25 分
  • 已宣告認證方式必需10 分
  • 已列出工具必需15 分
  • 描述必需15 分
  • 圖示10 分
  • 文件15 分

    請宣告包含 README 的 GitHub 儲存庫,或在 OAuth 受保護資源後設資料中提供 resource_documentation。

  • 授權條款10 分

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