用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/jleechanorg/claude-commands --skill mcp-agent-mail命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | mcp-agent-mail |
| description | MCP Agent Mail - Inter-Agent Messaging and Coordination System |
| type | setup |
| scope | project |
This skill provides comprehensive setup and usage documentation for enabling agent-to-agent messaging and coordination via the MCP Agent Mail server.
Purpose: Enable AI agents to communicate with each other through a message-passing system for coordinated work, project collaboration, and multi-agent workflows.
Core Capabilities:
.claude/settings.json{
"mcpServers": {
"mcp-agent-mail": {
"command": "python3",
"args": [
"/path/to/mcp-agent-mail/server.py",
"--stdio"
]
}
}
}
Agents are AI workers with unique identities registered in the system:
Projects are workspaces that scope agent communication:
Structured communications between agents:
# Auto-generated name
register_agent(
project_key="/abs/path/backend",
program="claude-code",
model="opus-4.1",
task_description="Implementing auth system"
)
# Explicit name
register_agent(
project_key="/abs/path/backend",
program="codex-cli",
model="gpt5-codex",
name="BlueLake",
task_description="Database migrations"
)
send_message(
project_key="/abs/path/backend",
sender_name="GreenCastle",
to=["BlueLake"],
subject="Auth API design review",
body_md="Please review the attached API design...",
importance="high",
ack_required=True
)
# Recent messages
messages = fetch_inbox(
project_key="/abs/path/backend",
agent_name="BlueLake",
limit=20,
include_bodies=True
)
# Urgent only
urgent = fetch_inbox(
project_key="/abs/path/backend",
agent_name="BlueLake",
urgent_only=True
)
# Since last check
new_messages = fetch_inbox(
project_key="/abs/path/backend",
agent_name="BlueLake",
since_ts="2025-10-23T00:00:00+00:00"
)
reply_message(
project_key="/abs/path/backend",
message_id=1234,
sender_name="BlueLake",
body_md="I've reviewed the design. Here are my thoughts..."
)
agent_info = whois(
project_key="/abs/path/backend",
agent_name="BlueLake",
include_recent_commits=True
)
Orchestrated Work:
Peer Collaboration:
Example: PR Review Workflow
/processmsgs Command UsageThe /processmsgs command processes agent messages (not emails):
# Process all unread agent messages
/processmsgs
# Process messages from specific sender
/processmsgs sender:BlueLake
# Process urgent messages only
/processmsgs urgent
What it does:
Access Control:
Data Handling:
URGENT: High-priority, time-sensitive communications
ACTION_REQUIRED: Requires response or action
INFORMATION: Status updates, notifications
Common Issues:
MCP server unavailable:
Agent not registered:
register_agent firstMessage not found:
Agent 1 (Reviewer):
send_message(
project_key="/abs/path/backend",
sender_name="ReviewBot",
to=["CodeBot", "SecurityBot"],
subject="PR #123 Review Request",
body_md="Please review PR #123 for security and code quality",
importance="high"
)
Agent 2 (Security):
# Fetch inbox
messages = fetch_inbox(project_key="/abs/path/backend", agent_name="SecurityBot")
# Reply
reply_message(
project_key="/abs/path/backend",
message_id=messages[0]['id'],
sender_name="SecurityBot",
body_md="✅ No security issues found"
)
Coordinator:
send_message(
project_key="/abs/path/backend",
sender_name="Coordinator",
to=["WorkerA", "WorkerB"],
subject="Task Assignment: Database Migration",
body_md="""
## Tasks
- WorkerA: Create migration scripts
- WorkerB: Test migration on staging
"""
)
Worker:
# Check inbox
tasks = fetch_inbox(project_key="/abs/path/backend", agent_name="WorkerA")
# Complete work and report
reply_message(
project_key="/abs/path/backend",
message_id=tasks[0]['id'],
sender_name="WorkerA",
body_md="✅ Migration scripts created and tested"
)
DO:
DON'T:
Effective agent communication when: