desktop-agent-bus
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@desktop-agent-bus Tell the executor to run the backtest"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
desktop-agent-bus
desktop-agent-bus lets multiple AI desktop applications on the same
machine exchange MCP messages without Redis, a database, or a hosted service.
Each application starts the same MCP server with its own role name. Every server instance appends to and reads from one shared JSONL room file.
Desktop client A Desktop client B Desktop client C
| | |
+------ desktop-agent-bus ------+
|
v
~/.desktop_agent_bus/room.jsonlScope
Designed for 2-5 local AI desktop clients and low-frequency collaboration.
Uses only the Python standard library at runtime.
Supports MCP over stdio and local HTTP.
Routes work to named roles while retaining broadcast compatibility.
Keeps reset rooms and audit-session exports available for later review.
Uses POSIX file locks for cross-process write safety.
It is not a distributed queue, not a cross-machine transport, and not a replacement for Redis, A2A, or a durable workflow system.
Related MCP server: agent-room-mcp
Requirements
Python 3.10+
macOS or Linux for cross-process file locking
MCP-capable desktop clients that can launch a local command or call a local HTTP endpoint
Quick start
Clone the source and install it locally:
git clone https://github.com/hemajack57-collab/desktop-agent-bus.git cd desktop-agent-bus python3 -m pip install .Choose one shared room path, for example
${HOME}/.desktop_agent_bus/room.jsonl.Configure every MCP client to launch the script with a distinct
--nameand the exact sameAGENT_BUS_FILE.Restart clients, call
bus_who, then callbus_readwithsince: 0.
Example stdio MCP configuration:
{
"mcpServers": {
"desktop-agent-bus": {
"command": "desktop-agent-bus",
"args": [
"--name",
"reviewer"
],
"env": {
"AGENT_BUS_FILE": "/absolute/path/to/room.jsonl"
}
}
}
}See docs/INTEGRATIONS.md for configuration guidance and docs/SECURITY.md for local-file safety boundaries.
MCP tools
Tool | Purpose |
| Send a tagged message to specific roles or broadcast. |
| Read newer messages; optionally filter by recipient, sender, or tag. |
| Long-poll for a matching message, addressed to the caller by default. |
| List archived rooms with metadata, or replay one by its listed name. |
| Search active messages by text, sender, or tag; optionally include archives. |
| Export the current or most recently closed audit session as Markdown. |
| Show live roles and MCP process counts. |
| Open an audit session after stating its measurable ceiling. |
| Close the audit session and record an outcome. |
| Archive the current room and begin a new conversation. |
Addressing and filtering
Leave to empty and a message is broadcast, exactly as in earlier releases. Set
it and only the named roles receive it when they use bus_wait or opt in to
recipient filtering with bus_read:
{"content": "run the backtest", "to": ["executor"], "tags": ["task"]}bus_wait defaults to for_me: true, so each role is woken only by broadcasts
and by messages addressed to it. Pass for_me: false to observe all traffic, or
from_sender / tags to narrow further. bus_read remains an all-room read by
default for compatibility; pass for_me: true when polling it as a role.
from_sender matches one exact role name. Supplying one or more tags returns
messages carrying any of those tags. Records written before 1.4 carry no to
field and are always treated as broadcasts.
{"since": 41, "for_me": true, "from_sender": "executor", "tags": ["result"]}Addressing is routing, not authorization: clients that share the room file can
still call bus_read with for_me: false. Use filesystem permissions and a
separate room for data that must not be visible to another local client.
Review and archives
bus_reset archives a room rather than deleting it, and the archive stays
readable:
bus_history list archives with counts and time spans
bus_history {"archive": "room.20260812-120000-000000.jsonl"}
replay one listed archive
bus_search {"query": "drawdown", "include_archives": true}
search active and archived rooms
bus_export Markdown record of the current or last sessionbus_export uses the session's base_msg_id watermark, so it captures every
message from bus_open onward together with the stated ceiling and the recorded
outcome — a self-contained review artifact. Search text is case-insensitive and
matches message content or sender; it also accepts from_sender, tags, and a
maximum limit.
bus_history accepts only an archive name returned by its listing; it does not
accept arbitrary paths. Archive names and search results are local room data, so
do not paste untrusted room contents into a shell command.
Efficient waits
bus_wait compares the room file's timestamp and size before parsing JSONL.
When no writer has changed the file, an idle poll performs only a filesystem
metadata check instead of re-reading the transcript. This keeps multiple waiting
roles inexpensive as collaboration history grows.
Local HTTP adapter
For a client that connects to MCP through HTTP:
python3 -m desktop_agent_bus \
--http \
--host 127.0.0.1 \
--port 8765 \
--name reviewerThe endpoint is http://127.0.0.1:8765/mcp. HTTP is only an MCP adapter; it
does not make the shared room file available to other machines.
The adapter rejects all requests with an Origin header and rejects non-loopback
Host headers, so browser pages cannot call it. It also limits request bodies to
1 MiB by default. Set AGENT_BUS_TOKEN to require a constant-time checked
Authorization: Bearer <token> header from non-browser HTTP clients. Do not put
that token in a repository or a client configuration shared with untrusted users.
Safe configuration helper
desktop-agent-bus-install previews a Claude Desktop MCP entry by default. When
installed, it configures the desktop-agent-bus console command; a source
checkout falls back to its local script:
desktop-agent-bus-install --name reviewerIt writes a backup and applies the change only with explicit confirmation:
desktop-agent-bus-install --name reviewer --applyDevelopment
python3 -m unittest discover -s tests -v
python3 -m pip wheel --no-deps .License
Available Tools
10 toolsbus_closeA
Close the active audit session and record its outcome.
Inputs: outcome (required).
bus_exportA
Export the current or last audit session as a Markdown review record, covering every message since it was opened.
Inputs: no named parameters.
bus_historyC
List archived rooms, or replay one by name when 'archive' is given.
Inputs: limit, archive.
bus_openC
Open an audit session after stating its measurable ceiling.
Inputs: topic (required), ceiling (required).
bus_readB
Read messages newer than an id cursor, optionally filtered by recipient, sender, or tags.
Inputs: tags, limit, since, for_me, +1 more.
bus_resetB
Archive the active room and begin a new conversation.
Inputs: no named parameters.
bus_searchA
Search the room, and optionally its archives, by text, sender, or tag.
Inputs: tags, limit, query, from_sender, +1 more.
bus_sendA
Send a message to the shared room. Set 'to' to address specific roles; leave it empty to broadcast to everyone.
Inputs: content (required), to, tags, sender, +1 more.
bus_waitB
Long-poll until a matching message arrives. Defaults to messages broadcast or addressed to this role, excluding its own.
Inputs: tags, since, for_me, timeout, +3 more.
bus_whoA
Show live roles and MCP processes in the room.
Inputs: no named parameters.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 10 tools
Each tool targets a distinct action: searching, reading, waiting, sending, session management, room reset, history, and role discovery. The overlapping message retrieval tools (read, wait, search) are clearly differentiated by their behavior (pull, long-poll, search).
All tools share the bus_ prefix with a short action verb. bus_who and bus_history are less verb-like but still follow the concise command-style pattern, and no style mixing (all lowercase, snake_case). Slight inconsistency in verb vs. noun, but overall predictable.
10 tools for a room-based messaging and audit system is well-scoped. Each tool covers a distinct capability with no redundant duplicates.
The set covers the full messaging lifecycle (send, read, wait), search, history, audit session lifecycle (open, close, export), room reset, and participant discovery. No obvious dead ends.
Maintenance
Related MCP Connectors
Shared room so a human's AI agents meet over MCP: rooms, lounge, files, knowledge.
MCP rooms for people and AI agents: create rooms, invite, catch up, read attachments and reply.
Shared memory and mail for your AI agents. Verified with Claude Code; other MCP clients in testing.
Shared memory for your AI tools: tasks, notes and context every tool can read and write over MCP.
Related MCP Servers
- AlicenseNot gradedqualityBmaintenanceEnables AI agents to collaborate in shared rooms with people, managing room presence, message delivery, and automatic agent registration via MCP tools.MIT
- AlicenseNot gradedqualityBmaintenanceEnables real-time multi-agent AI collaboration in shared rooms over MCP, allowing coding agents to exchange structured messages, track evidence-gated tasks, and export reports for distributed development, code review, and frontend-backend integration.5 npmMIT
- AlicenseBqualityCmaintenanceEnables Claude Code and Codex agents to exchange durable room-based messages through a shared local chat room, with incremental reads, recipients, structured metadata, and SQLite persistence over MCP stdio.4MIT
- AlicenseNot gradedqualityBmaintenanceEnables multiple MCP-connected AI agents to talk to each other in local, owner-controlled message rooms where each agent has its own identity for reading, posting, replying, and tracking unread messages. A browser UI lets the operator watch conversations live, create rooms, manage per-agent access, and step in as themselves without any cloud service or API keys.37 npmMIT