
Syncbridge Mcp
io.github.rehmansherazi由 GitHub 帳號 rehmansherazi 發布v0.1.1更新於 Oct 25, 2026
Bridges AI chat interfaces with Claude Code CLI via shared markdown control files.
概覽
一個本機 MCP 伺服器,透過讀寫專案中的共用 Markdown 控制檔案,在 AI 聊天與編碼 CLI 之間傳遞上下文。
- 可以做什麼
- 把 CLI 狀態寫入 Syncbridge 控制檔案,讓編輯器與聊天了解 CLI 做了什麼(update_state)。把聊天中產生的最新 AI 指令拉取到 CLI 工作階段中(read_instructions)。取得指令、CLI 狀態與遷移上下文的合併檢視(get_context)。重設已儲存的狀態以開始新的工作階段(clear_state)。
- 適用情境
- 適合在瀏覽器 AI 聊天與 Claude Code 等編碼 CLI 之間來回切換工作,希望指令、CLI 操作與上下文能自動銜接、不必手動複製貼上的情境。它是 Syncbridge 的 VS Code 與 Chrome 擴充功能之選用搭配元件。
- 執行需求
- 以本機 stdio 程序執行,通常透過 npx 啟動,需要 Node.js v18 或更新版本。它會操作專案資料夾中的 Markdown 控制檔案;README 另列出需要支援的 CLI(Claude Code、Cursor、Copilot CLI、Windsurf 或 Aider),完整方案還需 VS Code 與 Chromium 瀏覽器。未宣告需要 API 金鑰或帳號。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Syncbridge Mcp,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
Syncbridge
You're 30 messages deep with Claude. The plan is solid. Now you need to build it in your editor. So you copy. You paste. You lose half the context. Your editor doesn't know what Claude knows. And next time you go back to Claude, it doesn't know what your editor did.
Syncbridge fixes this — automatically, for free, no CLI required.
[VS Code Marketplace] [Chrome Extension] [npm] [License: MIT]
The Problem
Every developer using AI chat faces the same daily toil:
- AI gives a long response with 5 code blocks — you copy block 1, switch to your editor, paste, switch back, scroll to find block 2, copy, switch, paste, repeat
- You make a change in your editor — you want AI feedback — you copy the code, switch to browser, paste, ask the question
- Your chat gets too long — you start a new one — and re-explain your entire project from scratch
- You use ChatGPT for one thing and Claude for another — context never carries over
- You ask Claude for the plan and Cursor to build it — they never know what the other did
- You use Cursor — it can send terminal output to its own AI chat, but there's no way to send AI chat responses back to your terminal automatically
- You use Copilot or Windsurf — there's no bridge at all between their AI and your browser-based AI chats
This is the copy-paste tax. It compounds every single day.
Syncbridge eliminates it.
Built independently to solve a daily frustration. Turns out even well-funded teams with dedicated AI editors only solved half this problem. Syncbridge solves both directions — and works with every AI site, not just one editor's built-in chat.
Who is this for
You don't need a CLI. You don't need a paid subscription. You just need a browser.
Free forever. No API key. No subscription. No CLI required.
Quick Start
Path A — Chrome extension only (no CLI needed)
- Clone or download this repo
- Go to
chrome://extensions→ enable Developer mode → Load unpacked → selectchrome-extension/folder - Go to any supported AI site — ask something — response auto-copies to clipboard
- Press
Alt+Von any other AI site to inject it
That's it. No VS Code extension needed. No CLI. No setup.
Chrome Web Store version coming soon.
Path B — Full sync (Chrome + VS Code + CLI)
- Install VS Code extension: search "Syncbridge" in Extensions panel
- Load Chrome extension (same as Path A step 2)
- Press
Ctrl+Shift+A(Mac:Cmd+Shift+A) → select your project folder - Press
Ctrl+Shift+E(Mac:Cmd+Shift+E) → deploy file watcher hook - Press
Ctrl+Shift+S(Mac:Cmd+Shift+S) → open Syncbridge panel - Run
claude(or your CLI) from your project folder in terminal
You're ready. Ask your AI something — Syncbridge handles the rest.
What it does
Syncbridge works in two independent layers — use one or both:
Chrome extension only — works for everyone, no CLI needed:
- Auto-copies AI response to clipboard when it finishes
- Alt+C to manually copy, Alt+V to inject into any AI input
- Switch context between Claude, ChatGPT, Gemini, Grok, Mistral, Perplexity, Copilot with one keystroke
- Green toast confirms copy even when widget is hidden
VS Code extension + Chrome extension — full bidirectional sync:
- AI response auto-copied → one keystroke sends to your CLI instructions file
- CLI runs tasks → VS Code panel shows every action live
- Context migration rebuilds your session for a fresh chat
Supported AI chat interfaces (Chrome extension):
- Claude.ai
- ChatGPT
- Google Gemini
- Perplexity
- Grok (x.ai)
- Mistral
- Microsoft Copilot
Supported coding CLIs (VS Code extension):
- Claude Code (full auto-sync with hooks)
- Cursor
- GitHub Copilot CLI
- Windsurf
- Aider
- Custom (user-defined file names)
Screenshots
The Problem — Manual copy-paste between AI and CLI
The Solution — Syncbridge auto-copies AI responses
Two Modes — Floating widget and hidden mode with toast notification
Hidden Mode — Green toast confirms auto-copy when widget is hidden
Live CLI State — VS Code panel updates in real time as CLI runs
How it works
AI → CLI — Ask your AI something. Chrome extension auto-copies the response when it finishes. Press Ctrl+Shift+X (Mac: Cmd+Shift+X) in VS Code to write it to your instructions file. Run /sync in Claude Code CLI to execute.
CLI → AI — Claude Code CLI runs tasks and the hook auto-updates claude-state.md after every file write and bash command. The VS Code panel shows these updates live. Copy the state and paste into any AI chat to resume with full context.
Context migration — When your chat gets long, click ⟳ Regenerate in the Syncbridge panel. It merges your last instructions and last 10 CLI actions into a structured migration prompt. Paste into a new chat — the AI picks up exactly where you left off.
Architecture
- VS Code extension — sidebar panel, file watcher, status bar, clipboard bridge, project hook deployment
- Chrome extension — floating widget UI, site adapters for each AI platform, auto-copy on response complete
- MCP server — optional Claude Code CLI integration via MCP tools
Installation
VS Code Extension
From Marketplace: Search "Syncbridge" in the Extensions panel and click Install.
From .vsix file:
Chrome Extension
Developer mode (available now):
- Download or clone this repo
- Go to
chrome://extensions - Enable Developer mode
- Click Load unpacked → select
chrome-extension/folder
Chrome Web Store: Under review — available soon.
MCP Server (Claude Code CLI)
Available MCP tools:
update_state— push CLI state to Syncbridgeread_instructions— pull latest AI instructionsget_context— get full merged contextclear_state— reset state for a new session
VS Code Extension
Commands
Panel UI
Opens in VS Code's second column. Displays live contents of all three control files with:
- Copy button per file
- ⟳ Regenerate context.md — rebuilds migration prompt from current state
- ⚠ Clear all control files — resets all three files
The panel auto-refreshes whenever the state file changes on disk.
Status Bar
Shows last CLI action in the status bar. Click to open Claude.ai usage page.
Updates automatically when claude-state.md changes — no manual reload needed.
activeCli Setting
Syncbridge adapts control file names based on which CLI you use.
Go to VS Code Settings → search "syncbridge" → set Active CLI:
Non-Claude Code CLIs show an amber banner in the panel — state file must be updated manually for those CLIs.
Chrome Extension
Features
- Slim right-edge floating widget — hover to expand, click tab to pin open
- Draggable vertically along the right edge
- X button on hover removes widget from page — runs silently in background
- Toolbar popup to show/hide floating widget from Chrome extensions bar
- Auto-copies AI response to clipboard when response finishes (one copy per response)
- Green toast notification confirms auto-copy — visible even when widget is hidden
- Site adapters with per-site selectors for reading output and injecting input
Supported Sites
Claude.ai · ChatGPT · Google Gemini · Perplexity · Grok · Mistral · Microsoft Copilot
Keyboard Shortcuts
To remap VS Code shortcuts:
- Edit
contributes.keybindingsinpackage.json, recompile and reinstall - Or use VS Code built-in editor:
Ctrl+K Ctrl+S(Mac:Cmd+K Cmd+S)
To remap Chrome shortcuts:
Edit the keydown listener in chrome-extension/src/bot.js then reload at chrome://extensions.
Control Files
All three files are created automatically in the workspace root on first activation.
File names adapt based on your activeCli setting (see above).
Context Migration
Use when your chat gets too long or context drifts.
Steps:
- Click ⟳ Regenerate context.md in the Syncbridge panel
- Merges last instructions + last 10 CLI actions into a structured prompt
- Copy
claude-context.mdcontents - Paste into a new chat — AI resumes exactly where you left off
When to use:
- Chat responses are drifting or losing accuracy
- Starting a new day on the same project
- Switching between AI models mid-session
File Watcher Hook
The hook is configured in .claude/settings.json and fires automatically after every file write and bash command by Claude Code CLI.
Deploy to a project: Press Ctrl+Shift+E (Mac: Cmd+Shift+E) in VS Code.
To copy manually to another project:
Hook captures:
Multi-Folder Workspace
When workspace has multiple root folders, active root resolves in this order:
- Folder containing the currently open file
- Folder set via
Ctrl+Shift+A(Mac:Cmd+Shift+A) - First folder in workspace list as fallback
Roadmap
- Auto-detect installed CLIs on first run
- Chrome Web Store public release
- Onboarding walkthrough for first-time users
- Additional AI platform adapters
- Improved context migration with token awareness
Requirements
- VS Code 1.100.0 or higher
- Node.js v18+
- At least one supported CLI (Claude Code, Cursor, Copilot CLI, Windsurf, or Aider)
- Chrome or Chromium-based browser for the Chrome extension
Extension Test Runner
Tests live in src/test/extension.test.ts — 7 deterministic tests covering control file creation, write stability, append ordering, context regeneration, and extension activation.
To run: click the beaker icon (Testing) in VS Code sidebar → press ▷ Run All Tests.
All tests must pass before packaging.
Development
Built using VS Code Extension API + Claude Code CLI with a deterministic SEP-based workflow.
Repository: https://github.com/rehmansherazi/syncbridge
Known Limitations
- Chrome extension site adapters use fallback selector chains — resilient to minor DOM changes but major site redesigns may require an update
- File watcher hook requires manual setup per project via
Ctrl+Shift+E(Mac:Cmd+Shift+E) - Auto-sync hook only available for Claude Code CLI — other CLIs require manual state file updates
- CLI sync requires the CLI to be running from the project directory that has the hook deployed
Privacy
Syncbridge does not collect, transmit, or store any user data on external servers.
- Clipboard access is used only to read AI responses and write context locally to your project files
- Storage permission saves only widget visibility state in your browser locally
- No analytics, no tracking, no telemetry
- No data leaves your machine
- All processing happens locally between your browser, VS Code, and terminal
For questions: [email protected]
來源:README.md,提交 6d8b254
工具
0版本歷史
1- v0.1.1最新Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分