Jesse MCP โ connect in Codex โ
Keep Jesse running and open its dashboard. The connection guide shows where to find the ready-made setup for your assistant.
Jesse exposes a running Streamable HTTP MCP server. Codex only needs its URL; it does not need a command to launch Jesse.
Copy the setup from the dashboard (recommended) โ
- In the Jesse dashboard, open More options (โฎ) at the bottom of the sidebar, click AI Assistants, and choose Codex.
- Click Copy config.toml block and paste it into your Codex configuration file, replacing any existing
[mcp_servers.jesse]block:- macOS and Linux:
~/.codex/config.toml - Windows:
%USERPROFILE%\.codex\config.toml
- macOS and Linux:
- Fully restart Codex. The CLI, desktop app, and IDE extension share this file.
The block contains your MCP address and token as a static Authorization header (http_headers), so it works however Codex is launched, including from the Dock or Start menu. The token is stored in plain text, so keep config.toml private. To keep the token out of the file, use the CLI setup below instead.
Register Jesse with the Codex CLI โ
This method keeps the token out of Codexโs configuration by reading it from an environment variable. It does not depend on where MCP settings appear in your version of the desktop app.
Jesse requires your MCP token on every request. Codex can read it from the JESSE_MCP_TOKEN environment variable each time it starts, so the token is never written to Codexโs configuration.
Copy the MCP URL printed by Jesse. It ends with
/mcpand ishttp://localhost:9000/mcpby default, or<DASHBOARD_URL>/mcpwhen Jesse runs on another machine (for examplehttp://192.168.1.20:9000/mcp).Open a terminal on the same machine where Codex runs and add the server:
bashcodex mcp add jesse --url http://localhost:9000/mcp --bearer-token-env-var JESSE_MCP_TOKENReplace the example URL if Jesse printed a different one.
Set
JESSE_MCP_TOKENusing Manual authentication and start Codex from that terminal. The variable must be set in whatever environment launches Codex; a terminal variable lasts only for that session.Confirm Codex saved the server:
bashcodex mcp listFully restart the desktop app so it reloads the MCP configuration.
The Codex CLI, desktop app, and IDE extension share the same MCP configuration on the same host, so you only need to register Jesse once.
Configure config.toml instead โ
If the codex command is unavailable, edit the Codex configuration file directly:
- macOS and Linux:
~/.codex/config.toml - Windows:
%USERPROFILE%\.codex\config.toml
Add this block, using the URL printed by Jesse:
[mcp_servers.jesse]
url = "http://localhost:9000/mcp"
bearer_token_env_var = "JESSE_MCP_TOKEN"Save the file, then fully restart the desktop app. Do not add command, args, env, or cwd fieldsโthose are for MCP servers that Codex launches as local processes.
If Codex starts somewhere that cannot see JESSE_MCP_TOKEN (for example a desktop app opened from the Dock or Start menu), you can put the header in the file instead. This stores the token in plain text in config.toml, so keep that file private:
[mcp_servers.jesse]
url = "http://localhost:9000/mcp"
http_headers = { "Authorization" = "Bearer <your MCP token>" }Test the connection โ
In the desktop app, type /mcp to view connected MCP servers. You can also ask Codex:
Use the Jesse MCP server and list the available tools.If Codex cannot find the server:
- Run
codex mcp listand confirm thatjesseappears with the correct URL. - Confirm Jesse is still running and that its URL ends with
/mcp. A401error means the token is missing or wrong: make sureJESSE_MCP_TOKENis set where Codex starts and was created from your current JessePASSWORD. - Fully restart the desktop app after changing the MCP configuration.
- Turn on
MCP_LOG_IN_TERMINALin.envwhile debuggingโsee Environment variables for MCP.
See the official OpenAI MCP documentation for Codex's current MCP configuration options.
Agent rules (optional but recommended) โ
Jesse automatically writes and maintains AGENTS.md at the project root every time you run jesse run, so Codex can read the rules without you pasting anything when it works in that project folder. See MCP agent rules for details on what's in the file, how the auto-sync works, how to add your own notes without losing them on upgrade, and what to do when Codex runs on another computer.
Same machine, same network story
If Codex runs on Windows and Jesse runs inside WSL (or the other way around), localhost can refer to different machines. If you see connection errors, run Jesse and Codex in the same environment so they share one loopback network.
