Selvedge
MCP server by Mason Delan
Record and retrieve coding decisions, reasons and rejected approaches per code entity, stored in local SQLite.
Install Selvedge
Runs on your machine. Your client starts it with this command:
Needs uv (Python) on your computer. The setup steps below show where the command goes in each client.
SELVEDGE_DBoptional Override the SQLite path. Defaults to .selvedge/selvedge.db next to the codebase.
Share this server
Opens this page, with the install command and setup steps.
mcp.tc/i/selvedgeAbout
Selvedge gives AI coding agents persistent decision memory. Agents log changes to entities such as database columns, functions, routes, dependencies and env vars, along with the reasoning and rejected approaches. Later sessions can look up the history, check prior attempts before editing, and find decisions due for a revisit.
It runs locally over stdio, installed from PyPI and started with uvx, with a companion CLI. Records are kept in a SQLite file in .selvedge/ next to your code. No hosted account or API key is needed. SELVEDGE_DB optionally overrides the database path.
What you can do
- Log code changes with reasoning, diff and entity type
- Show change history for an entity, newest first
- Blame an entity to see its latest change and decision status
- Check prior attempts and outcomes before editing
- Search events by full text across paths, diffs and reasoning
- Retrieve all events in a changeset
- List stale decisions due for revisit
Tools 8
log_changeWritesRecord a change to a codebase entity with reasoning; supports renames and revisit conditions.
diffRead-onlyGet change history for an entity, newest first, with prefix matching.
blameRead-onlyShow the most recent change to an entity, with who, why and decision status.
historyRead-onlyBrowse filtered change history across entities by date, path, project or changeset.
changesetRead-onlyGet all events sharing a changeset id, oldest first.
searchRead-onlyFull-text search across entity paths, diffs, reasoning and agents.
prior_attemptsRead-onlyList earlier attempts on an entity with inferred outcomes such as reverted or rejected.
stale_decisionsRead-onlyFind decisions that expired, are past their date or hit a stale condition.
From the package’s own manifest, not a live connection, on 7 Oct 2026. Read-only, Writes and Can delete are hints the server declares; your client decides whether to ask before running a tool.
Example prompts
Before editing users.email, check whether this was tried before.
Log that we added deps/stripe and why we rejected the alternative.
Show the history of the users table and its columns.
Which decisions are due for a revisit in this project?
Set up
Every client starts Selvedge on your machine with the same command. Pick yours; the page remembers your choice.
Claude Code
- Run this in a terminal, in your project folder:
claude mcp add --transport stdio selvedge -- uvx --from selvedge selvedge-server- Start Claude Code and type
/mcp. selvedge should show as connected.
Add --scope user to make it available in every project.
Claude Desktop
- Open Settings → Developer → Edit Config. It opens
claude_desktop_config.json. Add:
{
"mcpServers": {
"selvedge": {
"command": "uvx",
"args": [
"--from",
"selvedge",
"selvedge-server"
]
}
}
}- Save the file and restart Claude Desktop.
Needs uv (Python) on your computer. The file lives in ~/Library/Application Support/Claude/ on macOS and %APPDATA%\Claude\ on Windows.
Cursor
Add to Cursor (opens in a new tab)
Or add it by hand to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (this project):
{
"mcpServers": {
"selvedge": {
"command": "uvx",
"args": [
"--from",
"selvedge",
"selvedge-server"
]
}
}
}Needs uv (Python) on your computer.
VS Code
Install in VS Code (opens in a new tab)
Or from a terminal:
code --add-mcp '{"name":"selvedge","type":"stdio","command":"uvx","args":["--from","selvedge","selvedge-server"]}'Or commit it to the repo in .vscode/mcp.json:
{
"servers": {
"selvedge": {
"type": "stdio",
"command": "uvx",
"args": [
"--from",
"selvedge",
"selvedge-server"
]
}
}
}Needs uv (Python) on your computer.
Devin Desktop
- Add it to
~/.config/devin/mcp_config.json(macOS and Linux) or%APPDATA%\devin\mcp_config.json(Windows):
{
"mcpServers": {
"selvedge": {
"command": "uvx",
"args": [
"--from",
"selvedge",
"selvedge-server"
]
}
}
}- Refresh the MCP server list in Cascade.
Devin Desktop is the new name for Windsurf.
Codex
codex mcp add selvedge -- uvx --from selvedge selvedge-serverOr edit ~/.codex/config.toml directly:
[mcp_servers.selvedge]
command = "uvx"
args = ["--from", "selvedge", "selvedge-server"]Needs uv (Python) on your computer.
Gemini CLI
gemini mcp add selvedge uvx -- --from selvedge selvedge-serverThis adds it to the current project. Add -s user to use it everywhere.
Any client
Most clients that start local servers accept this shape:
{
"mcpServers": {
"selvedge": {
"command": "uvx",
"args": [
"--from",
"selvedge",
"selvedge-server"
]
}
}
}Zed puts servers under context_servers in its settings, with the same command, args and env fields.
Needs uv (Python) on your computer.
Embed
Show Selvedge in a README or on your site. Each embed links to this page, uses the server’s own install command, and sets no cookies. How embeds work
The card, the iframe and the JSON are in English. Add ?lang=it, fr, de or es to their address for another language.
README badge
[](https://mcp.tc/i/selvedge)<a href="https://mcp.tc/i/selvedge"><img src="https://mcp.tc/i/selvedge/badge.svg" alt="Selvedge on mcp.tc" height="20"></a>It follows the reader’s light or dark mode. Add ?theme=light or ?theme=dark to fix it, or ?style=compact to show the mark without the word.
Website card
<script src="https://mcp.tc/w/selvedge.js" async></script>The card appears where the tag is. Add data-theme="dark" or data-size="compact" to the tag to change it. The file holds everything it needs, so it makes no other requests and sets no cookies.
iframe
<iframe src="https://mcp.tc/embed/selvedge" title="Selvedge on mcp.tc" width="420" height="200" loading="lazy" allow="clipboard-write" style="border:0;border-radius:8px;max-width:100%"></iframe>Use it on pages that don’t allow scripts. Add ?theme=light or ?theme=dark to the address to fix the colors.
JSON
The listing as data for your own pages and tools: name, tagline, install command, tools and the “Add to” links. Any site can read it (CORS is open).
https://mcp.tc/i/selvedge.jsonAI prompt
Paste this into an AI coding assistant, such as Claude Code or Cursor, and it adds the Selvedge card to your site.
Add the mcp.tc card for Selvedge, an MCP server, to my website. It is one static script: no build step, no package to install, no cookies.
Put this tag where the card should appear. The card renders right before it:
```html
<script src="https://mcp.tc/w/selvedge.js" async></script>
```
To show the card somewhere else, put this placeholder there and load the same script once, for example before `</body>`. Keep the link inside: visitors without JavaScript see it.
```html
<div data-mcptc="selvedge"><a href="https://mcp.tc/i/selvedge">Selvedge on mcp.tc</a></div>
```
Options:
- `data-theme="light"` or `"dark"` on the tag or the placeholder fixes the colors. Without it, the card follows the visitor’s light or dark mode.
- `data-size="compact"` gives a smaller card without the tagline.
- The CSS variable `--mcptc-max-width` on the placeholder or a parent sets the width (default `520px`).
- `?lang=` on the script URL sets the card’s language: `en`, `it`, `fr`, `de` or `es`.
If the site has a Content Security Policy, allow `script-src https://mcp.tc` and `img-src data:` (the icon is inline).
For a README or other Markdown docs, use the badge instead:
```markdown
[](https://mcp.tc/i/selvedge)
```
Reference: https://mcp.tc/embedChange history
We read the tool list in this server’s bundle manifest on GitHub every 3 hours and record what changes. Last read 18 Nov 2026, 05:28 UTC.
FAQ
Can I paste mcp.tc/i/selvedge into my MCP client?
No. Selvedge runs on your own computer, started by your client, so it has no web address to connect to. The quick link is the page to share; the install command is uvx --from selvedge selvedge-server.
Does Selvedge need an API key?
No. It doesn’t declare any keys or environment variables. It runs with your user account’s permissions, so check what its tools can reach.
Is Selvedge a remote or a local server?
Local. Your client starts it as a process on your computer with uvx --from selvedge selvedge-server, which needs uv (Python).
What can Selvedge do?
It has 8 tools, including log_change, diff and blame. You can log code changes with reasoning, diff and entity type, show change history for an entity, newest first and blame an entity to see its latest change and decision status.
Which clients can use it?
Any client that starts local servers: Claude Code, Claude Desktop, Cursor, VS Code, Devin Desktop, Codex, Gemini CLI, Zed and others. claude.ai and ChatGPT only connect to remote servers.
Does mcp.tc track changes to Selvedge?
Yes. We follow the tool list in Selvedge’s bundle manifest, and its History tab shows each change we find, plus new versions and edits by its owner. Follow the listing to get an email when it changes.
Who wrote this page?
mcp.tc’s robot read Selvedge’s public metadata (its package and repository pages), and an AI model drafted the text from it. A person reviews anything the checks can’t confirm. The text can still be wrong, so if you spot a mistake, use Report this listing on this page.
mcp.tc isn’t affiliated with Mason Delan. This page was built from Selvedge’s public metadata, last checked on 7 Oct 2026, and an AI model wrote the description, so it can be wrong. Names and marks belong to their owners. Something off? Report this listing.