Command line and MCP
repotailor is the same core as the app, as a command. Everything that changes a repository is an operation with a snapshot before it – the app's time machine shows it and can undo it.
- Edition
- Free
- Exit codes
- 0 ok, 1 refused, 2 usage
- Output
- --json as in the app
- MCP
- stdio, read-only
The commands
The binary runs on the same core as the app; parity is secured by a test.1
repotailor status
repotailor log --limit 20
repotailor timeline
repotailor undo
repotailor radar
repotailor explain-command "git rebase -i HEAD~3"
repotailor run "git switch -c feature/login"
repotailor maintenance branches
repotailor practice list
repotailor rules check --message "fix: handle empty input"
A command that writes shows its plan and asks; in scripts use --yes. --json gives the same structures as the app. A CLI commit carries the identity and signature of the resolved profile.
Exit codes
0 means done, 1 refused or rule violated, 2 wrong call or unavailable.
MCP server
The MCP server runs over stdio and only reads;2 every output runs through masking, secrets become ***. It sees only the named repository and makes no network requests. Tools: repo_status, log, show_commit, diff, blame, branches, search_history, timeline, conflict_forecast, explain_command, team_rules, maintenance_report.
{ "mcpServers": { "repotailor": { "command": "repotailor", "args": ["mcp", "/path/to/repo"] } } }
Claude Code: claude mcp add repotailor -- repotailor mcp /path/to/repo. Writing MCP tools with approvals and an audit log are in Pro (Pro: AI and agents).