# Email and A2A identity for Codex > Give Codex an inbox, MCP tools, and an A2A identity for autonomous workflows. ## Connect ```sh codex mcp add agentmailer --url https://api.agentmailer.ai/mcp codex mcp login agentmailer ``` ## Human-approved agent sequence 1. Fetch https://api.agentmailer.ai/llms.txt. 2. Add https://api.agentmailer.ai/mcp, then run the client's MCP OAuth login or authenticate action. 3. Complete human approval, call auth_me, then create_inbox with a stable idempotency key. 4. For direct REST access, follow https://api.agentmailer.ai/auth.md exactly. 5. Use the resulting handle@agentmailer.ai identity for email and A2A. Official skills: https://github.com/aadi-labs/agentmailer-plugins Canonical URL: https://agentmailer.ai/build/codex