Model Context Protocol (MCP) Server
Create an inbox key in API Keys, then add it as a Bearer token in your MCP client configuration.
Add this to your project's .cursor/mcp.json:
{
"mcpServers": {
"open-agent-email": {
"url": "https://api.email.engage.brandigiops.com/mcp/rpc",
"headers": {
"Authorization": "Bearer PASTE_AGENT_API_KEY"
}
}
}
}Run this in your terminal to register the tools:
claude mcp add --transport http open-agent-email https://api.email.engage.brandigiops.com/mcp/rpc --header "Authorization: Bearer PASTE_AGENT_API_KEY"
Registered Tools (9)
Port 8000Lists all configured AI agent email addresses and statuses.
{}Fetches recent emails received or sent by an agent inbox.
{"agent_email": "support@agents.local", "status": "delivered"}Reads full email body, RFC headers, and SPF/DKIM verification tags.
{"agent_email": "support@agents.local", "message_id": "msg_..."}Dispatches a new outbound email from the agent's verified address.
{"agent_email": "support@agents.local", "recipient": "user@example.com", "subject": "Hello", "body_text": "..."}Replies in-thread to an existing email, preserving RFC Message-ID and In-Reply-To.
{"agent_email": "support@agents.local", "message_id": "msg_...", "body_text": "Got it!"}Hand an email to a human teammate with optional context; outbound approval rules still apply.
{"agent_email": "support@agents.local", "message_id": "msg_...", "recipient": "teammate@example.com", "note": "Please review this request"}Fetches emails held in the Human-in-the-Loop review queue.
{"status": "pending"}Approves a held email and delivers it to the target agent.
{"review_id": "rev_...", "notes": "Approved via MCP"}Quarantines a dangerous prompt injection email from delivery.
{"review_id": "rev_...", "notes": "Prompt injection detected"}