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 14 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_merge_previewavc merge --preview
avc_mergeavc merge
avc_merge_abortavc merge --abort
avc_run_in_workspacerun a shell command inside a branch workspace

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.