Spec Driven Development
MCP Server that facilitates spec-driven development workflows, not just Vibe Coding.
คำอธิบายจากผู้ทำ (ภาษาอังกฤษตามต้นฉบับ)
Agent intercommunication - messaging, channels, shared state, and real-time events
สามเรื่องนี้ไม่รวมเป็นคะแนนเดียว เพราะความเห็น การวัด และความนิยม เป็นคนละเรื่องกัน
ตัวนี้ยังไม่ได้เรียบเรียงเป็นภาษาไทย ด้านล่างคือข้อเท็จจริงที่เราอ่านจาก registry
เลือกโปรแกรม AI ที่คุณใช้ แล้วคัดลอกค่าตั้งไปวาง
ต้องเตรียมก่อน
คุณใช้แอปไหน
เลือกแอปด้านบน เราจำไว้ให้ ครั้งหน้าปุ่มจะขึ้นว่า “ติดตั้งลง …”
เปิด Claude Desktop → Settings → Developer → Edit Config แล้ววางค่านี้ในไฟล์ claude_desktop_config.json
{
"mcpServers": {
"agent-comm": {
"command": "npx",
"args": [
"-y",
"agent-comm"
]
}
}
}พิมพ์คำสั่งนี้ใน Terminal
claude mcp add agent-comm -- npx -y agent-commวางในไฟล์ .cursor/mcp.json ของโปรเจกต์ หรือ ~/.cursor/mcp.json
{
"mcpServers": {
"agent-comm": {
"command": "npx",
"args": [
"-y",
"agent-comm"
]
}
}
}เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง
วางในไฟล์ .vscode/mcp.json ของโปรเจกต์
{
"servers": {
"agent-comm": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"agent-comm"
]
}
}
}เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง
ตัวนี้รันในเครื่องคุณ แต่ ChatGPT ต่อได้เฉพาะ server บนอินเทอร์เน็ต ลองเลือกแอปอื่น
ตัวเลือกเก็บในคุกกี้บนเครื่องนี้ ไม่ต้องมีบัญชี
ค่าตั้งนี้สร้างจากข้อมูลใน registry ของผู้ทำ ถ้าไม่ตรงกับ README ให้เชื่อ README
รันในเครื่องคุณ รายการเครื่องมือจะขึ้นในแอป AI หลังติดตั้ง
เราตรวจจากข้อมูลที่ใครก็เปิดดูได้ ยังไม่ได้อ่านโค้ด ข้อที่ไม่เกี่ยวกับตัวนี้ไม่นับในตัวหาร · ตรวจเมื่อ 6 พ.ย. 2569
ชื่อใน registry ยืนยันด้วยบัญชี GitHub keshrath ซึ่งเป็นเจ้าของ repo
ยังไม่ได้อ่านข้อมูล repo จาก GitHub
ยังไม่ได้อ่านข้อมูล repo จาก GitHub
ตัวนี้รันบนเครื่องคุณ ไม่มี endpoint บนอินเทอร์เน็ต
ตัวนี้รันบนเครื่อง ใช้ค่าที่ตั้งในเครื่องแทน
รันในเครื่องคุณ เราอ่านรายการเครื่องมือได้เฉพาะตัวที่มี endpoint บนอินเทอร์เน็ต
เทียบกับทุก server ที่ยังใช้งานในหมวดนี้ทั้งทะเบียน ดาวนับเฉพาะเมื่อผู้ลงทะเบียนเป็นเจ้าของ repo
จากการตรวจเบื้องต้นของเรา ผ่าน 1 จาก 1 ข้อที่ตรวจได้ เรายังไม่ได้อ่านโค้ด ก่อนใส่กุญแจหรือ token ให้ดูว่า server ขอสิทธิ์อะไร และเลือกกุญแจที่ทำได้เท่าที่จำเป็น
registry ไม่ได้ระบุว่าต้องใช้กุญแจ แต่บางตัวจะขอให้ล็อกอินตอนใช้ครั้งแรก
รันบนเครื่องของคุณ โปรแกรม AI จะเปิด server ขึ้นมาเองเมื่อใช้ ข้อมูลไม่ต้องผ่านเซิร์ฟเวอร์ของผู้ทำ (ยกเว้นตัวที่ไปเรียกบริการออนไลน์ต่อ)
repo บน GitHub มีการแก้โค้ดล่าสุด – และส่งรุ่นล่าสุด (1.3.12) เข้า registry 36 วันที่ผ่านมา
โปรแกรมที่รองรับ MCP เช่น Claude Desktop, Claude Code, Cursor และ VS Code ตัวนี้ต้องมี Node.js ในเครื่องด้วย
ในหมวดเดียวกันมี Spec Driven Development, Remote Desktop Commander, Toggl 2.0
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.
Toggl 2.0 MCP server for tasks, projects, time entries, and workspace operations.
ส่วนนี้คัดจาก repo ของผู้ทำตามต้นฉบับ PopNx MCP ไม่ได้ตรวจหรือรับรองเนื้อหา ตัด HTML รูปภาพ และสคริปต์ออกแล้ว ลิงก์จะพาออกนอกเว็บ
Agent-agnostic intercommunication system. Lets AI coding agents — Claude Code, Codex CLI, Gemini CLI, Aider, or any custom tool — talk to each other, share state, and coordinate work in real time.
| Light Theme | Dark Theme |
|---|---|
When you run multiple AI agents on the same codebase — code review in one terminal, implementation in another, testing in a third — they have no idea the others exist. They duplicate work, create merge conflicts, and miss context.
| Without agent-comm | With agent-comm | |
|---|---|---|
| Discovery | Agents don't know others exist | Agents register with skills, discover by capability |
| Coordination | Edit the same file, create conflicts | Lock files/regions, divide work |
| Communication | None — each agent works blind | Messages, channels, broadcasts |
| State sharing | Duplicate work, missed context | Shared KV store with atomic CAS |
| Visibility | No idea what's happening | Real-time dashboard + activity feed shows everything |
agent-comm gives them a shared communication layer:
low/normal/high/urgent) and optional ackcomm_poll) so mid-flight peer signals are consumed without busy-loopingfile-coord hook (see below) so parallel agents on shared files cannot clobber each otherIt works with any agent that supports MCP (stdio transport) or can make HTTP requests (REST API).
The MCP tools (comm_state, etc.) give agents the _primitives_ to coordinate, but they don't _enforce_ coordination — the agent has to remember to call them. Our bench measured what happens when you rely on the model's discretion: even with strict procedural prompting, Claude follows the protocol on the first claim cycle then drifts back to "be helpful, finish the task." Soft coordination is unreliable.
The fix is a pair of PreToolUse hooks shipped in scripts/hooks/: `file-coord` intercepts every Edit/Write/MultiEdit and claims the file via REST POST /api/state/file-locks/ /cas (blocks the edit if another agent holds the lock); `bash-guard` intercepts git commit, git push, npm install, npm test, builds, migrations, and dev-server starts and blocks/warns when they would conflict with another session's WIP. The protocol becomes infrastructure, not a prompt the agent might ignore.
The bench's headline pilot is `multi-term-commit` — directly modeling the daily pain of two terminal sessions on the same project. Session A edits two files but doesn't commit. Session B then edits two other files and runs git commit -am "my work". Without the hook, B's commit silently includes A's WIP. With the hook, B's commit is blocked at the bash layer with an actionable message, and B reacts (selective staging, restore, or coordinate). Bench result:
| naive (no hook) | with hooks | |
|---|---|---|
| Commit purity | MIXED — bar.js, baz.js, foo.js, qux.js | PURE — baz.js, qux.js |
| Wall time | 91.0s | 78.8s (-13%) |
| Total cost | $0.774 | $0.591 (-24%) |
| Outcome | A's WIP silently committed under B's name | clean commit, no clobber |
The hook is faster AND cheaper, not just safer. Reason: when agents lack coordination on shared workspaces, they read stale state, get confused mid-task, retry, and re-think. Serializing access and surfacing the conflict early removes that wasted thinking. Run npm run setup to install both hooks automatically; see Setup → File Coordination for manual install on Claude Code, OpenCode, or any custom MCP client. See bench/README.md for the measurement methodology.
agent-comm is a single Node process that exposes three transports — MCP stdio (for AI hosts), REST + WebSocket (for hooks, dashboards, custom scripts) — backed by a SQLite database in WAL mode. Hooks installed in your Claude Code (or other host) settings call the REST endpoint at localhost:3421 to claim file locks, query who-edited-what, and broadcast presence. The dashboard UI at the same port is a live view of every agent, message, channel, and shared-state entry. Multiple AI hosts can connect simultaneously and see the same world.
graph TD
A["Agent A (Claude Code)"] -->|MCP stdio| COMM B["Agent B (Codex CLI)"] -->|MCP stdio| COMM C["Agent C (Custom script)"] -->|REST API| COMM HK["PreToolUse hooks (file-coord, bash-guard)"] -->|REST cas| COMM
subgraph COMM["agent-comm"] D["Agents Register, discover, heartbeat"] E["Messages Direct, broadcast, channels, threads"] F["State Namespaced KV with CAS"] G["Events Real-time pub/sub"] D --> DB["SQLite DB WAL mode, FTS5 search"] E --> DB F --> DB DB --> WS["WebSocket"] end
WS --> UI["Dashboard UI http://localhost:3421"]
npm install -g agent-comm
git clone https://github.com/keshrath/agent-comm.git
cd agent-comm npm install npm run build
agent-comm runs as a stdio MCP server, so any MCP-compatible host can use it. Tested hosts include Claude Code, Cline, OpenCode, Cursor (read-only state), Windsurf, Codex CLI, Aider, and Continue.dev. Adapter recipes for each are in docs/SETUP.md.
Generic MCP config:
{
"mcpServers": { "agent-comm": { "command": "npx", "args": ["agent-comm"] } } }
Add this to your host's MCP config file (the path varies by host — ~/.claude.json for Claude Code, ~/.config/opencode/config.json for OpenCode, ~/.cursor/config.json for Cursor, etc. — see the per-host sections in docs/SETUP.md).
The dashboard auto-starts at http://localhost:3421 on the first MCP connection regardless of which host is connected.
node dist/server.js --port 3421
npm run setup
Registers the MCP server in ~/.claude.json, installs the hook scripts (lifecycle + file-coord + bash-guard), and configures permissions. Other hosts: see docs/SETUP.md for the per-host integration recipes — every host that supports pre-tool-call hooks can use the same file-coord.mjs script unchanged.
| Tool | Description |
|---|---|
comm_register | Register with name, capabilities, metadata, skills, and auto-join channels |
comm_agents | Agent management — actions: list, discover, whoami, heartbeat, status, unregister |
comm_send | Send messages — direct (to), channel, broadcast, reply (reply_to), forward (forward) |
comm_inbox | Read inbox (direct + channel messages, unread filter, importance filter, thread view via thread_id) |
comm_poll | Block until a new inbox message arrives (supports timeout_ms and importance filter) |
comm_channel | Channel management — actions: create, list, join, leave, archive, update, members, history |
comm_state | Shared key-value state — actions: set, get, list, delete, cas |
All endpoints return JSON. Loopback only: foreign Host/Origin headers get 403, request bodies must be application/json, no wildcard CORS. See full API reference for details.
GET /health Server status + uptime
GET /api/agents List online agents GET /api/agents/:id Get agent by ID or name GET /api/agents/:id/heartbeat Agent liveness (status + heartbeat age) GET /api/channels List active channels GET /api/channels/:name Channel details + members GET /api/channels/:name/members Channel member list GET /api/channels/:name/messages Channel messages (?limit=50) GET /api/messages List messages (?limit=50&from=&to=&offset=) GET /api/messages/:id/thread Get thread GET /api/search?q=keyword Full-text search (?limit=20&channel=&from=) GET /api/state List state entries (?namespace=&prefix=) GET /api/state/:namespace/:key Get state entry GET /api/feed Activity feed events (?agent=&type=&since=&limit=50) GET /api/overview Full snapshot (agents, channels, messages, state) GET /api/export Full database export as JSON
POST /api/messages Send a message (body: {from, to?, channel?, content}) POST /api/state/:namespace/:key Set state (body: {value, updated_by}) POST /api/state/:namespace/:key/cas Atomic compare-and-swap (file-coord hook uses this) DELETE /api/messages Purge all messages DELETE /api/messages Delete messages by filter DELETE /api/messages/:id Delete a message (body: {agent_id}) DELETE /api/state/:namespace/:key Delete state entry DELETE /api/agents/offline Purge offline agents POST /api/cleanup Trigger manual cleanup POST /api/cleanup/stale Clean up stale agents and old messages POST /api/cleanup/full Full database cleanup
comm_agents with action: "heartbeat" accepts an optional status_text parameter, letting agents update
ตัดมาแค่ช่วงต้น อ่านต่อใน repo