Sovereign Identity Wallet

v0.1.3
io.github.TamTunnel/si-wallet-mcp Checked 1 day ago Published 2 months ago

Self-hosted signing wallet: DIDs, agency grants, and task mandates for AI agents.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

wallet_did

Get the DID for the owner or agent identity in this wallet.

ParameterTypeDescription
rolestringWhich identity

wallet_onboard

Create the owner or agent identity (returns the existing one if present). Requires SI_WALLET_PASSPHRASE.

ParameterTypeDescription
role *stringWhich identity to create

issue_grant

Owner issues an agency grant delegating authority to an agent DID (scopes + USD amount limit + TTL).

ParameterTypeDescription
agentDid *stringAgent's did:key
amountLimit *numberMax USD the agent may commit
scope *arrayGranted scopes, e.g. ['book_flight','read']
notestringHuman-readable note
ttlDaysnumberGrant lifetime in days

mint_mandate

Agent mints a task mandate for a website audience, bound to an agency grant. Returns the mandate JWS and the Authorization header value. Amounts over $100 need confirmOverLimit=true (only after the owner explicitly approved). Pass subjectDid to delegate to a downstream agent (e.g. Muse delegating to Hermes) with narrowed scope/amount.

ParameterTypeDescription
audience *stringWebsite audience, e.g. 'example.com'
grantJws *stringAgency-grant JWS from issue_grant (or a parent mandate JWS when delegating)
scope *arrayTask scopes (must be a subset of the grant)
amountnumberUSD amount for this task
confirmOverLimitbooleanOwner confirmed amounts over $100
subjectDidstringDownstream agent DID for delegation; defaults to this wallet's agent DID
taskstringHuman-readable task description
ttlSecnumberMandate lifetime in seconds

verify_mandate

Website-side verification of a task mandate chain: signatures, expiry, audience, replay, grant binding, scope/amount confinement. Records the JTI in the local replay ledger on success.

ParameterTypeDescription
mandateJws *stringTask mandate JWS
expectedAudiencestringAudience this verifier expects

verify_chain

Website-side verification of a multi-hop delegation chain (Owner → … → leaf agent): walks every link, enforcing parent signatures, parent-issued-to-signer binding, scope subset and amount confinement at each hop, expiry, leaf audience, and replay protection. Returns the full attenuated chain.

ParameterTypeDescription
mandateJws *stringLeaf task mandate JWS
expectedAudiencestringAudience this verifier expects

pairwise_did

Generate a fresh pairwise DID for one audience (prevents cross-site correlation).

ParameterTypeDescription
audience *stringSite or service this DID is for