Documentation

Connecting Claude Code

Connect Claude Code (terminal) to ZopNight's MCP server to query your cloud infrastructure through natural language in your terminal.

Before you start

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

Setup

Open your terminal and run the following command.

claude mcp add zopnight <server-url> -t http -H "Authorization: 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 with zn_pat...).

The -t http flag tells Claude Code to use Streamable HTTP transport, not SSE.

Use -t http

Claude Code's HTTP transport may try OAuth before using headers. Always use the -t http flag to force Streamable HTTP transport and avoid authentication issues.

Verify Connection

Start a new Claude Code session and ask:

List my organisations

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