Install MCP Agent Mail, start the server, and launch your first reservation-aware multi-agent workflow.
Install
Install the binary with the recommended one-liner.
curl -fsSL "https://raw.githubusercontent.com/Dicklesworthstone/mcp_agent_mail_rust/main/install.sh?$(date +%s)" | bashRun Your First Coordination Flow
Start `am`, register an agent, reserve files, and coordinate through threaded messages.
01# 1) Start MCP Agent Mail server + TUI02am03 04# 2) Bootstrap session context one call05macro_start_session(06 project_key="/abs/path/to/repo",07 program="codex-cli",08 model="gpt-5"09)10 11# 3) Reserve files before editing12file_reservation_paths(13 project_key,14 agent_name,15 ["src/**"],16 ttl_seconds=3600,17 exclusive=true18)19 20# 4) Coordinate through threaded messages21send_message(22 project_key,23 sender_name="GreenCastle",24 to=["BlueLake"],25 subject="Starting auth refactor",26 thread_id="FEAT-123",27 ack_required=true,28 body_md="I have reservations on src/auth/**; taking login + token rotation."29)30fetch_inbox(project_key, agent_name)31acknowledge_message(project_key, agent_name, message_id)Configure MCP Client
Add the MCP server entry once; then your agent CLI can call Agent Mail tools directly.
01{02 "mcpServers": {03 "agent-mail": {04 "command": "mcp-agent-mail",05 "args": []06 }07 }08}Three Pillars
The foundations of safe multi-agent execution at scale.
Scoped Agent Identity
Project-scoped identities, thread continuity, and explicit inbox semantics keep parallel agents coordinated instead of colliding.
Reservation Guardrails
Advisory file reservations plus optional guard enforcement make ownership visible before edits and safer at commit time.
Auditable Workflows
Messages, acknowledgements, and search traces are queryable in SQLite and preserved in a Git-auditable archive.
Use Cases
Concrete scenarios where Agent Mail coordination makes the difference between chaos and velocity.
Rapid Multi-Agent Prototyping
Launch 10+ agents on a new project with NTM. Each agent picks the highest-impact task via bv graph analysis. File reservations prevent collisions. Threaded messages coordinate API boundaries.
Large-Scale Codebase Refactoring
Decompose a refactoring plan into beads with dependency tracking. Agents claim work, reserve affected files, and coordinate through thread IDs that map to bead IDs. The pre-commit guard prevents accidental conflicts.
Cross-Repository API Migration
Link frontend and backend repos via the product bus. Agents working on the backend notify frontend agents of API changes through cross-project messages. Contact handshakes establish secure communication channels.
24/7 Continuous Development
Agents work in shifts. Incoming agents use macro_prepare_thread to catch up on conversation history. Semi-persistent identities mean agents can pick up where predecessors left off without breaking coordination state.
Auditable Agent Operations
Every message, reservation, and agent action is recorded in SQLite and archived to Git. Searchable audit trail shows exactly what each agent did, when, and why. Human Overseer provides real-time oversight.
Common Questions
Answers to common setup and operations questions for MCP Agent Mail.