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.
Before you start
Section titled “Before you start”pip install selvedge gives you the selvedge CLI (selvedge setup, selvedge blame, and the selvedge prompt helper below):
pip install selvedgeThe 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 the MCP server
Section titled “Add the MCP 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"] } }}Tell your agent when to call it
Section titled “Tell your agent when to call it”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:
selvedge prompt --install CLAUDE.mdIt’s also a copy-paste block on the site: the Selvedge agent prompt block.
Verify
Section titled “Verify”Back in the Cascade MCPs panel, refresh the server list — selvedge should connect and expose its 8 tools.
If it doesn’t connect
Section titled “If it doesn’t connect”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).
- Quickstart → — the three-command setup and what
selvedge setupautomates. - MCP tools → — the eight tools Windsurf will be able to call.
- Windsurf MCP docs → — the upstream reference.