Selects the minimum code context needed to understand a git diff, using deterministic graph-based fragment selection within a token budget.
Setup
Choose your client, copy the config, then fill in any required environment variables.
claude mcp add diffctx -- uvx diffctx~/.codex/config.toml
[mcp_servers.diffctx]
command = "uvx"
args = ["diffctx"]
# codex mcp add diffctx -- uvx diffctx~/.cursor/mcp.json
{
"mcpServers": {
"diffctx": {
"command": "uvx",
"args": [
"diffctx"
]
}
}
}.vscode/mcp.json
{
"servers": {
"diffctx": {
"type": "stdio",
"command": "uvx",
"args": [
"diffctx"
]
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"diffctx": {
"command": "uvx",
"args": [
"diffctx"
]
}
}
}claude_desktop_config.json
{
"mcpServers": {
"diffctx": {
"command": "uvx",
"args": [
"diffctx"
]
}
}
}.trae/mcp.json
{
"mcpServers": {
"diffctx": {
"command": "uvx",
"args": [
"diffctx"
]
}
}
}