Let Codex use email without using your email account.
Create an email address for the agent, add Stacksona Connect as a remote MCP server, and approve only the scopes Codex needs. The mailbox stays under your control.
For developers using Codex CLI or the Codex IDE extension who need a separate mailbox for agent-driven project and customer communication.
Register Stacksona Connect in Codex
Register the endpoint with Codex, then complete login in the environment that will use it.
Create a mailbox for the agent
In Stacksona Connect, create the mailbox Codex will use. Decide whether Codex should read, draft, or send before you approve its authorization.
Add the MCP server from CLI
Run
codex mcp add stacksona-connect --url https://connect.stacksona.com/mcp. This registers the remote server in Codex’s MCP configuration.Sign in to Connect
Run
codex mcp login stacksona-connectand complete browser authentication. Check the requested scopes in Connect’s consent screen; do not grant send or reply unless the task requires it.Check server status
Use
codex mcp listto confirm the server is configured. In Codex, verify the tool list and ask it to report the permissions throughconnect_check_connectionbefore it reads or sends mail.
Add the remote server from your terminal
Codex will save this MCP server in its local configuration.
codex mcp add stacksona-connect --url https://connect.stacksona.com/mcpThe CLI and IDE can use the same local MCP setup.
Codex CLI and its IDE extension read the local MCP configuration for that host. Set up the server once in the environment you use, then confirm the extension has reloaded and authenticated before expecting tools in a session.
- The configuration points to Connect; OAuth holds the actual mailbox authorization.
- Tool visibility can still vary with the Codex surface and its settings.
- Browser-based ChatGPT custom apps use a different setup path.
Codex can prepare a response while Connect governs the send.
Have Codex draft first, inspect the recipient and message, and let Connect enforce any contact rule or approval decision. If an outgoing action needs review, the approved content is bound to that request rather than treated as blanket permission for future email.
- Only authorize the scopes needed for the current workflow.
- Reconnect through `codex mcp login` if browser authorization expires or is removed.
- A saved MCP server does not run a scheduled inbox check by itself.
Codex MCP connection questions
Is this the same as adding an app in ChatGPT?
No. Codex CLI and IDE configure MCP locally. ChatGPT custom apps are configured inside ChatGPT and can have different account and workspace requirements.
How do I add Connect to Codex?
Use `codex mcp add stacksona-connect --url https://connect.stacksona.com/mcp`, then `codex mcp login stacksona-connect`.
Can Codex send customer email?
Only when the Connect authorization includes send and the current surface exposes the send tool. Contact policies and required human decisions still govern each action.
Give Codex its own email identity
Add the MCP server, sign in, and choose only the scopes your Codex workflow needs.
Create an agent mailbox