Review coding-agent changes over MCP
Every open Collate window listens on a private local Unix socket, and collate --mcp exposes a Model Context Protocol server over standard input and output. Your coding agent can see the exact view you are reading, jump to files or line numbers, leave review comments, and apply edits that appear live in the diff.
Registering the MCP server
For Claude Code, the repository ships an installer script that copies the collate skill into ~/.claude/skills/collate and registers the MCP server at user scope:
git clone https://github.com/Dishant1804/Collate.git
cd Collate
./scripts/install-agent.shFor any other MCP-capable client, point it at your collate binary (run which collate or use the full path to ~/.local/bin/collate if your client does not inherit your shell PATH) with --mcp:
{
"mcpServers": {
"collate": {
"command": "collate",
"args": ["--mcp"]
}
}
}You can also read the full skill specification in skills/collate/SKILL.md.
Available MCP tools
collate_windowsandcollate_launchlist running windows by process ID and repository or launch Collate on a folder.collate_statereturns the active repository, branch, view (all,staged,unstaged,branch,history), visible files, selection, open dialog, and status notice.collate_showswitches betweenall,staged,unstaged,branch,history,pulls,issues, andmap.collate_open_fileandcollate_selectscroll the diff to a file and select specific line ranges on either theneworoldside.collate_diffreads the current patch for one file or all files (capped at 200 KB so large diffs do not flood the agent context).collate_comments,collate_comment, andcollate_delete_commentread and write line-anchored review notes.collate_commandsandcollate_runlist and execute menu commands by ID, whilecollate_sayposts a short notice at the bottom of the window.
Human-in-the-loop review workflow
Two habits keep agent reviews fast and safe:
- Diff-to-agent feedback: Press
cto attach comments to specific lines or select lines and pressito send them straight to the built-in Agent pane running Claude Code beside your diff. - Confirmation boundaries: Agents can navigate, read diffs, and leave review notes freely, while destructive or remote operations like discards open native confirmation dialogs for you to answer and commit/push commands require your explicit confirmation.
For the engineering architecture behind the socket protocol and comment anchoring, see Giving coding agents eyes in your diff viewer with MCP.