Codex
Codex can use Northsun (formerly Mnemix) through its shared MCP configuration. Register the hosted Streamable HTTP endpoint, source the bearer token from MNEMIX_API_KEY, then verify the server and run a read-only tool call. This gives Codex access to Northsun tools; it does not make OpenAI a Northsun partner or turn every MCP tool into a stable public API.
Prerequisites
- Codex CLI installed and able to read its normal configuration.
- A Northsun API key stored in the environment as
MNEMIX_API_KEY. - A test caller that already exists in your Northsun tenant for read-only verification.
export MNEMIX_API_KEY="..."
Do not paste the key into a prompt, repository file, screenshot, or support message. See Authentication for the tenant and key boundary.
Add Northsun
Codex supports Streamable HTTP MCP servers and an environment-backed bearer-token option:
codex mcp add mnemix \
--url https://mcp.mnemix.ai/mcp \
--bearer-token-env-var MNEMIX_API_KEY
The equivalent config.toml entry is:
[mcp_servers.mnemix]
url = "https://mcp.mnemix.ai/mcp"
bearer_token_env_var = "MNEMIX_API_KEY"
Codex CLI and the Codex IDE extension share MCP configuration. Start a new session after changing the file so the host performs a fresh handshake.
Verify the connection
First confirm that Codex knows about the server:
codex mcp list
Then, in a new Codex session:
- Inspect the available Northsun tools.
- Call
caller_lookupwith a plain E.164 test number already in your tenant (for example+15551234567); the server percent-encodes it for you. - Treat
404as a valid empty state and401as an authentication failure. - Confirm that a broader workflow uses only the tool schema shown in the current session.
A configured server is not yet a verified connection. The read-only call proves that the bearer token reached Northsun and established the expected tenant.
Common failures
| Symptom | Likely cause | Fix |
|---|---|---|
| Server appears but initialization fails | Codex was launched without MNEMIX_API_KEY in its environment | Export the variable where the Codex process starts, then open a new session. |
401 unauthorized | Missing, revoked, or incorrect Northsun key | Verify the environment variable name and rotate the key if exposure is possible. |
| Northsun tools do not appear | Stale session or disabled server | Run codex mcp list, confirm the entry is enabled, and start a fresh session. |
| A tool name or input differs from this guide | MCP contract changed | Inspect the current tool list and schema; do not guess fields from an older screenshot. |
caller_lookup returns 404 | The key is valid, but the test caller is absent in that tenant | Use an existing controlled test caller or complete the Quickstart. |
Remove the connection or rotate the key
Remove the local server definition with:
codex mcp remove mnemix
If the key may have appeared in a file, terminal capture, or log, removing the config is not enough. Revoke or rotate the Northsun key, replace MNEMIX_API_KEY, and restart Codex before reconnecting.
Stable and beta boundaries
The frozen public REST contract remains the three endpoints in the API reference. MCP exposes the stable caller-memory tools plus broader contact and governed-context tools whose schemas can evolve independently. Inspect the live tool list when upgrading. Beacon and proactive context delivery are not implied by this connection.
This is a Northsun interoperability guide based on Codex's documented MCP configuration. It is not an OpenAI endorsement, certified integration, or support commitment.
Related links
- MCP server — current Northsun tool families and transport boundary.
- Troubleshooting — HTTP, auth, and tenant diagnostics.
- Production readiness — key rotation and observability checklist.
- Official Codex MCP documentation — current Codex configuration authority.