setup
Set up Cork on this machine, once for every repo on it. The answer has install.command: run it exactly as given, in a shell at the repo root. It installs Cork's hooks for Claude Code, Codex, Cursor and Hermes, links the machine to your account, and writes nothing into the repo; if the repo still has Cork's old per-repo setup (.collide/ hook files), it removes that and stages the removal for you to commit. Returns the command and what it installs.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"repo_id": "<repo_id>"
},
"name": "setup"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | Ignored: kept for older callers. The machine's hooks always gate writes. | |
| repo_id | Yes | The repository id, e.g. github.com/org/repo (its git origin). |