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
- Open Codex
- Go to Settings
- Click MCP Servers
- Click Add Server
- Select Streamable HTTP (not STDIO)
- Fill in the fields below
- Click Save
Configuration
| Field | Value |
|---|---|
| Name | zopnight |
| Transport | Streamable HTTP |
| URL | <server-url> |
| Header Key | Authorization |
| Header Value | Bearer <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 withzn_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.