Codex
Codex adds remote MCP servers from the command line and keeps them in config.toml. Add ConnectChats once, sign in with your passkey, and Codex can read and search the chats you share.
1. Add the server
Section titled “1. Add the server”codex mcp add connectchats --url https://api.connectchats.com/mcpThe command writes this entry to ~/.codex/config.toml. You can also add it there by hand:
[mcp_servers.connectchats]url = "https://api.connectchats.com/mcp"2. Sign in
Section titled “2. Sign in”codex mcp login connectchatsYour browser opens the ConnectChats sign-in page. Sign in with your passkey and press Allow on the consent screen.
On a machine without a browser, run codex mcp login connectchats --no-browser, open the printed link elsewhere and paste the redirect URL back.
3. Ask
Section titled “3. Ask”Start Codex and ask about your messages. Codex can create drafts in any run; they are sent only after you approve them, unless the chat is set to Auto-send. See approve drafts.
Good to know
Section titled “Good to know”- Codex CLI, the Codex IDE extension and the desktop app share this configuration, so you set it up once.
- Codex needs a ChatGPT plan that includes Codex, or an OpenAI API key.
- ChatGPT on the web does not read your Codex config. To use ConnectChats there too, add it to ChatGPT separately.
codex mcp logout connectchatsclears the stored sign-in, andcodex mcp remove connectchatsremoves the server.