Several Slack workspaces reaching OpenAI Codex through a single MCP server

How to Connect Multiple Slack Workspaces to Codex

Two very different questions hide behind this one, and mixing them up wastes an afternoon. Codex has an official Slack integration, but it exists to launch coding tasks from a channel, not to read Slack as a data source. Which multi-workspace problem you have decides which half of this guide you need. Carly holds your Gmail and Outlook mailboxes and every calendar on both sides in the same place.

1. Add your Slack workspaces to Carly

  1. Sign in at carlyassistant.com.
  2. Open carlyassistant.com/integrations.
  3. Find Slack, click Connect, and authorize the workspace.
  4. Click Connect again for the next one, and keep going for as many workspaces as you want.

On a client workspace where you are not an admin, their Slack administrator approves the install.

Carly connects to thousands of apps, so while you are on that page you can add your inboxes, calendars, CRM, and anything else you want Codex to reach through the same connector.

2. Register Carly as an MCP server

codex mcp add carly --url https://carlyassistant.com/mcp/

Servers added this way land in ~/.codex/config.toml at user scope. The manual entry is equivalent:

[mcp_servers.carly]
url = "https://carlyassistant.com/mcp/"

Then authenticate:

codex mcp login carly

Complete the OAuth flow in the browser, signing in to the Carly workspace holding the Slack connections. Confirm the server is live:

codex mcp list

The two questions

Mention @Codex in a channel or thread and it reads the surrounding messages for context, kicks off a cloud coding task against your connected GitHub repo, and replies with a link to the result. Triage a bug in a channel, get a pull request, without leaving Slack.

Codex reaches non-development apps through the Model Context Protocol. You could register a Slack MCP server per workspace, and then you maintain three server entries, three OAuth apps, and no vocabulary in the prompt for saying which workspace you mean, so the agent uses whichever loaded first.

The official app versus Carly in Codex

NeedCodex Slack appCarly MCP server
Launch a coding task from a channelYesNo
Read channels as a data sourceFor task context onlyYes
Reach several workspacesInstall per workspaceOne server, all workspaces
Route or follow up on messagesNoYes
Act when a message arrivesNoYes
Requires GitHub and an environmentYesNo
Keep the work running outside CodexNoYes

These are complements rather than competitors. Keep the Codex Slack app for what it is genuinely good at, which is turning a bug thread into a pull request. Use one MCP server for the Slack work that is not about code.

Free Zapier-style workflows; AI agents from $35/month. Connect it on the integrations page, or start with Slack.

Quick fixes

ProblemFix
Tools do not show upStart a new Codex session after adding the server
codex mcp login never completesFinish the browser OAuth flow, then rerun codex mcp list
@Codex does nothing in a channelConfirm a connected GitHub account and a configured environment
The Slack app will not installA Slack admin in that workspace approves it
Posts land in the wrong workspaceName the workspace and require confirmation before writes

Frequently asked questions

Can Codex connect to more than one Slack workspace?

For launching coding tasks, install the Codex Slack app in each workspace. For reading and acting across workspaces, use one MCP server that holds all of them, because the official app does not read Slack as a data source.

Does the Codex Slack app manage messages?

No. It exists to start cloud coding tasks against your GitHub repo from a channel. Triage, routing, and follow-up are outside what it does.

What does the Codex Slack app require?

A Plus, Pro, Business, Edu, or Enterprise plan, a connected GitHub account, at least one configured environment, and a Slack admin’s approval to install.

Should I use Codex for Slack operations work?

Codex is a coding agent, and its integrations assume repos and environments. Channel triage and follow-up belong in a workflow that runs without a session open.


Related: Codex + Slack · Multiple Slack workspaces in ChatGPT Work · Multiple Slack workspaces in Claude · Multiple Gmail accounts in Codex · What is MCP

Ready to automate your busywork?

Carly schedules, researches, and briefs you—so you can focus on what matters.

See what people say

"Before Carly, I relied on a Calendly link, but the whole process felt impersonal and not very professional. Carly changed that by handling all the back-and-forth, so I'm no longer stuck in endless email threads trying to line up schedules.

Now Carly reaches out to candidates, shares my real-time availability, lets them pick a slot, then sends a Zoom link and drops it straight into my calendar. She sends reminders to both of us before each call, which has significantly reduced no-shows and last-minute confusion.

On top of scheduling, Carly acts like a full executive assistant, sending me my schedule the night before so I can prepare for each call. It reminds me of the old x.ai assistant, but Carly is noticeably smarter, faster, and better suited to my healthcare recruitment business."

Gus Ibrahim, Founder & Director, IHR