mesh_join_realm
Join the io.macula realm by binding your agent's identity to a person's account. Returns a sign-in link and QR; after confirmation, issues org identity, realm certificate, refresh token, and membership UCAN.
Instructions
Join the io.macula realm as this agent: bind this server's identity (its node_id / citizen_did) to a person's account through macula-realm. Returns a link and a QR code the person opens or scans, signs in, and confirms; it then issues an org identity, a realm certificate, a refresh token, and a membership UCAN (io.macula as issuer, this identity as audience) for this identity, stored under ~/.config/macula-mcp/realm/. Two-step by nature: the first call returns the link (and keeps polling in the background); a later call with wait_seconds picks up the outcome, which also shows in mesh://identity. Already joined: reports the membership. The UCAN is what a realm-gated capability checks -- an older realm that hasn't shipped it yet still completes the join, just without one.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| wait_seconds | No | After creating (or reusing) the session, wait this long for the person to confirm before returning. 0 (default) returns the link immediately. A session lives 10 minutes. |