How to Connect
Enable the ZopNight MCP server, choose a write access level, and create a Personal Access Token, then connect Cursor, Claude Code, Codex, Windsurf, or Antigravity.
Before connecting any AI tool, you need to enable the MCP server for your organisation and create a Personal Access Token (PAT).
Step 1: Enable MCP Server
MCP is enabled per organisation. An admin needs to turn it on first.
- Log in to ZopNight
- Go to Settings from the sidebar
- Click the Organisation tab
- In the Organisation details card, scroll to the MCP Server section (below the created date)
- Toggle the switch to ON
- The status badge will change from “Inactive” to “Active”
Once enabled, you will see the Server URL and links to create a token.
Enabling MCP gives connected agents the read tools. How much they may change is a separate setting — see Step 2.
Step 2: Choose a write access level (optional)
The Write access setting decides how much an agent may change. At Read-only an agent can read your data and cannot change anything; if that is what you want, skip to Step 3.
Beneath the MCP Server toggle in Settings → Organisation is a Write access picker with four settings:
| Setting | What it admits |
|---|---|
| Read-only | Nothing. Read tools only. |
| Metadata only | Changes to ZopNight’s own records: budgets, recommendation status, smart-tag acceptance. No cloud state is touched and no cost is incurred. |
| Reversible changes | Changes with a bounded blast radius that may affect cost: schedules, overrides, tagging policies, and Service deploys, rollbacks, and configuration. |
| Irreversible changes | Changes you cannot undo or that incur cost: starting and stopping resources, Provisioning jobs, Kubernetes writes, and every delete. |
The settings are cumulative: Reversible changes admits the metadata-only tools as well. The picker lists the exact tools each level turns on — that list is generated from the same manifest the gateway authorizes against, so it cannot disagree with what the setting really grants. Read it before you choose; this page describes the rule, the picker is the authority.
Some things are never available at any level, and no setting adds them: roles and permissions, user management, organisation deletion, cloud-account deletion, credentials, and bulk actions.
An agent acts with the permissions of the person whose token it holds — it cannot exceed them, but it does not ask before each change. Enable the lowest level that does the job, and give the person who mints the token the narrowest role that does the job.
Step 3: Create a Personal Access Token
You need a PAT to authenticate with the MCP server. Tokens are tied to your email and work across all organisations you have access to.
- Click your profile avatar at the bottom-left of the sidebar
- Select Developer Settings ↗
- Click Create Token
- Enter a name (e.g. “Cursor”, “Claude Code”)
- Choose an expiry period
- Click Create Token
- Copy the token immediately — it will only be shown once
After creating the token, you will also see the Server URL. Copy both values — you’ll need them to configure your AI tool.
What your token can do
A PAT carries your identity. It is not a separate, narrower account:
- Every call resolves your live role at the moment it is made. Change your role, or get removed from the organisation, and the token’s reach changes with it — immediately, with no re-mint.
- The token cannot do anything you cannot do in the UI. It also cannot do less. An admin who mints a PAT for an AI tool has handed that tool an admin’s reach, bounded by the organisation’s Write access setting.
- Tokens are tied to your email, not to one organisation, and they work across every organisation you belong to.
- Tokens have an expiry. When it lapses, create a new one.
The practical advice follows from that: mint the token as the person with the narrowest role that does the job, and keep Write access as low as the job allows.
Step 4: Connect your AI tool
ZopNight’s MCP server uses Streamable HTTP transport. Choose your AI tool for specific setup instructions: