Skip to content

Add Selvedge to Windsurf

Windsurf’s Cascade agent loads MCP servers from a single JSON config. Add Selvedge there and Cascade gains the log_change / prior_attempts tools.

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 ~/.codeium/windsurf/mcp_config.json — or open it from the MCPs icon in the Cascade panel → Configure:

{
"mcpServers": {
"selvedge": {
"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.

Back in the Cascade MCPs panel, refresh the server list — selvedge should connect and expose its 8 tools.

After editing mcp_config.json, fully quit and reopen Windsurf — closing the window alone doesn’t reload MCP servers. The config calls uvx, so make sure uv is installed (or pip install selvedge and use command: selvedge-server).