Codex
Codex can connect to Memside through MCP. The connection allows Codex to load selected Memories, project checkpoints, Operating Rules, and other saved context before it plans, edits, or reviews code.
Start with the CLI setup when the installed Codex version provides the mcp
command. Use the MCP server screen when working in a Codex surface that exposes
configuration through the interface.
Before starting
Section titled “Before starting”- Sign in to Memside.
- Open Settings > Developer & API.
- Create an API key and copy it when shown.
- Confirm that the installed Codex version supports MCP servers.
Option 1: Add Memside with the Codex CLI
Section titled “Option 1: Add Memside with the Codex CLI”- Open a terminal.
- Add the Memside remote server:
codex mcp add memside --url https://api.memside.com/mcp/- List the configured servers:
codex mcp list- If Codex requests authentication details, use this bearer header:
Authorization: Bearer mem_sk_your_memside_api_key- Restart Codex if the new tools do not appear.
Option 2: Use the MCP server screen
Section titled “Option 2: Use the MCP server screen”- Open Settings in Codex.
- Open MCP Servers.
- Select Add Server.
- Enter
memsideas the server name. - If the form supports a remote URL, enter:
https://api.memside.com/mcp/- Add the bearer authorization header using the Memside API key.
- Save the server and restart Codex.
If the form accepts only a launch command, use:
- Command:
npx - Arguments:
-y,mcp-remote,https://api.memside.com/mcp/,--header,Authorization: Bearer mem_sk_your_memside_api_key - Environment variables: leave empty unless required by the installed build
- Environment variable passthrough: leave empty
- Working directory on Windows:
%USERPROFILE%\.codex
Configuration file location
Section titled “Configuration file location”Some Codex versions store MCP configuration in:
- Windows:
%USERPROFILE%\.codex\config.toml - macOS or Linux:
~/.codex/config.toml
Use the MCP schema supported by the installed Codex release. The CLI or the MCP server screen is preferred because it writes the correct format for that version.
Confirm the connection
Section titled “Confirm the connection”Run codex mcp list or open the MCP server settings. Confirm that memside is
enabled and its tools are available.
Then start with a read-only request:
Use Memside to find the active checkpoint and summarize the current task.Troubleshooting
Section titled “Troubleshooting”- Restart Codex after adding or changing the server.
- Confirm that
codex mcp listincludesmemside. - Check that the server URL ends with
/mcp/. - Recreate the Memside API key if authentication fails.
- Use the MCP setup path available in the installed Codex surface when the CLI command is unavailable.