agents-register
agents-registerRegister an MCP agent session by providing alias and machine_id. On reconnection, updates existing row and returns agent_session_id for use with other tools.
Instructions
Registers an MCP agent session. Upserts on (user_id, machine_id, alias) — reconnects update the existing row. Returns the agent_session_id used by other tools.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| alias | Yes | Human-readable agent name (e.g., "home-desktop", "work-laptop") | |
| capabilities | No | Optional freeform list of capability strings (e.g., ["code", "casemgr", "billing"]) | |
| current_case_id | No | Optional RID of the case this agent is currently focused on | |
| machine_id | Yes | Machine identifier (hostname); pairs with alias to dedupe reconnects | |
| webhook_url | No | Optional HTTP(S) URL. When a notification targets this agent (messages, AI work items), CaseMgr POSTs a JSON payload to this URL before attempting MCP sampling. Use to wake up dormant workers — the webhook handler spawns claude -p to process the event. | |
| worktree_path | No | Optional filesystem path of the git worktree the agent is running in. If a Worktree exists at (machine_id, worktree_path), a RunsIn edge is created and the worktree's last_seen is bumped. |