Context Fabric is an MCP server that automatically captures project state on every git commit, detects when stored context has drifted from codebase reality, and delivers structured, token-budgeted briefings to AI agents — without requiring any developer action.
接入配置
选择客户端,复制配置,再按项目文档补齐环境变量。
claude mcp add context-fabric -- npx -y context-fabric~/.codex/config.toml
[mcp_servers.context-fabric]
command = "npx"
args = ["-y", "context-fabric"]
# codex mcp add context-fabric -- npx -y context-fabric~/.cursor/mcp.json
{
"mcpServers": {
"context-fabric": {
"command": "npx",
"args": [
"-y",
"context-fabric"
]
}
}
}.vscode/mcp.json
{
"servers": {
"context-fabric": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"context-fabric"
]
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"context-fabric": {
"command": "npx",
"args": [
"-y",
"context-fabric"
]
}
}
}claude_desktop_config.json
{
"mcpServers": {
"context-fabric": {
"command": "npx",
"args": [
"-y",
"context-fabric"
]
}
}
}.trae/mcp.json
{
"mcpServers": {
"context-fabric": {
"command": "npx",
"args": [
"-y",
"context-fabric"
]
}
}
}