Skip to content

avc mcp

Starts an MCP JSON-RPC 2.0 server over stdio, exposing AVC commands as tools that AI agents can call directly.

Terminal window
avc mcp serve # default pretty-printed output
avc mcp serve --compact # compact JSON for token-sensitive contexts
FlagDescription
--compactEmit single-line JSON without indentation (saves tokens for LLM context windows)

The server exposes 23 tools that map directly to the CLI:

ToolCLI equivalent
avc_snapshotavc snapshot
avc_listavc list
avc_diffavc diff
avc_restoreavc restore
avc_infoavc info
avc_deleteavc delete
avc_branch_createavc branch create
avc_branch_listavc branch list
avc_branch_switchavc branch switch
avc_branch_diffavc branch diff
avc_branch_renameavc branch rename
avc_branch_abandonavc branch abandon
avc_branch_prune_mergedavc branch prune --merged
avc_merge_previewavc merge --preview
avc_mergeavc merge
avc_merge_abortavc merge --abort
avc_run_in_workspacerun a shell command inside a branch workspace
avc_statusavc status
avc_restore_fileavc restore-file
avc_annotateavc annotate
avc_tag_snapshotavc snapshot tag
avc_untag_snapshotavc snapshot untag
avc_list_conflictslist files with unresolved conflict markers after a merge
avc_resolve_conflictresolve one conflicted file (ours/theirs/content)

Don’t configure the MCP server by hand — let AVC do it:

Terminal window
avc init --skills claude-code,cursor,windsurf

This writes the right MCP config files for each framework. See Agent Integration for details.

If you’re building a custom agent or testing the server manually:

Terminal window
echo '{"jsonrpc":"2.0","id":1,"method":"tools/list"}' | avc mcp serve

The server reads JSON-RPC 2.0 messages on stdin and writes responses on stdout. It exits when stdin closes.