Selects the minimum code context needed to understand a git diff, using deterministic graph-based fragment selection within a token budget.
接入配置
选择客户端,复制配置,再按项目文档补齐环境变量。
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"
]
}
}
}