Cotton code
69 lines · 1.8 KB · JSONRaw
{  "format_version": 1,  "id": "mcp_token",  "name": "Token",  "plural": "Tokens",  "visibility": "owner",  "title": "name",  "columns": [    {      "key": "name",      "name": "Name",      "type": "text",      "required": true    },    {      "key": "scopes",      "name": "Scopes",      "type": "text",      "multiple": true,      "required": true    },    {      "key": "token_hash",      "name": "Token hash",      "type": "text",      "required": true,      "indexed": true,      "readonly": true    },    {      "key": "last_used_at",      "name": "Last used at",      "type": "text"    },    {      "key": "expires_at",      "name": "Expires at",      "type": "text"    },    {      "key": "revoked_at",      "name": "Revoked at",      "type": "text"    },    {      "key": "connection_id",      "name": "Connection",      "type": "text",      "indexed": true    },    {      "key": "machine",      "name": "Machine",      "type": "text"    },    {      "key": "allow",      "name": "Allow",      "type": "longtext"    },    {      "key": "minted_by",      "name": "Minted by",      "type": "text"    }  ],  "instructions": "A bearer token an assistant or script presents at /mcp; the object keeps only its hash. connection_id names the assistant connection it belongs to: an OAuth connection keeps one id across every refresh; a pasted token has none and is its own connection. machine is the machine a minted token runs on (its short host name, as mint_token was told), so a card can say \"Claude Code on mac-c\". allow is what the key may do, as JSON { read, write, outward } (the tables it reads and writes, or \"*\"; outward: whether it acts on the outside world); empty, a key made before allows, its scopes alone.",  "internal": true}