Tool Details: ucan_issue

Basic Information

Tool Name:ucan_issue
Asset Name:Issue UCAN Token
Description:Creates 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.
Adapter:ucan
Asset Hash:0xacaa64eb68c833bbaf3b0d57aab21505d7c7e4411ec8f8d63a3285329f96ad58
Input
PropertyTypeDescription
prfarrayOptional proofs: UCAN JWTs granting this venue the capabilities it passes on. Only the venue itself may supply them. Omitted or empty mints a root.
keystringOptional held key to sign with instead of the venue's key: its did:key, multibase public key or 0x account key in your keyring, or <did>/x/crypto/keys/<key> in another holder's. The grant's issuer is that key's did:key, bare paths are under it, and it may name only resources that did:key is root of: its own and those of identities nested below it. Needs key/sign/grant on it.
expanyOptional expiry as a future integer Unix timestamp in seconds. Omit or set to null for a genuinely non-expiring token; the emitted token carries an explicit exp:null claim.
aud*stringAudience DID — who receives this capability (e.g. did:key:z6MkBob...)
att*arrayAttenuations — array of {with, can} capability pairs
Output
PropertyTypeDescription
tokenstringThe signed UCAN JWT.
issstringIts issuer: the venue's DID, or the did:key of the held key that signed it.

MCP Tool Usage Examples

This tool can be called via the MCP (Model Context Protocol) endpoint. Here are examples of how to use it:

JSON-RPC Call Example:

POST to https://venue-test.covia.ai/mcp

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "ucan_issue",
    "arguments": {
      "input": "your input here"
    }
  }
}
cURL Example:
curl -X POST https://venue-test.covia.ai/mcp \\
  -H "Content-Type: application/json" \\
  -d '{
    "jsonrpc": "2.0",
    "id": 1,
    "method": "tools/call",
    "params": {
      "name": "ucan_issue",
      "arguments": {
        "input": "your input here"
      }
    }
  }'
Python Example:
import requests
import json

url = "https://venue-test.covia.ai/mcp"
payload = {
    "jsonrpc": "2.0",
    "id": 1,
    "method": "tools/call",
    "params": {
        "name": "ucan_issue",
        "arguments": {
            "input": "your input here"
        }
    }
}

response = requests.post(url, json=payload)
result = response.json()
print(result)
JavaScript/Node.js Example:
const fetch = require('node-fetch');

const url = 'https://venue-test.covia.ai/mcp';
const payload = {
    jsonrpc: '2.0',
    id: 1,
    method: 'tools/call',
    params: {
        name: 'ucan_issue',
        arguments: {
            input: 'your input here'
        }
    }
};

fetch(url, {
    method: 'POST',
    headers: {
        'Content-Type': 'application/json'
    },
    body: JSON.stringify(payload)
})
.then(response => response.json())
.then(data => console.log(data));

Asset Metadata

{
	"name": "Issue UCAN Token",
	"description": "Creates 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.",
	"dateCreated": "2026-03-25T00:00:00Z",
	"operation": {
		"adapter": "ucan:issue",
		"readOnly": false,
		"toolName": "ucan_issue",
		"input": {
			"type": "object",
			"properties": {
				"aud": {
					"type": "string",
					"description": "Audience DID — who receives this capability (e.g. did:key:z6MkBob...)"
				},
				"att": {
					"type": "array",
					"description": "Attenuations — array of {with, can} capability pairs",
					"items": {
						"type": "object",
						"properties": {
							"with": { "type": "string", "description": "Resource: a bare path in the namespace you act in (e.g. w/projects/) or a DID URL (e.g. did:key:z6Mk…/w/)" },
							"can": { "type": "string", "description": "Ability (e.g. job/read, job/manage, job/message for Jobs; crud/read or crud/write for raw data; * for all)" }
						},
						"required": ["with", "can"]
					}
				},
				"exp": {
					"description": "Optional expiry as a future integer Unix timestamp in seconds. Omit or set to null for a genuinely non-expiring token; the emitted token carries an explicit exp:null claim."
				},
				"prf": {
					"type": "array",
					"description": "Optional proofs: UCAN JWTs granting this venue the capabilities it passes on. Only the venue itself may supply them. Omitted or empty mints a root.",
					"items": { "type": "string" }
				},
				"key": {
					"type": "string",
					"description": "Optional held key to sign with instead of the venue's key: its did:key, multibase public key or 0x account key in your keyring, or <did>/x/crypto/keys/<key> in another holder's. The grant's issuer is that key's did:key, bare paths are under it, and it may name only resources that did:key is root of: its own and those of identities nested below it. Needs key/sign/grant on it."
				}
			},
			"required": ["aud", "att"]
		},
		"output": {
			"type": "object",
			"description": "Complete signed UCAN token (header, payload, sig)",
			"properties": {
				"token": { "type": "string", "description": "The signed UCAN JWT." },
				"iss": { "type": "string", "description": "Its issuer: the venue's DID, or the did:key of the held key that signed it." }
			}
		}
	}
}

Navigation

Back to adapter details

Back to all adapters

Back to index