ForgingStack Mandate Check

io.github.jdkabattles由 GitHub 帳號 jdkabattles 發布v0.2.1更新於 Nov 4, 2026

Before your agent acts, check its mandate. One call, one receipt.

發布方自己的服務:check.tattoo: tattoo size and placement guide

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

概覽

AI 產生的概覽

將 AI 代理擬執行的動作與其授權範圍(mandate)比對,回傳通過/不通過的判定與雜湊鏈收據。

可以做什麼
  • 依授權範圍檢查代理擬執行的動作,回傳通過或不通過的判定、原因與收據
  • 依 id 查詢過往的授權檢查收據
  • 查詢目前 API 金鑰的剩餘額度
  • 檢查內容包含代理是否相符、委託主體是否相符、授權是否過期,以及動作是否在允許清單內
適用情境
適合代理在執行動作前需要確認該動作是否落在既定授權範圍內,並希望留下可供日後稽核之檢查收據的情境。
執行需求
以 stdio 方式在本機執行,透過 uvx 從 PyPI 套件啟動。需要 FORGINGSTACK_API_KEY(須向託管服務註冊取得),並能連線至 API 基礎位址(可用 FORGINGSTACK_API_BASE 設定)。檢查會消耗額度,註冊贈送 100 點起始額度。
安裝前請注意
每次檢查消耗 1 點額度,判定不通過也照樣扣點,因此呼叫會產生費用;僅相同冪等鍵的重播免費。API 金鑰在註冊時只顯示一次且僅以雜湊保存,須立即妥善保存。判定邏輯、收據鏈與計費都在第三方託管服務上執行,授權資料與動作細節會傳送給該服務。它只判斷是否符合授權,不判斷動作是否明智、合法或安全。

安裝

在 SourceWeft 中

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

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

其他 MCP 客戶端

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

README

ForgingStack Mandate Check

Before your agent acts, check its mandate. One call, one receipt.

mcp-name: io.github.jdkabattles/forgingstack-mandate-check

This is the public client for Mandate Check. The service itself — the decision logic, the receipt chain, the key store, and billing — runs on ForgingStack's private service and is not in this repo. Copying this repo does not give you the service: you still need an API key and credits, from signup below.

Live API: https://forgingstack-mandate-check.jkbattles.workers.dev

What it checks, in order

  1. Mandate agent matches the calling agent
  2. Mandate principal matches the principal the agent acts for
  3. Mandate expiry is parseable and in the future
  4. Action is in the mandate's allowed actions

Pass or fail, you get a reason and a hash-chained receipt.

What it does not do: decide if an action is wise, legal, or safe. Mandate fit only.

Signup (v1)

bash
curl -X POST https://forgingstack-mandate-check.jkbattles.workers.dev/v1/signup \  -H "Content-Type: application/json" \  -d '{"email":"[email protected]"}'

Returns an API key once and 100 starter credits. Save the key immediately — it is stored only as a hash and cannot be shown again. Email verification is pending, and credit-pack billing is not live yet, so do not expect a purchase flow in v1.

Agent sub-keys

A signed-up human creates a key for each agent, capped and revocable:

bash
curl -X POST https://forgingstack-mandate-check.jkbattles.workers.dev/v1/keys \  -H "X-API-Key: YOUR_PRIMARY_KEY" -H "Content-Type: application/json" \  -d '{"agent_name":"my-agent","credits":20}'

List with GET /v1/keys, revoke with DELETE /v1/keys/{id} — revoking returns unused credits to the primary account.

Use it (MCP, stdio)

Set the key, then run the MCP server in this repo:

bash
export FORGINGSTACK_API_KEY="your-key-here"python -m app.mcp_server

Tools: check_mandate, get_credits, get_receipt. See SKILL.md for when to use it and when not to.

Price

1 credit per check call. A failed decision still costs 1 credit — the check was performed. An idempotent replay (same Idempotency-Key) is free and returns the original receipt.

Files in this repo

  • app/mcp_server.py — MCP wrapper client (stdio, stdlib only)
  • SKILL.md — when to use it, how to read pass/fail
  • agent-card.json — A2A-style discovery card
  • server.json — MCP Registry metadata (draft until PyPI publish)
  • pyproject.toml — package metadata for the MCP client

來源:README.md,提交 315cc45

工具

3

check_mandate

Check an agent action against its mandate. Returns a pass/fail decision and a receipt. Costs 1 credit per call; an idempotency key replay is free.

輸入參數action必填mandate必填agent_id必填principal必填idempotency_key

get_credits

Remaining credit balance for the configured API key.

無需輸入參數。

get_receipt

Fetch a past mandate-check receipt by id.

輸入參數receipt_id必填

版本歷史

1
  1. v0.2.1最新Nov 4, 2026

評分

已滿足適用檢查項的 80%

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

  • 近 30 天內可連通25 分
  • 已宣告認證方式10 分

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

  • 已列出工具必需15 分
  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分

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

其他 Check 整合