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.

已驗證STDIO僅桌面知識與記憶開發者工具

概覽

AI 產生的概覽

一個本機 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 金鑰或帳號。
安裝前請注意
這些工具會寫入並清除專案中的控制檔案,狀態可能被覆寫或重設。README 說明自動同步掛鉤僅適用於 Claude Code CLI,其他 CLI 需手動更新狀態檔案。它會在本機讀寫剪貼簿內容;README 聲稱資料不會離開本機,但這只是廠商自己的說法。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Syncbridge Mcp,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

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.

WhoPainWhat Syncbridge gives them
Developers using free AI chatCopy-paste between browser and editor all dayAuto-copy + one-keystroke inject
Students and bootcamp learnersRe-explaining project context in every new chatContext migration in one click
FreelancersLosing context between client sessionsPersistent context across chats
Multi-model usersSwitching between Claude, ChatGPT, Gemini manuallyAlt+C on one, Alt+V on another
Claude Code / Cursor / Copilot CLI usersAI chat and CLI never in syncFull bidirectional auto-sync
Cursor usersTerminal→AI exists in Cursor but AI→terminal is missingCompletes the missing direction + works with any browser AI
Copilot and Windsurf usersNo terminal↔AI bridge at all in browserFull bidirectional sync with any AI chat site
Content creators and technical writersCopy-pasting AI drafts into editors all dayAuto-copy eliminates the switching
Cost-sensitive developersClaude Code CLI too expensiveChrome extension is completely free
VS Code power usersAlways hunting for better AI workflow toolsInstall in 30 seconds, works immediately

Free forever. No API key. No subscription. No CLI required.


Quick Start

Path A — Chrome extension only (no CLI needed)

  1. Clone or download this repo
  2. Go to chrome://extensions → enable Developer mode → Load unpacked → select chrome-extension/ folder
  3. Go to any supported AI site — ask something — response auto-copies to clipboard
  4. Press Alt+V on 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)

  1. Install VS Code extension: search "Syncbridge" in Extensions panel
  2. Load Chrome extension (same as Path A step 2)
  3. Press Ctrl+Shift+A (Mac: Cmd+Shift+A) → select your project folder
  4. Press Ctrl+Shift+E (Mac: Cmd+Shift+E) → deploy file watcher hook
  5. Press Ctrl+Shift+S (Mac: Cmd+Shift+S) → open Syncbridge panel
  6. 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 Problem]

The Solution — Syncbridge auto-copies AI responses

[The Solution]

Two Modes — Floating widget and hidden mode with toast notification

[Two Modes]

Hidden Mode — Green toast confirms auto-copy when widget is hidden

[Hidden Mode]

Live CLI State — VS Code panel updates in real time as CLI runs

[Live CLI State]


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:

bash
code --install-extension syncbridge-0.1.0.vsix

Chrome Extension

Developer mode (available now):

  1. Download or clone this repo
  2. Go to chrome://extensions
  3. Enable Developer mode
  4. Click Load unpacked → select chrome-extension/ folder

Chrome Web Store: Under review — available soon.

MCP Server (Claude Code CLI)

bash
claude mcp add syncbridge npx syncbridge-mcp

Available MCP tools:

  • update_state — push CLI state to Syncbridge
  • read_instructions — pull latest AI instructions
  • get_context — get full merged context
  • clear_state — reset state for a new session

VS Code Extension

Commands

CommandDescription
Syncbridge: Open PanelOpen the sync panel in column two
Syncbridge: Send Clipboard to CLIWrite clipboard content to instructions file
Syncbridge: Set Active ProjectSet the active project folder
Syncbridge: Setup ProjectDeploy file watcher hook to current project

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:

SettingInstructions fileState fileContext file
claudecode (default)claude-ai.mdclaude-state.mdclaude-context.md
cursorcursor-ai.mdcursor-state.mdcursor-context.md
copilotcopilot-ai.mdcopilot-state.mdcopilot-context.md
windsurfwindsurf-ai.mdwindsurf-state.mdwindsurf-context.md
aideraider-ai.mdaider-state.mdaider-context.md
customuser-defineduser-defineduser-defined

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

Shortcut (Windows/Linux)Shortcut (Mac)WhereAction
Ctrl+Shift+SCmd+Shift+SVS CodeOpen Syncbridge panel
Ctrl+Shift+XCmd+Shift+XVS CodeSend clipboard to instructions file
Ctrl+Shift+ACmd+Shift+AVS CodeSet active project
Ctrl+Shift+ECmd+Shift+EVS CodeSetup current project (deploy hook)
Alt+COption+CChromeCopy AI response to clipboard
Alt+VOption+VChromeInject clipboard into AI input

To remap VS Code shortcuts:

  • Edit contributes.keybindings in package.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).

File (claudecode default)DirectionPurpose
claude-ai.mdAI → CLIInstructions from chat; /sync reads and executes
claude-state.mdCLI → AIAuto-updated by hook after every file write and bash command
claude-context.mdSharedMigration prompt; rebuilt by ⟳ Regenerate button

Context Migration

Use when your chat gets too long or context drifts.

[Context Migration Flow]

Steps:

  1. Click ⟳ Regenerate context.md in the Syncbridge panel
  2. Merges last instructions + last 10 CLI actions into a structured prompt
  3. Copy claude-context.md contents
  4. 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:

bash
cp .claude/settings.json <project>/.claude/

Hook captures:

✓ HH:MM:SS wrote <file_path>✓ HH:MM:SS ran: <command>

Multi-Folder Workspace

When workspace has multiple root folders, active root resolves in this order:

  1. Folder containing the currently open file
  2. Folder set via Ctrl+Shift+A (Mac: Cmd+Shift+A)
  3. 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
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

1
  1. v0.1.1最新Sep 16, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分