Explicit venue user registration and discovery. User IDs are arbitrary DIDs; a username is a convenience for creating a venue-managed did:web identity.
| Name: | user |
| Class: | covia.adapter.UserAdapter |
This adapter provides 11 MCP tool(s) for AI agent integration:
| Tool Name | Description |
|---|---|
| user_authentication-add | Adds a public did:key authenticator to a venue-managed named user. Defaults to the caller. Requires the user's own whole authority or admin/user/authentication-add on <venueDID>/users. Revoked keys cannot be reactivated. |
| user_clone | Copy one user's whole stored state into another account on this venue, as stored and sharing structure: workspace, agents and their sessions, assets, operations, HITL inbox and secrets. The source's jobs stay behind: the clone has made no calls. Secrets that are keys are copied too, so the clone reaches whatever they unlock; the DLFS drive key among them means the clone reads and writes the source's drives. The target is registered when absent and must otherwise hold no user state; its agents' wakes are re-armed. Refused while the source has an agent task outstanding. Requires venue authority for admin/user/import on <venueDID>/users, and admin/user/export there unless the source is the caller. |
| user_authentication-revoke | Revokes a venue-managed named user's public authenticator while retaining its audit tombstone. Requires the user's own whole authority or admin/user/authentication-revoke on <venueDID>/users. Only the direct venue may revoke the final active key. |
| user_info | Returns registration information for the caller with its own whole authority, or an operator view with admin/user/read on <venueDID>/users. |
| user_export | Export a user's whole stored state as one value for user:import: workspace, agents and their sessions, jobs, assets, operations, HITL inbox and secrets. Secrets are sealed together to accountKey with Convex ECIES, never exported in the clear or under the venue's key; secrets:false leaves them out. State the venue keeps outside the user's record (login aliases and authenticators, drives, adapter-owned state, scheduled events, content bytes) is not included, and references to it are carried as stored. Refused while the user has a job not yet finished or an agent task outstanding. A direct result-only run (POST /run): recorded jobs, MCP tools, agents, sessions and nested operation calls are refused. Use the published definition unchanged. Exporting another user requires venue authority for admin/user/export on <venueDID>/users. |
| user_list | Lists users registered at this venue. Requires admin/user/read on <venueDID>/users. |
| user_import | Fill an account from a user:export made by this or another venue. The target is registered when absent and must otherwise hold no user state. Sealed secrets open with seed and are re-encrypted under this venue's key. Covia's migrations of its stored shapes run as part of the import. An export written by a newer Covia, or holding an agent task outstanding, is refused. The export's jobs are left out: the account it fills has made no calls here. Agent wakes are re-armed in this venue's schedule; references from the state to anything outside it are carried as stored. Requires venue authority for admin/user/import on <venueDID>/users. |
| user_sudo | Runs one operation as another user, with that user's whole authority: what it does and makes is the user's, and the caller is its caller. Requires admin/sudo on the target DID, from a request no access token or callable narrows; the venue's own DID and its public principal cannot be targets. Acts that need the user in person, such as answering their approval requests, extracting a secret or minting their identity token, refuse it. |
| user_delete | Erase a venue account, profile, login aliases and namespace; cancel its jobs, agents and schedules. Requires venue authority for admin/user/delete on <venueDID>/users, even for the caller's own account. Retains a minimal account tombstone and public key revocations. Recreation follows the existing venue admission policy and starts with an empty account. Physical erasure requires collecting unreferenced data and expiring retained checkpoints/backups. |
| user_create | Registers a user DID at this venue. Requires admin/user/create on <venueDID>/users. Venue administrators may supply any valid DID, or a username to derive did:web:<venue>:u:<username>. Idempotent: created is false when already registered. |
| user_authentication-list | Lists active and revoked public authenticator records for a user. Only venue-managed named users have any; a registered external DID returns an empty set. Defaults to the caller. Requires the user's own whole authority or admin/user/read on <venueDID>/users. |