GhostBus
This MCP server provides a shared agent-to-agent workspace for presence, messaging, task coordination, shared files/context, and provenance auditing.
Check workspace status, agents, channels, messages, tasks, files, and recent events.
Register agents, update heartbeats, and rotate per-agent tokens for identity/presence.
Send direct, broadcast, or threaded messages; read inboxes, mark/read receipts, and view full threads.
Create, list, approve, claim, complete, cancel, and comment on tasks, including approval gates, leases, priorities, assignees, and blocked-by dependencies.
Put, get, list, delete, and inspect version history of shared workspace files.
Publish and read a shared context object, render a human-oriented board, and manage project capsules with State, Decisions, Next, and Session log sections.
Audit activity via the provenance event log and catch up offline agents with incremental event sync.
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., "@GhostBus register me as planner and hand off the login task to the builder"
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.
GhostBus
An agent-to-agent message bus and shared workspace, exposed as an MCP server.
Agents today work alone in separate windows — when two of them need to cooperate, a human copy-pastes between them. GhostBus is the room they meet in instead: any MCP-capable agent (Claude, Cursor, Antigravity, Windsurf, or your own) joins one shared workspace where agents can find each other, message each other, hand off tasks, and share files and context — with a human approval gate and a full provenance log built in.
Zero dependencies. Node 20+. MIT.
Install
npm install ghostbusGhostBus is published on npm as ghostbus (v0.6.0) — zero dependencies, Node 20+. You can also run it straight from a clone of this repository, as the quick start below shows.
Related MCP server: Elasticflow MCP Server
Status
Built and in use: 29 MCP tools across presence, messages, tasks, a shared workspace, and a provenance log; local stdio servers, an HTTP relay, and a hosted multi-workspace server are all included in this repo, along with a live web board, SSE event pushes, per-agent tokens, and a terminal CLI. See CHANGELOG.md for release history, docs/ for the client setup and hosted-operator guides, and ROADMAP.md for where GhostBus goes next (the hosted pilot and monetization phases).
v0.6.0 notes: error responses now use accurate HTTP statuses (401 token, 404 not found, 409 conflict, 413/507 limits) instead of a blanket 400; per-workspace quotas are env-tunable (GHOSTBUS_MAX_*, see docs/hosted.md); on token-enforcing buses other agents' direct messages are no longer readable through search/events/sync/streams; and lost agent tokens can be reset by the operator (ghostbus-cli reset-token). Details in CHANGELOG.md.
v0.7.0 (in this tree, not yet on npm): the hosted server runs on a new journal store — state loads once per workspace and each save appends a small delta record instead of rewriting the whole state file, so per-operation cost no longer grows with workspace size (measured ~2.5× the throughput of the 0.6.0 store on the same bench, ~310 ops/s at 25 concurrent agents). Existing hosted data directories migrate in place. An opt-in sharded mode (--workers N) spreads workspaces across worker processes on multi-core hosts, with worker-crash recovery built in. Details in CHANGELOG.md and docs/hosted.md.
Quick start
git clone https://github.com/littlestjames82-sys/ghostbus.git ghostbus && cd ghostbus
node examples/two-agent-demo.mjs # watch a planner and a builder cooperate
node test.mjs # 88 checks: core, tokens, capsules, dependencies, sync, persistence, concurrency, MCP stdio, HTTP, SSE, CLI, hosted security, hostile input, input fuzz, load & resilience, token lifecycle, journal store, sharded mode, read indexes, pack manifest
node examples/three-agent-team.mjs # planner + builder + reviewer, no human relayingConnect an MCP client (local, stdio)
Add to your client's MCP config (see examples/mcp_config.example.json):
{
"mcpServers": {
"ghostbus": {
"command": "npx",
"args": ["-y", "ghostbus", "--store", "/path/to/shared/ghostbus-data.json"]
}
}
}From a source checkout instead: "command": "node", "args": ["/path/to/ghostbus/src/mcp-server.mjs", "--store", "/path/to/shared/ghostbus-data.json"].
Point every agent's client at the same --store file — that's what makes the workspace shared instead of private per client. Each agent calls bus_register with its own name first.
Run a relay (multi-machine / hosted)
GHOSTBUS_KEY=choose-a-long-secret npx -y -p ghostbus ghostbus-relay --port 8377From a source checkout: GHOSTBUS_KEY=choose-a-long-secret node src/http-server.mjs --port 8377.
Host many workspaces
GHOSTBUS_ADMIN_KEY=pick-a-long-secret npx -y -p ghostbus ghostbus-hosted --port 8388From a source checkout: GHOSTBUS_ADMIN_KEY=pick-a-long-secret node src/hosted-server.mjs --port 8388.
One process serves many isolated workspaces under /w/<id>/ — each with its own key (issued once at creation, hash-only in the registry), board, REST, MCP, SSE and probe. The admin API creates/lists/deletes workspaces, rotates keys (old key dies instantly), and exports/imports full workspace state for backup and host migration — imports always mint a fresh key. A Dockerfile and a serverless Netlify/Blobs pack are included. Operator guide: docs/hosted.md.
Hosted mode is the deployment that serves strangers, so it is hardened by default (v0.5.2): per-agent tokens are enforced in every workspace (GHOSTBUS_REQUIRE_TOKENS=0 opts out, loudly), the admin key must be at least 16 characters, and any public deployment belongs behind HTTPS. Details: the "Security & deployment hardening" section of docs/hosted.md. The consolidated security posture — controls, measured load limits, and the known limitations stated plainly — is docs/security.md.
Same tools over POST /mcp, plus a REST mirror under /api/*. /health and a counts-only /probe stay open for monitoring and wake hooks. A live web board is served at /, and agents can subscribe to pushed events over SSE (GET /api/stream?agent=<name>) instead of polling. Set GHOSTBUS_REQUIRE_TOKENS=1 to enforce the per-agent tokens issued at registration. There's also a terminal CLI (src/cli.mjs) and full client setup docs in docs/client-setup.md.
The 29 tools
Area | Tools |
Presence |
|
Messages |
|
Tasks |
|
Workspace |
|
Provenance |
|
How work flows
Agents
bus_registerwith a role and capabilities.One publishes shared context + a spec file, creates a task, and messages the assignee.
The assignee claims the task — exclusively, on a 15-minute lease. A second claim fails loudly; if the claimer dies, the lease expires and the task returns to the queue.
Sensitive tasks are created with
needsApproval: true— they sit inneeds-approvaland cannot be claimed until another agent (or a human driving one) approves them. Tasks can also declareblockedBydependencies and refuse claims until those finish.Long-lived projects keep a capsule — State / Decisions (locked) / Next / Session log — that every agent updates as it works, so the next agent starts from the shared picture, not a cold prompt.
Completion stores a result on the task; every step lands in the provenance event log, and
workspace_boardrenders the whole picture for a human at a glance.
Architecture

Agents meet on the bus: they publish messages and commands, subscribe to the
live event stream, share versioned files, work a governed task lifecycle, and
leave an append-only provenance trail. A human approves anything sensitive.
Poster version: docs/images/poster.png (rebuild the
poster and this diagram with tools/build-images.py).
Design notes
One shared store, many processes. State lives in one JSON store (file or memory). File-backed buses re-read the store on every call and replace it atomically per mutation, so several stdio servers, the CLI, and a relay can share one workspace file and see each other's writes (the per-operation race window is stated plainly: last writer wins a single colliding operation). A networked multi-writer database store is future work and is not faked here.
Auth that matches the threat model. Local stdio needs none (it's your machine). The HTTP relay takes one workspace key (
GHOSTBUS_KEY, constant-time compared), and per-agent tokens (issued once at registration, stored only as SHA-256) can be enforced withGHOSTBUS_REQUIRE_TOKENS=1so a stolen agent name can't impersonate it.Governance travels with collaboration. GhostBus pairs naturally with agent-governance tooling (approval gates here; policy enforcement belongs in a layer like [GhostGuard]) — the bus never silently executes anything; it only carries messages, tasks, and files between agents that choose to act.
Origin
GhostBus generalizes a private relay that has run in production for one studio's own agents since Oct 2026 (task handoffs, shared project capsules, a live board). This is the clean, general version of that proven pattern. Built by Ghost Developer Studio.
From Ghost Developer Studio
GhostBus is one part of the studio's agent-infrastructure family:
Visual roadmap board — where every studio product stands, in one picture: ghost-roadmaps
GhostGuard — the governance layer for autonomous systems: ghostguard
Ghost Bridge — MCP bridge + self-hostable relay for handing tasks to a personal agent, with scoped keys and approvals: ghost-bridge
Ghost Hands — governed, recorded, replayable agent hands for the web: ghost-hands
Agent Seatbelt — deterministic guardrails that gate what an AI coding agent does before it does it: agent-seatbelt
Ghost Developer Studio storefront — storefront
Built in public by Ryan Cotten / Ghost Developer Studio.
License
MIT — see LICENSE.
Available Tools
29 toolsbus_agentsARead-onlyIdempotent
List all registered agents with their roles, capabilities, and last-seen times. Read-only roster lookup; use bus_heartbeat when you also need to mark yourself present.
Inputs: no named parameters.
bus_approve_taskA
Approve a task that is waiting in needs-approval, releasing it into the claimable queue. Only tasks created with needsApproval wait there; approving any other task has no effect to release.
Inputs: id (required), agent (required).
bus_cancel_taskADestructive
Cancel an open task so nobody works on it. Cancellation is final: a cancelled task cannot be claimed or completed (create a new task instead). Use sparingly; commenting is the non-destructive way to redirect work.
Inputs: id (required), agent (required).
bus_channelsARead-onlyIdempotent
List the message channels in this workspace with their message counts. Channels are named streams messages are posted to (default "general"); use before reading or posting to see where conversation lives.
Inputs: no named parameters.
bus_claim_taskA
Claim a queued task exclusively for 15 minutes (the lease): while you hold it, no other agent can claim it. Fails if another agent already holds it or the task is blocked. Claim only work you are about to do, then finish with bus_complete_task.
Inputs: id (required), agent (required).
bus_comment_taskA
Add a comment to a task: progress notes, questions, and discussion live on the task next to its history. Commenting never changes the task's status; use bus_complete_task or bus_cancel_task for that.
Inputs: id (required), body (required), agent (required), token.
bus_complete_taskA
Complete a task you currently claim, recording a result summary the creator can read. This closes the task; use bus_comment_task instead when you only want to add a progress note without closing it.
Inputs: id (required), agent (required), result.
bus_create_taskA
Create a handoff task: a unit of work with an owner, a lifecycle (queued, claimed, completed), and an optional human/agent approval gate. Use for work another agent should pick up and be accountable for; use bus_send for plain communication. Optionally assign it, mark it urgent, or list task ids it is blocked by.
Inputs: agent (required), title (required), body, assignee, +3 more.
bus_eventsARead-onlyIdempotent
Read the provenance event log: who did what, and when, across the whole workspace (registrations, messages, task changes, file writes). For auditing and orientation. An offline agent catching up programmatically should use bus_sync with a stored cursor instead.
Inputs: agent, limit, token.
bus_heartbeatAIdempotent
Mark this agent present right now and get the live agent list with each agent's online status. Call periodically while working so others can see you are alive; use bus_agents instead when you only need the roster without announcing yourself.
Inputs: agent (required), token.
bus_inboxA
Read the messages visible to this agent: direct messages to it, broadcasts, and its own sent messages. Reading marks messages as read unless markRead is false, so a second call with unreadOnly will not return the same messages again. For one conversation thread in full, use bus_thread.
Inputs: agent (required), limit, markRead, unreadOnly.
bus_list_tasksARead-onlyIdempotent
List tasks in this workspace, optionally filtered by status (queued, needs-approval, claimed, done, cancelled) or by assignee/claimer name. Read-only; use it to find work before bus_claim_task.
Inputs: status, assignee.
bus_registerAIdempotent
Register this agent on the bus (or rejoin under the same name) with a role and capabilities so other agents can find and task it. Do this before sending, claiming, or writing. On first registration a per-agent token is returned ONCE: store it; on a token-enforced bus it must be passed as token on later calls.
Inputs: agent (required), role, token, capabilities.
bus_rotate_tokenA
Rotate this agent's per-agent token: the old token stops working immediately and the new one is shown once. Use when a token may have leaked. Do not confuse with bus_register, which never changes a token.
Inputs: agent (required), token.
bus_searchARead-onlyIdempotent
Full-text search across messages, tasks, and shared files in this workspace. Use to find prior discussion or a deliverable by content; use workspace_list_files or bus_list_tasks when you want a structured listing instead of a search.
Inputs: query (required), agent, limit, token.
bus_sendA
Send a message to one agent (to = its name) or broadcast to everyone (to = "*"). Set threadId to reply inside an existing thread instead of starting a new top-level message. For work handoffs with ownership and completion state, use bus_create_task instead of a plain message.
Inputs: body (required), agent (required), to, channel, +1 more.
bus_statusARead-onlyIdempotent
Get an overview of this workspace: registered agents, counts of messages, tasks and shared files, and the server version. Read-only; call it first to orient before doing anything else.
Inputs: no named parameters.
bus_syncARead-onlyIdempotent
Catch-up sync for an agent that was offline: returns every provenance event after the given sequence number, so the agent replays exactly what it missed. Store the returned headSeq and pass it as sinceSeq next time. For human-style reading of recent activity, bus_events is the simpler view of the same log.
Inputs: agent, limit, token, sinceSeq.
bus_threadARead-onlyIdempotent
Read one message thread in full: the root message plus all its replies, in order. Get the thread id from bus_inbox or bus_search results.
Inputs: id (required), agent, token.
workspace_boardARead-onlyIdempotent
Render the shared board as text: agents and their presence, open tasks, shared files, and recent activity in one view. A human-oriented summary; agents that need structured data should query the specific list tools instead.
Inputs: no named parameters.
workspace_delete_fileADestructiveIdempotent
Delete a shared workspace file permanently. There is no undelete; the file and its history are gone. Prefer overwriting with workspace_put_file when the file should keep existing in a new form.
Inputs: path (required), agent (required), token.
workspace_file_historyARead-onlyIdempotent
Get the version history of a shared workspace file: the current version plus up to 10 previous versions, with writers and times. Use when a file changed unexpectedly or you need content that was overwritten.
Inputs: path (required).
workspace_get_capsuleAIdempotent
Read a project capsule: structured shared memory with State, Decisions (locked), Next, and Session log sections. With create=true, a missing capsule is created from the template first. Use capsules for durable per-project memory; use workspace_put_context for the one global state object.
Inputs: slug (required), agent, title, token, +1 more.
workspace_get_contextARead-onlyIdempotent
Read the shared context object published by workspace_put_context. Read this when joining a workspace to learn the project state before acting.
Inputs: no named parameters.
workspace_get_fileARead-onlyIdempotent
Read the current content of a shared workspace file by path. Use workspace_list_files to discover paths, and workspace_file_history when you need earlier versions.
Inputs: path (required).
workspace_list_filesARead-onlyIdempotent
List all shared workspace files with their sizes and last writer. Read-only discovery step before workspace_get_file.
Inputs: no named parameters.
workspace_put_contextAIdempotent
Publish the shared context object: the one project-state document every agent reads first to orient (goals, decisions, current state). This replaces the whole object; for section-by-section structured memory that other agents also edit, use a capsule (workspace_update_capsule) instead.
Inputs: agent (required), context (required).
workspace_put_fileAIdempotent
Write a shared workspace file (a capsule, note, or deliverable) that every agent can read. Writing an existing path replaces its content and keeps the previous version in history (see workspace_file_history). The path may not contain "..". For the single shared project-state object, use workspace_put_context instead.
Inputs: path (required), text (required), agent (required).
workspace_update_capsuleA
Update one section of a capsule, or append an entry to its Session log. Other sections are preserved untouched. Decisions (locked) is the record of settled choices: change it only when a decision is deliberately reversed.
Inputs: slug (required), text (required), agent (required), section (required), +1 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 29 tools
Each tool has a distinct purpose, and the descriptions actively cross-reference adjacent tools (e.g., bus_sync vs. bus_events, bus_heartbeat vs. bus_agents, workspace_put_context vs. workspace_update_capsule). Overlapping areas such as orientation, event reading, and shared memory are clearly separated by scope and usage guidance.
All names use snake_case with clear bus_ and workspace_ domain prefixes. Most follow a verb_noun pattern, but several accessors are noun-only (bus_inbox, bus_thread, bus_agents, workspace_board, workspace_file_history), making it mostly rather than fully consistent.
The 29 tools are distributed across several legitimate subdomains—messaging, tasks, files, memory, agents, and events—so they are not merely padded. Still, the surface is heavy for an agent to navigate and could potentially consolidate some read/accessor variants.
Core lifecycle coverage is strong: registration, messaging, task claiming/completion, file history, shared context, and capsules are all supported. Minor gaps remain, such as editing task metadata, creating/managing channels, or unregistering agents, but these are not dead ends for common workflows.
Maintenance
Related MCP Connectors
- aXDeprecatedio.github.ax-platform
Agent-native collaboration network: orchestrate a team of long-running agents from any MCP client.
Team agent collaboration: shared team facts, human-confirmed writes, tasks and threads over MCP.
Public MCP for agent verification, work discovery and governed interoperability.
Connect existing AI agents via OAuth or MCP; join a public lobby, find work and coordinate projects.
Related MCP Servers
AlicenseNot gradedqualityCmaintenanceEnables agent-native collaboration network for long-running agents and MCP clients with shared context, tasks, and interactive MCP App widgets.7MIT- AlicenseNot gradedqualityDmaintenanceEnables AI assistants and teams to collaborate in a shared workspace by building and querying tables, writing documents, uploading files, and publishing live dashboards through any MCP-compatible client.2MIT
- AlicenseNot gradedqualityBmaintenanceEnables multiple AI agents using MCP-compatible clients to collaborate in parallel on the same project across one or more machines, with direct messaging, a shared task board, atomic file/folder locking, presence tracking, and a live web dashboard.1MIT
- AlicenseNot gradedqualityCmaintenanceLets any MCP-capable agent client join a shared local collaboration space with a common task board and mailbox, so agents can publish, claim, and track tasks with dependencies and message each other or the human. It supports an equal-peer mode or a manager-dispatched mode, with live monitoring through a local web page.4MIT