
Claude Bridge
io.github.constripacity由 GitHub 账号 constripacity 发布v1.3.0更新于 Oct 24, 2026
Durable local-first MCP relay for independent coding agents.
发布方自己的服务:Claude Platform Docs
概览
一个自托管的本地消息总线,让相互独立的编码代理通过 MCP 交换有序消息并共享任务队列。
- 可以做什么
- Claude Bridge 通过命名频道在不同编码代理会话之间转发消息,并以 SQLite 保存持久历史与消费者游标。其 MCP 工具涵盖发送与接收消息、长轮询等待新消息、推进游标、列出频道以及查看状态。另有任务队列,让一组工作代理各自独占领取任务并持有租约,随后标记完成或失败。同一中继也可通过 JSON API、浏览器仪表盘和终端界面访问。
- 适用场景
- 当不同机器或不同会话上的代理需要交接工作、结果、评审请求或产物引用,又不愿共享文件系统或远程 shell 时适用。它适合个人或小团队的持久历史与安全重试场景。它是传输层而非编排器,收到消息并不代表代理被授权执行该消息。
- 运行要求
- 需要 Python 及 claude-code-bridge 这个 PyPI 包,可用 uvx 或 pip 运行;终端界面需要 tui 附加组件。本地 stdio 模式不开放网络监听。HTTP 模式默认监听 127.0.0.1:8765;绑定非回环地址需要 CLAUDE_BRIDGE_AUTH_TOKEN 以及显式受信主机(CLAUDE_BRIDGE_TRUSTED_HOSTS),除非接受免认证网络绕过。状态存于 SQLite 文件,可用 CLAUDE_BRIDGE_DB 配置。
安装
在 SourceWeft 中
- 打开 控制台中的 Claude Bridge,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
Claude Bridge
A local-first, cross-machine message bus for independent coding agents.
Claude Bridge lets coding-agent sessions on different machines exchange ordered messages through named channels. The relay is self-hosted, uses SQLite by default, and exposes MCP, a small JSON API, a dashboard, and a terminal UI.
It does not call a model API and does not require agents to share a filesystem or process. Claude Code motivated the project, but the core is MCP-based and is not coupled to Anthropic.
Forward-build notice: this source tree identifies as
1.2.0.dev1. It is a development build beyond the latest stable PyPI release. Review the changelog and 0.9-to-1.2 migration guide before replacing a stable deployment.
Why use it?
- Keep agents on Windows, macOS, Linux, or a remote host in their own sessions.
- Send work, results, review requests, and artifact references without remote shell access.
- Use durable history and consumer cursors to recover after a client restart.
- Retry sends safely with an idempotency key.
- Observe the same relay through MCP, a browser dashboard, the TUI, or REST.
- Run locally or across a private LAN/tailnet with an explicit security policy.
Claude Bridge is a transport, not an autonomous orchestrator. Receiving a message never authorizes an agent to execute it.
Transports
The automated suite performs a real MCP SDK handshake against /mcp. Vendor
clients are not launched in CI. See the evidence-based
compatibility matrix.
Architecture
Messages and live-notification records are committed to SQLite in one transaction. HTTP processes poll that durable outbox (500 ms by default), so a write from a separate stdio process is propagated to connected dashboard/TUI event streams. Durable channel history remains authoritative across restarts.
Install
Install the terminal UI as well:
The PyPI distribution is named claude-code-bridge because claude-bridge
was already assigned to an unrelated project. The command and Python package
remain claude-bridge and claude_bridge.
From a source checkout:
Start safely
Local-only HTTP mode is the default:
This listens on 127.0.0.1:8765. Open http://127.0.0.1:8765/ for the
dashboard or connect an MCP client to http://127.0.0.1:8765/mcp.
Local stdio mode does not open a network listener:
Cross-machine server
Network binding is deliberately fail-closed. Supply the address clients put in their URL as a trusted host and require a token:
Here 100.64.0.10 might be the server's tailnet address. A DNS deployment
would use a value such as bridge.example.internal. --trusted-host values
are hostnames or IP addresses, without a URL scheme or path, and the option is
repeatable.
Two independent checks are required:
--trusted-hostcontrols which HTTP Host names are accepted; and- the Bearer token controls who can use protected endpoints.
For a deliberately unauthenticated private test network, replace the token
with --allow-unauthenticated-network. That is an explicit risk acceptance,
not the recommended production setup.
Use --tls-cert and --tls-key, an HTTPS reverse proxy, or an encrypted
overlay network before sending sensitive content across an untrusted network.
See the security policy
for the complete trust model.
Container
The official image also fails closed. A network deployment must provide its trusted host and authentication policy:
The SQLite database is stored in /data. Release images use exact and
major/minor tags; edge tracks main.
Connect a client
Claude Code
Remote Streamable HTTP:
Local stdio:
For a protected remote endpoint, attach the matching Authorization header
using the option supported by the installed Claude Code version. Legacy
configurations can continue to target /sse with --transport sse while they
migrate.
Codex
Local stdio in ~/.codex/config.toml:
Remote Streamable HTTP:
These examples follow the transports each client documents. The repository's CI verifies MCP protocol behavior, not a full vendor-client launch. See compatibility matrix before making support claims.
MCP tools
Tool results include structured data for clients that support MCP structured content and a readable text representation for compatibility.
Reliable task/result example
The orchestrator sends a structured task with a stable retry key:
The worker waits using its persisted consumer identity:
After applying the task successfully, it advances its cursor:
It can then send a result to a return channel using the same thread_id and
correlation_id. Acknowledgement supplies at-least-once processing semantics;
it does not make arbitrary external side effects exactly once.
The complete envelope, retry, cursor, and retention contract is documented in protocol reference.
Task queue (work distribution)
Messages fan out — every consumer cursor sees every message. A task queue is the opposite: each task is claimed by exactly one worker. Point a fleet of worker agents at a channel and they share the work without ever double-processing it.
The orchestrator enqueues tasks (dedup-safe with an idempotency key):
Each worker claims the next task, holding a lease (a visibility timeout). Two
workers never get the same task; wait_seconds long-polls an empty queue:
It finishes before the lease expires — complete on success, fail to retry —
both fenced by the lease_token, so a reclaimed task can't be clobbered:
If a worker crashes and never resolves its task, the lease expires and the task
is requeued automatically — or dead-lettered once max_attempts is exhausted.
This is at-least-once delivery, so make task handlers idempotent.
bridge_tasks(channel="builds") shows the queue's per-status counts.
Channels
Channels are created on first write. A readable convention is
<project>:<purpose>:
A channel name is routing, not authorization. In the current shared-token model, any authorized client can read, write, or clear any channel.
Dashboard, TUI, and JSON API
The dashboard is served at / unless --no-dashboard is used. It consumes the
JSON API and the per-channel event stream. Its React application, fonts, and
other runtime assets are bundled with the package, so loading the dashboard
does not contact a third-party CDN. A restrictive Content Security Policy is
applied to the static application.
Run the TUI:
The TUI reads CLAUDE_BRIDGE_AUTH_TOKEN from the environment, keeping the
secret out of the process command line.
Core HTTP endpoints:
The event stream can drop a slow subscriber after its buffer fills; durable
history remains authoritative. Reconnect with the last message ID and honor
cursor_stale or replay_truncated by fetching history explicitly.
Authentication and browser boundaries
Set CLAUDE_BRIDGE_AUTH_TOKEN, --auth-token-file, or --auth-token. The
literal CLI form can appear in process listings; the environment variable or a
permission-restricted file is preferred.
When enabled, protected REST, MCP, and event endpoints require:
/status remains public and deliberately contains minimal information. The
static dashboard shell may be reachable, but protected data APIs still require
the token.
Unsafe browser mutations are restricted by Origin, JSON endpoints require a
JSON media type, and Host headers are allowlisted. Extra browser origins are
configured independently with repeatable --cors-origin flags.
The dashboard submits the Bearer token once to POST /api/session and receives
a short-lived opaque HttpOnly, SameSite=Strict cookie. The master token is
not written to local storage or a URL. Event streams authenticate with that
cookie; ?token= query authentication is rejected. Logging out revokes the
session, and a server restart invalidates all in-memory dashboard sessions.
Configuration
CLI values take precedence where a matching flag exists. Invalid numeric or boolean environment values fail during startup with a configuration error.
Persistence and operational limits
- SQLite runs in WAL mode and is suitable for a personal or small-team relay.
- The server is not currently a multi-node or high-availability message broker.
- One HTTP worker plus cooperating stdio processes can share the WAL database; the durable outbox propagates their live events. This remains a small-scale SQLite design, not a multi-node or enterprise broker.
- Retention can invalidate old cursors. Important work products belong in a repository or artifact store, not only in bridge history.
- The shared Bearer token does not provide identity or per-channel permissions.
- No benchmark claim is made without a reproducible benchmark and environment.
The future operations and authorization milestones are in roadmap.
Development
CI tests Linux across Python 3.10–3.13 and runs current-version smoke jobs on Windows and macOS. The real-socket MCP test covers initialization, tool listing, send, receive, wait, and acknowledgement through the official SDK. A separate job builds the sdist and wheel, validates their metadata, installs each artifact into a clean environment, and checks the CLI.
Read the contribution guide before proposing a new capability. For a vulnerability, use the private process in the security policy, not a public issue.
Roadmap
The current sequence is:
1.2— secure Streamable HTTP, structured messages, idempotency, and durable consumers;1.3— native client diagnostics and an experimental Claude Channels companion;1.4— individual identities, scopes, ACLs, quotas, and token rotation;1.5— observability, operational tooling, and an optional scalable backend; and2.0— federation and an optional A2A adapter if real usage demands them.
Each milestone and its non-goals are defined in the roadmap.
License
MIT — see the license.
Founded and maintained by Constripacity.
来源:README.md,提交 0299d13
工具
0版本历史
1- v1.3.0最新Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分
其他 Claude 集成
Claude Platform Docs
com.claude.platform官方发布者
远程 MCP 服务器,让助手搜索并阅读 Claude 平台文档与 API 参考。

Insta Edits for Claude
由 GitHub 账号 faisalkhanzemi 发布
把 Claude Code 连接到 Mac 版 Instagram Edits,同步完整的 274 个工具编辑器,让助手剪辑 Reels。

Claude Checkpoint Mcp
由 GitHub 账号 daniel-munoz 发布
本地 MCP 服务器,把 Claude Code 会话的工作状态保存为项目内的 JSON 文件,并能还原成简短的续接摘要。

Qwen DAP MCP — C/C++ Debugger for Claude Code, Codex & Qwen
由 GitHub 账号 spk-c 发布
通过 GDB、LLDB 和 MCP 为 Claude Code、Codex 和 Qwen 提供 C/C++ 崩溃、挂起和转储调试AI 翻译

AVE for Claude Code — Local Video Editing
由 GitHub 账号 lemberalla 发布
仅适用于 Claude Code 的本地 AVE 时间线编辑与导出。需要现有 AVE 连接。AI 翻译