
Agent Mandate Verification
io.github.API-Disk-Integrations由 GitHub 帳號 API-Disk-Integrations 發布v0.1.1更新於 Oct 25, 2026
Verify a proposed action against a signed Agent Mandate without executing or mutating accounts.
概覽
一個本機 MCP 伺服器,用已簽章的 Agent Mandate 信封驗證擬執行的代理動作並回傳判定結果,本身不執行任何動作。
- 可以做什麼
- 驗證動作是否符合已簽章授權:只有一個工具 verify_action,可用單一動作或 1–500 個動作的批次,對照呼叫端提供的 {mandate, signature} 信封進行驗證,並依動作回傳回執,包含 allow、deny、requires_approval 等判定、違規代碼與摘要。
- 適用情境
- 當助理或代理聲稱擁有某項已簽章授權,而你想在採信之前獨立查核時使用,特別適用於需要由你以外的人也能驗證該判定的情境。若核准關卡完全由你掌控,README 建議在自有服務內做政策檢查更簡單也更便宜。
- 執行需求
- 需要 Node.js 20 或更新版本,以及透過 AGENT_MANDATE_API_KEY 提供的 Agent Mandate API 金鑰;此套件透過 npx 以 stdio 在本機執行,沒有遠端端點。需要能連線到固定的驗證端點,免費額度為每月 500 次已驗證動作。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Agent Mandate Verification,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
Verify a signed agent mandate through MCP
Check a signed authorization envelope before trusting an agent's claimed authority.
Agent Mandate's MCP tool accepts the complete { mandate, signature } envelope
returned by POST /v1/mandates. Raw claims are not a signed envelope.
The walkthrough: create an envelope, verify an action through MCP, then change one signed field and verify again. You see the real verification result for each request, including the one that gets refused.
Requirements: Node.js 20 or newer, and an Agent Mandate API key.
Getting a key: the free tier includes 500 verified actions per month and needs no card. Issuing mandates is free and never consumes the allowance; one unit is one action verified. Paid plans start at $299/month for 10,000 verified actions. This walkthrough consumes at most two of your free units.
Running this in production? When a signed mandate is and is not worth it, with the published pricing. Short version: if the approval gate is one you control, a policy check inside your own service is simpler and cheaper. The signature earns its price when somebody other than you has to be able to verify the decision.
Just exploring? POST /v1/demo/verify takes raw claims, needs no key at all, and
is shown at the end. It does not replace the signed-envelope walkthrough, because it
does not check a signature.
Run the walkthrough
The example runner comes from this repository, but it installs
@api-disk-integrations/[email protected] from npm into a throwaway prefix
and runs that, so it exercises the published artifact rather than your working tree.
Omit AGENT_MANDATE_API_KEY and it prompts without echoing.
What it prints
That is a real run against production, not illustrative output. The grant allows up to
100,000 minor units but requires approval above 25,000, and the action asks for 30,000,
so requires_approval is the correct answer. A deny or requires_approval is a
correct result, not a failure.
Verification reports a result; your application remains responsible for enforcing it.
Install the server
A generic stdio client configuration:
${AGENT_MANDATE_API_KEY} denotes the host's secret reference; use your client's
documented secret facility if its syntax differs. The package uses stdio and reads
exactly that environment variable. It has no remote /mcp endpoint.
Pin the version. 0.1.0 is still on the registry and has a first-use defect: its
input schema accepted any object for mandate, so a call built from the keyless
demo's shape returned HTTP 400.
If you would rather verify a checksummed artifact, every release also attaches a tarball and its SHA-256:
The two shapes, which is the thing that trips people up
The envelope is the entire response body of POST /v1/mandates:
{mandate, signature, requestId}. Pass it through unchanged.
"mandate.mandate" must be the claims object means bare claims were passed where the
envelope belongs. Run POST /v1/mandates first and pass its whole response.
The two calls by hand
Step 1 — create a mandate. Issuing is free and does not consume your allowance.
Answers 200 with {"mandate": {…}, "signature": "…", "requestId": "…"}.
That whole body is the envelope.
Step 2 — verify an action against it. Call verify_action with the envelope as
mandate:
With no key at all
This route takes bare claims, not the envelope, and does not check a signature.
What this server does not do
It does not issue or revoke mandates, execute an action, change an account, or call billing. It makes at most one API request per tool call and never retries automatically.
- npm:
@api-disk-integrations/agent-mandate-mcp - Official MCP Registry:
io.github.API-Disk-Integrations/agent-mandate - source:
API-Disk-Integrations/agent-mandate-mcp
Tool contract
There is exactly one tool, verify_action. Supply either one action or an
actions array, never both. A batch contains 1–500 actions. Monetary amounts
are non-negative integer minor units and require currency.
Example input:
Representative successful structured output:
Treat all three decisions literally. In particular, neither allow nor
requires_approval executes the proposed action.
Errors, limits, and safety
- If
AGENT_MANDATE_API_KEYis absent, the tool returns an MCP error before making a request. - A provider error is reduced to its numeric HTTP status and an allowlisted code. Provider-controlled message and request-ID text is never returned to the model.
- One tool call produces at most one HTTPS request to the fixed
https://agentmandate-api.com/v1/verifyendpoint. There is no automatic retry; Fetch uses explicitredirect: error, and redirect responses are rejected without a follow-up request. - The serialized UTF-8 request and decoded response body each have a hard
1 MiB (1,048,576-byte) limit. The request is measured before Fetch. The
response is counted while streaming before JSON parsing, regardless of a
missing, misleading, or chunked
Content-Lengthrepresentation. - The request timeout defaults to 30 seconds. A batch is also limited to 500 actions. Provider account rate and monthly usage limits still apply; consult the current product pricing and documentation before production use.
- The server is read-only with respect to mandate, account, and billing state, but an API verification consumes the caller's metered allowance.
- Node.js 20 or newer is required. This release is tested for MCP protocol
revision
2026-07-28and retains the SDK's listed 2025 compatibility revisions.
Links
- Product, pricing, privacy, and terms
- Developer documentation
- OpenAPI reference
- Service status
- Source repository
- Issue support
- Security reporting
- MIT license
- Threat model
The source link is not evidence that the npm package or Registry listing is available. Those two releases require their own public readback. A clone, install, download, tool call, or listing is not evidence of customer activation or revenue.
來源:README.md,提交 69ce46b
工具
0版本歷史
1- v0.1.1最新Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分