Mandare
v0.1.0Verify an agent fleet's tamper-evident ledger, check budgets, kill a runaway agent.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
mandare_verify Verify the Mandare ledger
Verify the local ledger: hash chain, door signatures, RFC 6962 tree head, spend trail and budget-counter replay, approval trail, and revocation state. With check_witness=true also checks the chain against the externally witnessed head history (catches truncation and rewrites). Returns the machine-readable verification report. Read-only.
| Parameter | Type | Description |
|---|---|---|
check_witness | boolean | Also verify against the configured witness (detects truncation/rewrites) |
mandare_budget_status Budget status
Per-mandate spend from the ledger: settled and reserved amounts (integer micro-units of the ledger currency), intent counts, refusal count, and whether the live budget counters equal a fresh replay of the ledger. Use before starting expensive work. Read-only.
mandare_issue_passport Issue an agent passport
Issue an Agent Delegation Credential (SD-JWT VC) for a NEW agent: owner + local attestation authority keys from the vault, fresh agent did:key, revocation slot registered on the ledger. The credential and the agent private key are written to the operator-configured home directory; the result references them by path and never contains key material.
| Parameter | Type | Description |
|---|---|---|
agent_name * | string | Label for the new agent (also the artifact file prefix) |
valid_days | integer |
mandare_issue_mandate Issue a mandate
Issue an owner-signed mandate (SD-JWT VC) for an agent: spend caps in WHOLE currency units (per transaction / day / task / total), optional human-approval threshold, validity window. The mandate file path is returned; point the gateway at it (MANDARE_MANDATE_PATH).
| Parameter | Type | Description |
|---|---|---|
agent_did * | string | The agent's did:key (from mandare_issue_passport) |
approval_above | number | Spends above this wait for an async human approval |
currency | string | |
per_day | number | |
per_task | number | |
per_tx | number | Max per single call/transaction, whole currency units |
purpose | string | |
total | number | |
valid_hours | number |
mandare_issue_token Issue a scoped access token
Mint a short-lived proof-of-possession token an agent presents to the gateway (TTL ≤ 30 minutes). The grant INCLUDING ITS ONE-TIME SECRET is written 0600 to the operator-configured home directory; the result references it by path only — hand the FILE to the agent process (e.g. @mandarelabs/sdk tokenCredentialsFromIssueJson), never paste its contents into chat.
| Parameter | Type | Description |
|---|---|---|
actor_did * | string | The agent DID the token is scoped to |
mandate_id * | string | |
ttl_seconds | integer |
mandare_kill Kill switch
The LOCAL, offline, fail-closed kill: revoke ONE agent, ONE mandate (the agent survives, the permission slip dies), or --all (halts the whole door). Writes the revocation to the ledger; the gateway refuses the subject on its very next request. Bound virtual cards are revoked too. Kills only CLOSE doors — reversing one requires the operator (mandare reinstate).
| Parameter | Type | Description |
|---|---|---|
agent_did | string | |
all | boolean | Revoke the whole door (every subject it governs) |
mandate_id | string | |
reason | string |
mandare_certify Export an integrity certificate
Build the selective-disclosure integrity certificate (chain valid · witnessed · anchored) a third party can verify WITHOUT ledger access. Optionally disclose specific entries by seq; undisclosed entries stay salted hashes. Requires a configured witness.
| Parameter | Type | Description |
|---|---|---|
disclose_seqs | array |
mandare_gateway_health Gateway health
Read the running gateway door /healthz (halted state, card rail, witness gating). Requires MANDARE_GATEWAY_URL in the MCP server environment. Read-only.