Documentation

Connecting Codex

Connect Codex to ZopNight's MCP server to query your cloud infrastructure from within the Codex environment.

Before you start

Make sure you have completed the prerequisites — enable MCP for your organisation and create a Personal Access Token.

Setup

  1. Open Codex
  2. Go to Settings
  3. Click MCP Servers
  4. Click Add Server
  5. Select Streamable HTTP (not STDIO)
  6. Fill in the fields below
  7. Click Save

Configuration

FieldValue
Namezopnight
TransportStreamable HTTP
URL<server-url>
Header KeyAuthorization
Header ValueBearer <your-token>

Note

  • Replace <server-url> with the Server URL copied from your Organisation Settings page or from the Developer Settings page while creating your PAT token.
  • Replace <your-token> with your Personal Access Token (starts with zn_pat...).

Transport Type

Make sure to select Streamable HTTP, not STDIO. The ZopNight MCP server uses standard HTTP transport — it does not support STDIO or WebSocket connections.

Verify Connection

Once configured, ask Codex:

List my organisations

If configured correctly, it will call the list_organisations tool and show your organisations.