# Email and A2A identity for Claude Code > Connect Claude Code to hosted MCP and let it provision a scoped agent inbox. ## Connect ```sh claude mcp add --transport http agentmailer https://api.agentmailer.ai/mcp claude 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/claude-code