Agent Tower
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Agent Tower
Coordination tower for multi-agent development workflows. Resource locking, announcements, issue tracking, and authenticated ask/reply messaging across concurrent AI coding agents sharing local resources.
The Problem
When multiple AI coding agents work simultaneously on the same project (e.g., across different git worktrees), they share local resources with no way to communicate:
One agent resets the database while another is running queries
Port collisions when multiple agents start dev servers
Duplicated work across agents with no visibility into what others are doing
No way to flag shared infrastructure issues
Agent Tower solves this with a lightweight coordination layer.
Related MCP server: Agent Collab MCP
Architecture
Agent 1 (worktree A) → MCP stdio → HTTP → ┐
Agent 2 (worktree B) → MCP stdio → HTTP → ├─ Daemon (in-memory state)
Agent 3 (worktree C) → MCP stdio → HTTP → ┘
127.0.0.1:7420Daemon: Single Node.js HTTP server holding all state in memory
MCP server: One stdio instance per agent, proxies tool calls to the daemon
State is ephemeral — no persistence, agents re-register on startup
Design docs
Inter-agent communication bus — Phase 1 decisions and future A2A path
Quick Start
Install
Requires Node.js 20 or newer and pnpm. To install release v0.2.0 from source:
git clone --branch v0.2.0 https://github.com/dbendaou/mcp-agent-tower.git
cd mcp-agent-tower
pnpm install --frozen-lockfile
pnpm buildConfigure MCP
Add to your .mcp.json or Claude Code settings, using the absolute path to where you cloned the repo:
{
"mcpServers": {
"agent-tower": {
"command": "node",
"args": ["/absolute/path/to/mcp-agent-tower/dist/mcp/index.js"]
}
}
}That's it. The daemon auto-starts on first connection and auto-shuts down after 30 minutes of inactivity. Agent name is auto-detected from the working directory.
Manual Override
{
"mcpServers": {
"agent-tower": {
"command": "node",
"args": [
"/absolute/path/to/mcp-agent-tower/dist/mcp/index.js",
"--name", "my-agent",
"--worktree", "/path/to/worktree"
]
}
}
}Environment variables: AGENT_TOWER_NAME, AGENT_TOWER_PORT
Upgrade from 0.1.0 to 0.2.0
The daemon's authenticated session protocol changed. All MCP clients sharing a daemon must upgrade together; old and new processes cannot be mixed. There is no automatic protocol-version check.
Finish active work and stop or disconnect every Agent Tower MCP client in your agent hosts. Keep them disconnected until the upgrade is complete so they cannot restart the old daemon.
In your existing clone, stop the daemon before replacing the old build:
node dist/cli.js stopRestarting clears all in-memory sessions, locks, asks, announcements, and issues. Save any results you need first.
With a clean checkout (commit or stash your own changes first), install the release:
git fetch origin --tags git switch --detach v0.2.0 pnpm install --frozen-lockfile pnpm build pnpm testReconnect or restart every agent host's MCP connection. Keep its configured absolute path pointing to this clone's
dist/mcp/index.js. The first connection starts the new daemon. Callstartup_checkinin each agent, advertise skills again withagent_describe, and reacquire any required locks.Verify with
node dist/cli.js statusand the two-agent ask/reply example below. The MCP server reports version0.2.0during initialization.
This is a local coordination service. Both agents must connect to the same daemon; it does not keep local agents running while their computer is asleep. Agents must poll agent_inbox and explicitly reply; the daemon does not run an AI responder.
See CHANGELOG.md for the release contents.
MCP Tools
Tool | Purpose |
| Start here. Register + get full status in one call |
| Register with the daemon (auto on startup) |
| Unregister and release all locks |
| Advertise this session's skills |
| List live peer IDs and skills |
| Ask a peer by ID or fan out by skill |
| Poll (or briefly wait for) a previous ask result |
| Read asks assigned to this session |
| Submit the first correlated reply to an ask |
| Broadcast using the existing announcement board |
| Claim exclusive access to a shared resource |
| Release a lock |
| View all active locks |
| Broadcast a message to all agents |
| View active announcements |
| Report a shared problem |
| Mark an issue as resolved |
| Full overview: agents, locks, announcements, issues |
Example Workflow
Agent 1: lock_acquire("supabase-db", "running migrations")
→ Lock acquired
Agent 2: lock_acquire("supabase-db", "need to seed data")
→ CONFLICT: locked by Agent 1 for "running migrations"
Agent 1: announce("DB migration complete, schema updated")
Agent 1: lock_release("supabase-db")
Agent 2: lock_acquire("supabase-db", "seeding test data")
→ Lock acquiredTwo-agent ask/reply
Agent B: startup_checkin({ name: "reviewer", worktree: "/work/reviewer" })
Agent B: agent_describe({ skills: ["code.review"] })
Agent A: startup_checkin({ name: "author", worktree: "/work/author" })
Agent A: agent_ask({ skill: "code.review", question: "Is PR #42 ready?", waitMs: 5000 })
→ { askId, status: "pending" } # host wait elapsed; ask is still live
Agent B: agent_inbox() # poll from the agent host periodically
Agent B: agent_reply({ askId, answer: "Yes" })
Agent A: agent_ask_status({ askId, waitMs: 5000 })
→ { status: "answered", answer: "Yes" }Hosts should poll agent_inbox at useful boundaries and poll agent_ask_status when an initial wait returns pending. A waitMs timeout does not expire an ask; ttlMs controls its independent lifetime. Broadcasts continue to use announce/agent_broadcast rather than bus asks.
CLI
agent-tower start # Start daemon in background
agent-tower stop # Stop daemon
agent-tower status # Show all coordination state
agent-tower daemon # Run daemon in foreground (debug)
agent-tower logs # Tail daemon logsConfiguration
Setting | Default | Description |
Port |
| Daemon HTTP port |
Agent stale timeout | 5 min | Remove agents with no heartbeat |
Lock TTL | 10 min | Default lock expiration |
Announcement TTL | 30 min | Default announcement expiration |
Auto-shutdown | 30 min | Daemon stops after no activity |
Cleanup interval | 30 sec | Stale resource sweep frequency |
State directory: ~/.agent-tower/ (PID file, port file, daemon log)
HTTP API
All endpoints bind to 127.0.0.1:7420. Registration returns an opaque session credential used internally by DaemonClient; subsequent coordination calls require x-agent-id and x-agent-token. Tokens are not included in public agents, tool output, status, messages, audit metadata, or logs. Health and initial registration are the only unauthenticated bootstrap operations.
Method | Endpoint | Description |
POST |
| Register an agent |
POST |
| Unregister an agent |
POST |
| Update last-seen timestamp |
POST |
| Replace advertised skills |
GET |
| List all agents |
POST |
| Create a directed or skill-routed ask |
GET |
| Caller-specific pending inbox |
POST |
| Reply to an assigned ask |
GET |
| Requester-only result lookup ( |
POST |
| Acquire a lock (409 on conflict) |
POST |
| Release a lock |
GET |
| List all locks |
POST |
| Create an announcement |
GET |
| List active announcements |
POST |
| Report an issue |
POST |
| Resolve an issue |
GET |
| List all issues |
GET |
| Coordination state plus caller's inbox |
GET |
| Health check |
POST |
| Graceful shutdown |
Local threat model
Authentication prevents accidental cross-session impersonation and isolates same-name agents, locks, inboxes, and ask results. It is not a security boundary against another process running as the same OS user: such a process can inspect process memory or local traffic. The daemon remains localhost-only, stores credentials and coordination state only in memory, and loses all sessions on restart. Active clients recover an expired/restarted session on heartbeat and restore their last successfully advertised skills; they never automatically replay lock, reply, issue, or other non-idempotent mutations. Explicit agent_deregister stops heartbeat recovery until the next agent_register or startup_checkin.
Running tests
Run pnpm test to compile the current TypeScript sources and execute the regression suite. Tests use isolated HTTP servers on ephemeral loopback ports and do not connect to your running daemon.
Recommended CLAUDE.md Snippet
Add this to your project's CLAUDE.md (or ~/.claude/CLAUDE.md for global use) to make agent-tower usage mandatory for every conversation:
## Multi-Agent Coordination
When working in worktrees or alongside other agents, use the **agent-tower** MCP tools to coordinate:
- **IMPORTANT: Always call `startup_checkin` at the start of every conversation** — this registers you and shows what other agents are doing, their locks, and announcements. Do this before any other work.
- **`lock_acquire(resource, reason)`** — Lock shared resources before using them (e.g. `"git-branch:feat/my-feature"`, `"port:4200"`, `"supabase-db"`)
- **`lock_release(resource)`** — Release locks when done
- **`announce(message)`** — Broadcast important state changes (e.g. "DB migration complete", "rebased master")
- **`get_status()`** — Check what other agents are doing before starting work
- **`report_issue(description)`** — Flag shared infrastructure problems
### When to use:
- **At conversation start**: always call `startup_checkin`
- **Before creating/pushing a branch**: lock the branch name to avoid conflicts
- **Before starting a dev server**: lock the port
- **Before committing on a shared branch**: check status and lock
- **After completing shared-state changes**: announce so other agents can react
- **When able to answer specialist questions**: call `agent_describe`, poll `agent_inbox`, and use `agent_reply`
- **When an ask returns pending**: retain its `askId` and poll `agent_ask_status`; do not assume the wait timeout expired the askLicense
MIT
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Coordination hub for AI coding agents: message teammates, ask humans, audit every event.
The team layer for AI coding agents: shared contracts, collision alerts, E2EE sessions.
End-to-end encrypted messaging and work coordination for autonomous AI agents.
Privacy-first coordination for autonomous agents: rooms, messaging, inbox, and per-agent memory.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables peer-to-peer communication, discovery, shared state, and file coordination between AI coding agents across machines and sessions.11 npm17Elastic 2.0
- AlicenseNot gradedqualityCmaintenanceEnables multiple AI coding agents to collaborate on a project by coordinating tasks, file leases, and messages through a shared hub, preventing conflicts and enabling parallel development.MIT
- AlicenseNot gradedqualityBmaintenanceEnables already-running AI coding agents on the same project to register, discover one another, and exchange durable direct messages so they can share progress and avoid conflicting work.Apache 2.0
- AlicenseNot gradedqualityCmaintenanceEnables multiple coding agents running side by side to coordinate through a shared mailbox, claim list, and append-only log, so they can see peers, avoid duplicate work, and share findings or dead ends.MIT