Skip to content

Add Selvedge to VS Code

VS Code supports MCP servers natively, so wiring in Selvedge takes one config file. Once it’s connected, Copilot’s agent mode can call log_change as it works and prior_attempts before it edits.

pip install selvedge gives you the selvedge CLI (selvedge setup, selvedge blame, and the selvedge prompt helper below):

Terminal window
pip install selvedge

The MCP config below launches the server with uvx instead of a bare selvedge-server, so it starts reliably even when your editor doesn’t share your shell’s PATH — it just needs uv installed. Prefer the global binary? Swap uvx --from selvedge selvedge-server for selvedge-server.

Add this to .vscode/mcp.json (this workspace) — or your user mcp.json via the Command Palette’s MCP: Open User Configuration:

{
"servers": {
"selvedge": {
"type": "stdio",
"command": "uvx",
"args": ["--from", "selvedge", "selvedge-server"]
}
}
}

Selvedge only captures the why if your agent knows to call it. Install the one-block instruction set into your project’s CLAUDE.md / .cursorrules:

Terminal window
selvedge prompt --install CLAUDE.md

It’s also a copy-paste block on the site: the Selvedge agent prompt block.

Open the Chat view, switch to Agent mode, and open the tools picker — selvedge should be listed with its 8 tools. Or run MCP: List Servers from the Command Palette and confirm selvedge shows as Running.

MCP tools only surface in the Chat view’s Agent mode. The config runs the server with uvx (which ships with uv), so make sure uv is on the PATH VS Code launches with (curl -LsSf https://astral.sh/uv/install.sh | sh). Prefer a global install? pip install selvedge and set command to selvedge-server.