connect_agents
Set up Cork for the agent tools on this machine (Claude Code, Codex, Cursor, Hermes): returns the same one install command as setup, which installs Cork's hooks once for every repo on the machine and writes nothing into the repo. mode "files" returns the protocol rules files and MCP configs to commit for tools without hooks (Windsurf, Cline, GitHub Copilot) instead.
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": "connect_agents"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | Leave empty for the machine install; "files" for the rules files and MCP configs. | |
| repo_id | Yes | The repository id, e.g. github.com/org/repo (repo_id in .cork/config.json, or .collide/config.json in a repo set up before the rename). |