How to Connect
Enable the ZopNight MCP server for your organisation, choose a write tier, and create a Personal Access Token before connecting 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 disabled by default for all organisations. An admin needs to enable it 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 and nothing else. Changing anything is a separate, opt-in decision — see Step 2.
Step 2: Choose a write tier (optional)
Every organisation, including every existing one, starts at Write access: None — 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 |
|---|---|
| None (default) | Nothing. Read tools only. |
| Tier 1 — metadata only | Changes to ZopNight's own records: budgets, recommendation status, smart-tag acceptance. No cloud state is touched and no cost is incurred. |
| Tier 2 — reversible changes | Changes with a bounded blast radius that may affect cost: schedules, overrides, tagging policies, and Service deploys, rollbacks, and configuration. |
| Tier 3 — irreversible changes | Changes you cannot undo or that incur cost: starting and stopping resources, Provisioning jobs, Kubernetes writes, and every delete. |
Tiers are cumulative: tier 2 admits tier-1 and tier-2 tools. The picker lists the exact tools each tier turns on — that list is generated from the same manifest the gateway authorizes against, so it cannot disagree with what the tier really grants. Read it before you choose; this page describes the rule, the picker is the authority.
Some things are never available at any tier, 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 tier 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 tier.
- 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 the write tier 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: