Adapter Details: ucan

UCAN token operations for capability-based authorisation.

Name:ucan
Class:covia.adapter.UCANAdapter

MCP Tools

This adapter provides 2 MCP tool(s) for AI agent integration:

Tool NameDescription
ucan_issueCreates a UCAN capability token granting the audience (aud) the specified capabilities (att). By default the venue signs it, valid at this venue only, over resources of identities it hosts that you may grant: your own, those of an identity you sign in as, your agents', or any covered by a grant/<can> right you present. You confer only what you hold. With key, a key in a keyring signs it instead, valid anywhere. Set exp to a future Unix timestamp for a finite lifetime; omitted exp or explicit exp:null mints a genuinely non-expiring token with an explicit null claim. With prf, the venue itself passes on part of grants made to it: the token carries them as proof, every att entry must be covered by one of them, and exp cannot outlive it.
ucan_verifyVerifies a UCAN capability token against this venue's trust policy and explains the verdict — the diagnostic counterpart to enforcement. Reports validity (signature at every chain hop, temporal bounds), the parsed claims, the delegation chain depth and root issuer, and a per-capability root-authority verdict: 'owner' (an identity root — the chain root is signed by the resource owner or an identity that signs in as it), 'venue' (rooted by this venue, valid here only), or 'refused'. Optionally checks whether the token would authorise a specific request here; caveated paths report false because this diagnostic has no concrete invocation in which to run their policy gates. Read-only: no signing, no side effects.

Navigation

Back to all adapters

Back to index