
Context Sync
io.github.Intina47由 GitHub 账号 Intina47 发布v1.0.1更新于 Oct 24, 2026
Universal AI Memory - Sync context across Claude, VsCode, Cursor, Continue, Windsurf, Zed & more
概览
面向 AI 编程工具的本地优先项目记忆层,可保存代码库上下文并在不同会话和编辑器间召回。
- 可以做什么
- 设定当前项目,并召回已保存的上下文、决策、约束与注意事项
- 通过结构列表、搜索和定向读取文件来探索代码库
- 记录需要跨会话保留的新记忆
- 查看 git 状态、上下文、热点、耦合、blame 与分析
- 可选地以只读方式搜索和读取 Notion 页面
- 适用场景
- 适合长期在同一个代码库上工作、或同时使用多个 AI 编程工具,希望决策和项目背景能延续而不必反复说明的场景。也适合结构化的代码库探索和结合 git 的上下文分析。
- 运行要求
- 以 npm 包 @context-sync/server 通过 stdio 在本地运行;全局安装才会自动配置,本地安装需手动配置 MCP。需要 Node.js 以及受支持的客户端,如 Claude Desktop、Cursor、VS Code、Continue、Zed、Windsurf、Codex CLI 或 Claude Code。Notion 为可选项,需运行单独的设置向导。数据默认存于用户主目录下的本地 SQLite 数据库,可用环境变量 CONTEXT_SYNC_DB_PATH 更改路径。
安装
在 SourceWeft 中
- 打开 控制台中的 Context Sync,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
Context Sync
Local-first project memory for AI coding tools over MCP.
Context Sync gives an agent a persistent memory layer for a codebase:
- project identity and tech stack
- active work, decisions, constraints, and caveats
- structured file exploration
- git-aware context
- optional read-only Notion lookup
What It Does
Context Sync is built for session continuity. Instead of relying on a model to remember earlier conversations, it stores the project context that matters and makes it retrievable through a small MCP tool surface.
The current core tools are:
set_projectrememberrecallread_filesearchstructuregitnotion
Install
Install globally:
Auto-configuration runs during global install. After install, restart your AI tool.
If you install locally instead of globally, auto-config does not run. Use the manual config guide in docs/CONFIG.md.
Verify
Check that context-sync appears in your MCP tool list:
- Claude Desktop: open the tools list
- Cursor: open the tools list
- VS Code / Copilot Chat Agent mode: check tools
- Continue.dev: open the Continue panel
- Codex CLI:
codex mcp list - Claude Code:
claude mcp list
If auto-config fails, use docs/TROUBLESHOOTING.md and docs/CONFIG.md.
Optional Notion Setup
Run the setup wizard if you want Notion integration:
or:
Notion support is intentionally read-only at the tool surface:
notion({ action: "search", query: "..." })notion({ action: "read", pageId: "..." })
First-Time Workflow
Start every new session by setting the project first:
Recommended pattern:
set_projectonce per project/session startrecallto recover contextstructureandsearchto exploreread_filefor focused inspectionrememberwhen something should survive the current session
Git Integration
When you run set_project inside a git repository, Context Sync can install hooks for automatic context capture.
Installed hooks:
post-commitpre-pushpost-mergepost-checkout
Hooks are marked with Context Sync Auto-Hook, and existing hooks are backed up first.
The git tool supports:
statuscontexthotspotscouplingblameanalysis
Data And Config
Default locations:
- Database:
~/.context-sync/data.db - Config:
~/.context-sync/config.json - Install status:
~/.context-sync/install-status.json
Custom database options:
- CLI:
context-sync --db-path /absolute/path/to/db - Env var:
CONTEXT_SYNC_DB_PATH
See docs/DATA.md for storage details.
Supported Platforms
- Claude Desktop
- Cursor
- VS Code + GitHub Copilot
- Continue.dev
- Zed
- Windsurf
- Codeium
- TabNine
- Codex CLI
- Claude Code
- Antigravity
Docs
来源:README.md,提交 235fd51
工具
0版本历史
1- v1.0.1最新Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分