pip install diffctx[mcp]Add to ~/.claude/mcp.json:
{
"mcpServers": {
"diffctx": {
"command": "diffctx-mcp"
}
}
}Add to ~/.cursor/mcp.json:
{
"mcpServers": {
"diffctx": {
"command": "diffctx-mcp"
}
}
}Add to ~/.continue/config.json:
{
"experimental": {
"modelContextProtocolServers": [
{
"transport": {
"type": "stdio",
"command": "diffctx-mcp"
}
}
]
}
}Add to ~/.codeium/windsurf/mcp_config.json:
{
"mcpServers": {
"diffctx": {
"command": "diffctx-mcp"
}
}
}Add to ~/.config/zed/settings.json:
{
"context_servers": {
"diffctx": {
"command": {
"path": "diffctx-mcp"
}
}
}
}DIFFCTX_ALLOWED_PATHS— colon-separated list of directories the server is allowed to access. When set, requests for repositories outside these paths are rejected.
Returns the most relevant code fragments for understanding a git diff.
Parameters:
repo_path(string, required) — absolute path to a git repositorydiff_range(string, default"HEAD~1..HEAD") — git diff rangebudget_tokens(integer, default8000) — token budget for context selection