Add Selvedge to Claude Code
Two ways in: the plugin (/plugin install, no prior pip install — it bootstraps the server and ships a skill, the PreToolUse enforcement hook, and slash commands), or a single claude mcp add for just the MCP server. The auto-detecting selvedge setup wizard works too.
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”The fastest path — register the stdio server with one command:
claude mcp add selvedge -- uvx --from selvedge selvedge-serverAdd --scope user to make it available across all your projects, or --scope project to write a shared .mcp.json you can commit so the whole team gets it. Local scope (the default) keeps it to you in the current project.
That writes the equivalent MCP config to ~/.claude.json (local/user scope) or .mcp.json at the project root (project scope):
{ "mcpServers": { "selvedge": { "command": "uvx", "args": ["--from", "selvedge", "selvedge-server"] } }}Prefer not to touch config files? selvedge setup detects Claude Code and writes this for you (with a .bak first).
Install as a Claude Code plugin (no prior pip install)
Section titled “Install as a Claude Code plugin (no prior pip install)”/plugin marketplace add masondelan/selvedge/plugin install selvedge@selvedgeTwo commands — the plugin bootstraps the server via uvx/pipx, so no prior pip install is needed. One install brings the MCP server, a skill that tells the agent when to use it, the PreToolUse enforcement hook, and the /selvedge:status, blame, history, and prior-attempts slash commands. Prefer a pinned install? pip install selvedge and the launcher uses it instead of uvx.
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”Run /mcp inside Claude Code (or claude mcp list in a terminal). selvedge should show as connected with its 8 tools.
If it doesn’t connect
Section titled “If it doesn’t connect”If claude mcp list shows selvedge as failed, uvx (from uv) isn’t on the PATH Claude Code spawns with — install uv, then re-run. Prefer a global install? Register -- selvedge-server after pip install selvedge instead.
- Quickstart → — the three-command setup and what
selvedge setupautomates. - MCP tools → — the eight tools Claude Code will be able to call.
- Claude Code MCP docs → — the upstream reference.