Skip to content

Claude Code

Claude Code is Anthropic’s official CLI for Claude. AVC integrates with it via the Model Context Protocol — Claude can call avc_snapshot, avc_diff, avc_restore, etc. as native tools.

Terminal window
avc init --skills claude-code

That single command writes everything needed.

.mcp.json ← MCP server registration (project-scoped)
CLAUDE.md ← always-loaded project instructions (AVC block appended)
.claude/
└── skills/
├── avc-snapshot/SKILL.md ← "When and how to snapshot"
├── avc-branch/SKILL.md ← "When to use branches"
├── avc-restore/SKILL.md ← "When to roll back"
├── avc-merge/SKILL.md ← "How to merge an agent branch"
└── avc-run/SKILL.md ← "How to run commands in a workspace"

The project-level .mcp.json registers the AVC MCP server, and Claude Code discovers it automatically when you open the project:

{
"mcpServers": {
"avc": {
"command": "avc",
"args": ["mcp", "serve", "--tools", "standard"]
}
}
}

Writing .mcp.json in the project (rather than your global ~/.claude.json) keeps the AVC server scoped to this project, and Claude Code gates first use behind its normal project-server approval prompt. All of these generated files are added to .gitignore automatically.

The skill files are prompt instructions Claude reads when it loads the project. They explain the four primitives and when to use each tool.

Open the project in Claude Code:

Terminal window
claude

Claude detects the .claude/ directory and loads the skills. Ask it to do something non-trivial:

“Refactor the auth module to use bcrypt”

What Claude does (with AVC integration):

  1. Calls avc_branch_create to make a refactor-auth workspace
  2. Edits files inside .avc/workspaces/refactor-auth/
  3. Calls avc_snapshot after each meaningful change
  4. When done, summarizes what it did and asks if you want to merge

You can run avc list (or open the Web UI) at any time to see every snapshot Claude took.

If you update AVC and want the latest skill files:

Terminal window
avc init --skills claude-code

This is idempotent — it merges the AVC entry into .mcp.json and leaves existing skill files and your other tools’ config untouched.

SymptomFix
Claude says “tool avc_snapshot not found”Restart Claude Code so it re-reads .mcp.json, and approve the AVC server if prompted
AVC server stuck “pending approval”Run claude interactively and approve it, or set enableAllProjectMcpServers: true in your .claude/settings.json
avc: command not found in the MCP errorSet the full path in .mcp.json: "command": "/usr/local/bin/avc"
Skills not being followedConfirm .claude/skills/avc-*/SKILL.md files exist; rerun avc init --skills claude-code