Snapshots a project's working state, including files, git, plan and decisions, into one context object so a session can move between agents.
接入配置
选择客户端,复制配置,再按项目文档补齐环境变量。
claude mcp add ctxfile --env NOTION_TOKEN='<NOTION_TOKEN>' -- npx -y ctxfile~/.codex/config.toml
[mcp_servers.ctxfile]
command = "npx"
args = ["-y", "ctxfile"]
env = { NOTION_TOKEN = "<NOTION_TOKEN>" }
# codex mcp add ctxfile --env NOTION_TOKEN='<NOTION_TOKEN>' -- npx -y ctxfile~/.cursor/mcp.json
{
"mcpServers": {
"ctxfile": {
"command": "npx",
"args": [
"-y",
"ctxfile"
],
"env": {
"NOTION_TOKEN": "<NOTION_TOKEN>"
}
}
}
}.vscode/mcp.json
{
"servers": {
"ctxfile": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"ctxfile"
],
"env": {
"NOTION_TOKEN": "<NOTION_TOKEN>"
}
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"ctxfile": {
"command": "npx",
"args": [
"-y",
"ctxfile"
],
"env": {
"NOTION_TOKEN": "<NOTION_TOKEN>"
}
}
}
}claude_desktop_config.json
{
"mcpServers": {
"ctxfile": {
"command": "npx",
"args": [
"-y",
"ctxfile"
],
"env": {
"NOTION_TOKEN": "<NOTION_TOKEN>"
}
}
}
}.trae/mcp.json
{
"mcpServers": {
"ctxfile": {
"command": "npx",
"args": [
"-y",
"ctxfile"
],
"env": {
"NOTION_TOKEN": "<NOTION_TOKEN>"
}
}
}
}需要的环境变量
NOTION_TOKEN
把占位值换成你自己的密钥;不要把密钥提交到代码仓库。