Get pairing code
get_pairing_codeIssue a pairing code + URL (TTL 10 minutes) for claiming a hatch (hatchId) or authorizing an agent session in a workspace (workspaceId). Reuses the active pending code for this connector session unless forceNew: true. For workspace pairing, show pairingUrl (https://mcp.theroost.dev/open/workspace-pair) as the link the user taps — it opens the Vibe Rooster app on the phone, and on a computer it opens a page that forwards into the app when the same link is opened on the phone. Do not show only appUrl; that viberooster:// link does nothing in a desktop chat. appUrl is only for an in-app QR. Do not call again until poll_pairing returns expired/completed or you intentionally rotate with forceNew.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hatchId | No | Hatch id from hatch response (consumer path). | |
| forceNew | No | When true, invalidate any outstanding QR and mint a new code. Default false — reuse the live pending code from whoami or a prior get_pairing_code. | |
| tenantId | No | Legacy alias for `hatchId`. | |
| workspaceId | No | Workspace id for B2B agent pairing (partner path). |