
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 分