Dicklesworthstone/mcp_agent_mail

Deprecated: superseded by mcp_agent_mail_rust, the maintained Rust rewrite. Original Python FastMCP coordination layer for AI coding agents: identities, inboxes, searchable threads, and advisory file leases over FastMCP + Git + SQLite.

What it solves

Modern software projects often run multiple coding agents simultaneously, which can lead to agents overwriting each other's work, missing critical context, or requiring manual human intervention to coordinate tasks. This project provides a shared coordination layer to keep these agents aligned.

How it works

It acts as a mail-like system for coding agents, exposed as an HTTP-based FastMCP server. Agents register identities and use the system to send messages, maintain searchable conversation threads, and declare advisory "file reservations" (leases) to signal which files they are working on. All communications and reservations are stored as human-auditable artifacts in Git, with SQLite used for indexing and fast querying.

Who it’s for

Developers who use multiple coding agents (such as Claude Code, Codex, or Gemini CLI) across one or more codebases and want to automate coordination, prevent file-editing conflicts, and maintain a clear audit trail of agent activity.

Highlights

  • Provides an inbox, outbox, and searchable message history for coding agents.
  • Implements advisory file reservations to prevent agents from stepping on each other's edits.
  • Supports asynchronous communication via GitHub-Flavored Markdown.
  • Integrates with the Beads task planner to link conversation threads with specific project tasks.
  • Designed for interoperability across different agent tools and CLI environments.

Related

  • Project
  • Project
  • Project
  • Project
  • Dispatch