Spec Driven Development
MCP Server that facilitates spec-driven development workflows, not just Vibe Coding.
คำอธิบายจากผู้ทำ (ภาษาอังกฤษตามต้นฉบับ)
Durable local-first MCP relay for independent coding agents.
สามเรื่องนี้ไม่รวมเป็นคะแนนเดียว เพราะความเห็น การวัด และความนิยม เป็นคนละเรื่องกัน
ตัวนี้ยังไม่ได้เรียบเรียงเป็นภาษาไทย ด้านล่างคือข้อเท็จจริงที่เราอ่านจาก registry
เลือกโปรแกรม AI ที่คุณใช้ แล้วคัดลอกค่าตั้งไปวาง
CLAUDE_BRIDGE_DB, CLAUDE_BRIDGE_AUTH_TOKENค่าที่ติดป้ายความลับคือกุญแจของบัญชีคุณ อย่าส่งให้ใคร และอย่าวางในแชต
ต้องเตรียมก่อน
คุณใช้แอปไหน
เลือกแอปด้านบน เราจำไว้ให้ ครั้งหน้าปุ่มจะขึ้นว่า “ติดตั้งลง …”
เปิด Claude Desktop → Settings → Developer → Edit Config แล้ววางค่านี้ในไฟล์ claude_desktop_config.json
{
"mcpServers": {
"claude-code-bridge": {
"command": "uvx",
"args": [
"claude-code-bridge",
"--stdio"
],
"env": {
"CLAUDE_BRIDGE_DB": "ใส่ค่าของคุณ",
"CLAUDE_BRIDGE_AUTH_TOKEN": "ใส่ค่าของคุณ"
}
}
}
}พิมพ์คำสั่งนี้ใน Terminal
claude mcp add claude-code-bridge --env CLAUDE_BRIDGE_DB='ใส่ค่าของคุณ' --env CLAUDE_BRIDGE_AUTH_TOKEN='ใส่ค่าของคุณ' -- uvx claude-code-bridge --stdioเติมค่าที่เว้นว่างไว้ก่อนรัน
วางในไฟล์ .cursor/mcp.json ของโปรเจกต์ หรือ ~/.cursor/mcp.json
{
"mcpServers": {
"claude-code-bridge": {
"command": "uvx",
"args": [
"claude-code-bridge",
"--stdio"
],
"env": {
"CLAUDE_BRIDGE_DB": "ใส่ค่าของคุณ",
"CLAUDE_BRIDGE_AUTH_TOKEN": "ใส่ค่าของคุณ"
}
}
}
}เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง
วางในไฟล์ .vscode/mcp.json ของโปรเจกต์
{
"servers": {
"claude-code-bridge": {
"type": "stdio",
"command": "uvx",
"args": [
"claude-code-bridge",
"--stdio"
],
"env": {
"CLAUDE_BRIDGE_DB": "ใส่ค่าของคุณ",
"CLAUDE_BRIDGE_AUTH_TOKEN": "ใส่ค่าของคุณ"
}
}
}
}เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง
ตัวนี้รันในเครื่องคุณ แต่ ChatGPT ต่อได้เฉพาะ server บนอินเทอร์เน็ต ลองเลือกแอปอื่น
ตัวเลือกเก็บในคุกกี้บนเครื่องนี้ ไม่ต้องมีบัญชี
CLAUDE_BRIDGE_DB envค่าตั้งนี้สร้างจากข้อมูลใน registry ของผู้ทำ ถ้าไม่ตรงกับ README ให้เชื่อ README
รันในเครื่องคุณ รายการเครื่องมือจะขึ้นในแอป AI หลังติดตั้ง
เราตรวจจากข้อมูลที่ใครก็เปิดดูได้ ยังไม่ได้อ่านโค้ด ข้อที่ไม่เกี่ยวกับตัวนี้ไม่นับในตัวหาร · ตรวจเมื่อ 7 พ.ย. 2569
ชื่อใน registry ยืนยันด้วยบัญชี GitHub constripacity ซึ่งเป็นเจ้าของ repo
ยังไม่ได้อ่านข้อมูล repo จาก GitHub
ยังไม่ได้อ่านข้อมูล repo จาก GitHub
ตัวนี้รันบนเครื่องคุณ ไม่มี endpoint บนอินเทอร์เน็ต
ตัวนี้รันบนเครื่อง ใช้ค่าที่ตั้งในเครื่องแทน
รันในเครื่องคุณ เราอ่านรายการเครื่องมือได้เฉพาะตัวที่มี endpoint บนอินเทอร์เน็ต
เทียบกับทุก server ที่ยังใช้งานในหมวดนี้ทั้งทะเบียน ดาวนับเฉพาะเมื่อผู้ลงทะเบียนเป็นเจ้าของ repo
จากการตรวจเบื้องต้นของเรา ผ่าน 1 จาก 1 ข้อที่ตรวจได้ เรายังไม่ได้อ่านโค้ด ก่อนใส่กุญแจหรือ token ให้ดูว่า server ขอสิทธิ์อะไร และเลือกกุญแจที่ทำได้เท่าที่จำเป็น
ต้องใส่ค่าเหล่านี้: CLAUDE_BRIDGE_AUTH_TOKEN
รันบนเครื่องของคุณ โปรแกรม AI จะเปิด server ขึ้นมาเองเมื่อใช้ ข้อมูลไม่ต้องผ่านเซิร์ฟเวอร์ของผู้ทำ (ยกเว้นตัวที่ไปเรียกบริการออนไลน์ต่อ)
repo บน GitHub มีการแก้โค้ดล่าสุด – และส่งรุ่นล่าสุด (1.3.0) เข้า registry 3 เดือนที่ผ่านมา
โปรแกรมที่รองรับ MCP เช่น Claude Desktop, Claude Code, Cursor และ VS Code ตัวนี้ต้องมี Python (uv) ในเครื่องด้วย
ในหมวดเดียวกันมี Spec Driven Development, Remote Desktop Commander, sync. labs
server หมวดเดียวกันจากผู้ทำคนอื่น เรียงตามดาว
อ่านการ์ด:★ ดาว GitHubiสามเสา: รีวิว · ผลตรวจ · การใช้งานiอัปเดต = วันที่ส่งรุ่นล่าสุดเข้า registryi
MCP Server that facilitates spec-driven development workflows, not just Vibe Coding.
Remote Desktop Commander: use files, terminal and processes on your own computers from any AI app.
Lipsync videos, dub them into other languages, make talking videos and open sync. Studio.
ส่วนนี้คัดจาก repo ของผู้ทำตามต้นฉบับ PopNx MCP ไม่ได้ตรวจหรือรับรองเนื้อหา ตัด HTML รูปภาพ และสคริปต์ออกแล้ว ลิงก์จะพาออกนอกเว็บ
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
before replacing a stable deployment.
Claude Bridge is a transport, not an autonomous orchestrator. Receiving a message never authorizes an agent to execute it.
| Interface | Path or command | Purpose |
|---|---|---|
| MCP Streamable HTTP | /mcp | Recommended remote MCP transport |
| MCP stdio | claude-bridge --stdio | Local subprocess transport |
| Legacy MCP HTTP+SSE | /sse and /messages/ | Existing configurations during migration |
| Channel event SSE | /events/channel/ | Dashboard, TUI, and custom listeners; not MCP |
| JSON API | /api/* | Browser, scripts, and integrations |
The automated suite performs a real MCP SDK handshake against /mcp. Vendor clients are not launched in CI. See the evidence-based compatibility matrix.
flowchart TB
A["Claude Code / Codex / MCP client"] -->|"Streamable HTTP /mcp"| B["Claude Bridge"] C["Local MCP client"] -->|"stdio"| B D["Dashboard / TUI / script"] -->|"REST + event SSE"| B B --> E[("SQLite")]
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.
python -m pip install claude-code-bridge
Install the terminal UI as well:
python -m pip install "claude-code-bridge[tui]"
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:
git clone https://github.com/constripacity/Claude-Bridge.git
cd Claude-Bridge python -m pip install -e ".[dev]"
Local-only HTTP mode is the default:
claude-bridge
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:
claude-bridge --stdio
Network binding is deliberately fail-closed. Supply the address clients put in their URL as a trusted host and require a token:
export CLAUDE_BRIDGE_AUTH_TOKEN="$(openssl rand -hex 32)"
claude-bridge \ --host 0.0.0.0 \ --trusted-host 100.64.0.10
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-host controls which HTTP Host names are accepted; andFor 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.
The official image also fails closed. A network deployment must provide its trusted host and authentication policy:
export CLAUDE_BRIDGE_AUTH_TOKEN="$(openssl rand -hex 32)"
docker run --rm -p 8765:8765 \ -v claude-bridge-data:/data \ -e CLAUDE_BRIDGE_AUTH_TOKEN \ -e CLAUDE_BRIDGE_TRUSTED_HOSTS="100.64.0.10" \ ghcr.io/constripacity/claude-bridge:latest
The SQLite database is stored in /data. Release images use exact and major/minor tags; edge tracks main.
Remote Streamable HTTP:
claude mcp add --transport http -s user claude-bridge \
http://127.0.0.1:8765/mcp
Local stdio:
claude mcp add -s user claude-bridge -- claude-bridge --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.
Local stdio in ~/.codex/config.toml:
[mcp_servers.claude_bridge]
command = "claude-bridge" args = ["--stdio"]
Remote Streamable HTTP:
[mcp_servers.claude_bridge]
url = "http://127.0.0.1:8765/mcp" bearer_token_env_var = "CLAUDE_BRIDGE_AUTH_TOKEN"
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.
| Tool | Purpose |
|---|---|
bridge_send | Send legacy text or a protocol-v1 message; supports idempotent retries |
bridge_receive | Read a bounded page using a message cursor or durable consumer cursor |
bridge_wait | Wait up to 55 seconds for new messages without rapid polling |
bridge_ack | Monotonically advance a consumer's channel-scoped cursor |
bridge_channels | List active channels and counts |
bridge_ping | Check bridge health and capabilities |
bridge_status | Summarize recent activity across channels |
bridge_clear | Delete every message (and task) in one channel |
bridge_enqueue | Add a task to a channel's work queue (exclusive; claimed once) |
bridge_claim | Atomically claim the next task with a lease; long-poll with wait_seconds |
bridge_complete | Mark a claimed task done, fenced by its lease_token |
bridge_fail | Fail a claimed task — requeue with backoff, or dead-letter |
bridge_tasks | Inspect a channel's queue: per-status counts and a task list |
Tool results include structured data for clients that support MCP structured content and a readable text representation for compatibility.
The orchestrator sends a structured task with a stable retry key:
bridge_send(
channel="payments:worker", sender="windows-orchestrator", idempotency_key="job-802-task", message={ "schema_version": 1, "type": "task", "content": {"action": "run_tests", "target": "payments"}, "thread_id": "payments-42", "correlation_id": "job-802" } )
The worker waits using its persisted consumer identity:
bridge_wait(
channel="payments:worker", consumer_id="mac-worker", timeout_seconds=20 )
After applying the task successfully, it advances its cursor:
bridge_ack(
channel="payments:worker", consumer_id="mac-worker", message_id=" " )
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.
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):
bridge_enqueue(
channel="builds", payload={"repo": "payments", "action": "run_tests"}, max_attempts=3, idempotency_key="build-802" )
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:
bridge_claim(channel="builds", consumer="worker-3", lease_seconds=300, wait_seconds=20)
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:
bridge_complete(channel="builds", task_id="tsk_…", lease_token="…", result={"passed": 105})
bridge_fail(channel="builds", task_id="tsk_…", lease_token="…", requeue=true, retry_delay_seconds=30)
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 are created on first write. A readable convention is : :
payments:orchestrator
payments:worker payments:events payments:review general:status
A channel name is routing, not authorization. In the current shared-token model, any authorized client can read, write, or clear any channel.
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:
python -m claude_bridge.tui
python -m claude_bridge.tui \ --url http://100.64.0.10:8765 \ --sender mac
The TUI reads CLAUDE_BRIDGE_AUTH_TOKEN from the environment, keeping the secret out of the process command line.
Core HTTP endpoints:
| Endpoint | Purpose |
|---|---|
GET /status | Minimal unauthenticated health check |
GET /api/state | Channel counts, senders, version, and uptime |
GET /api/messages?channel=X&since_id=Y&limit=N | Bounded channel history |
GET /api/messages/{id} | One message detail |
GET /api/wait?channel=X&consumer_id=Y | Bounded long poll using a consumer or message cursor |
| POST /api/send | Send legacy text or a pro
ตัดมาแค่ช่วงต้น อ่านต่อใน repo