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 分