Requirements
- A Brew account with access to your brand
- A desktop app with MCP server settings available
- A browser to sign in with Brew and approve access
Add Brew in the Desktop App
1
Open MCP server settings
Open Settings → MCP servers → Add server. Some builds use Settings → Plugins → MCPs → Add → Add MCP server.If Brew is already listed, check its URL and authenticate that entry instead of adding a duplicate.
2
Enter the server details
Use these settings:
Save the server and restart the connection when offered.
3
Authenticate with Brew
Select Authenticate on the Brew server. Sign in through your browser, choose your brand, and review the access request before approving it. Return to the desktop app afterward.
4
Check the connection in chat
Open a chat on the host where you configured Brew. Type /mcp to inspect connected servers, then run the brand verification below.A saved server entry isn’t proof that authentication or a tool call succeeded.
Verify Your Brand
Replace the brackets and send:brand_id. Ask the agent to list your brands and use the selected ID, or reconnect to one brand. See Brand Scoping.
Use the Same Connection from the CLI or IDE
The desktop app, Codex CLI, and IDE extension share MCP configuration on the same Codex host. Different machines or execution hosts need their own configuration and authentication. ChatGPT web doesn’t read this local configuration. If you prefer terminal setup, add Brew with the CLI instead of the desktop form:codex mcp list to inspect configuration, then verify the brand through an actual tool call.
For manual configuration, add this table to ~/.codex/config.toml while preserving the rest of the file:
codex mcp login brew after configuring it.
OpenAI’s MCP guide covers shared configuration, project scope, and host-specific settings.
Create Your First Draft
Generation uses Brew credits. After verification, replace the brackets and request one draft:create_email. If generation is still running, it should poll get_email with the returned emailId and runId. Repeating creation starts another billed design.
Open the preview and Brew link. Check the facts, branding, images, and links. If the client doesn’t display a preview, inspect the design in Brew before approving further work.
To revise it, identify the existing design:
edit_email and also use credits. A rename, inbox subject change, or folder move alone uses the free update_email_metadata tool.
Review Before Sending
Give the agent your approval boundaries:confirmed: true and its confirmation_id.
Always include idempotency_key in send_email, including test sends. Reuse the same key and send inputs when confirming or retrying that send. Use a fresh key for a separate intended send.
See Safe Retries for the full contract.
Run Your Email Ops from an AI Agent covers the complete workflow. MCP Authentication and Scoping owns the confirmation rules. A test is a separate email send, and an accepted send isn’t proof of inbox delivery.
Troubleshooting
Disconnect Brew
Remove Brew from the desktop app’s MCP server settings when you no longer want it configured there. For a CLI-managed entry, usecodex mcp remove brew.
Revoke the matching authorization in Brew under Settings → MCP → Connected via OAuth to end its access. Removing local configuration and revoking Brew authorization are separate steps.
Related
- Connect Your MCP Client: ChatGPT web and other clients
- MCP Tools: available operations and costs
- MCP Workflows: audiences, automations, and analytics
- QA an Email Before a Big Send: review before delivery
- Use Brew with Claude: the Claude walkthrough
- Use Brew with Grok Bot: the Grok Bot desktop walkthrough
Need Help?
Our team is ready to support you at every step of your journey with Brew. Choose the option that works best for you:- Self-Service Tools
- Talk to Our Team
Search Documentation
Type in the “Ask any question” search bar at the top left to instantly find relevant documentation pages.
Ask ChatGPT or Claude
Click here to open the Copy page menu at the top of this page, then send the page to ChatGPT, Claude, or your editor.