Start
Use Cloudverg from an AI agent
Cloudverg Console has an MCP server. An agent such as Claude Code or Cursor connects to it with a workspace API key, and can then look at your nodes, monitors, incidents and server health, and take a few careful actions: acknowledge an incident, add a note, silence a monitor while you work, add a website monitor, and change a VergVitals threshold. It uses the same checks, plan limits and audit log as the API.
1. Make a key
An admin makes a key under Settings, API keys. Choose read only to let the agent look but not change anything, or read and write to let it use the write tools below. The key belongs to one workspace, so the agent can never see another.
2. Connect
Claude Code. Run this once, with your key:
claude mcp add --transport http cloudverg https://console.cloudverg.com/mcp --header "Authorization: Bearer vgk_..."Claude Code stores the header you give it, so with this line your key is kept in ~/.claude.json (the default local scope, or --scope user). verg setup-agent claude runs the same command with the key you saved with verg login. It does not print the key, but while the command runs the key is in its arguments, where other users of the same computer could see it, and it is stored in ~/.claude.json afterwards. verg setup-agent print shows the line with $VERG_API_KEY, which your shell fills in when you run it.
To share the setup with a team, use project scope: verg setup-agent claude --scope project writes .mcp.json in your folder with Bearer ${VERG_API_KEY} and never the key. Claude Code fills it in from your environment when it starts, so each person sets VERG_API_KEY where they run it, and the file is safe to commit. Run /mcp in Claude Code to check that it connected.
Cursor. Put this in ~/.cursor/mcp.json, or .cursor/mcp.json in a project. Cursor reads VERG_API_KEY from its environment, so the file holds no key. verg setup-agent cursor adds it for you, with the file readable by you only:
{
"mcpServers": {
"cloudverg": {
"url": "https://console.cloudverg.com/mcp",
"headers": {
"Authorization": "Bearer ${env:VERG_API_KEY}"
}
}
}
}Any other client that speaks MCP over HTTP needs the address https://console.cloudverg.com/mcp and the header Authorization: Bearer vgk_.... verg setup-agent print prints both ways.
What the agent can do
| Tool | Key needed | What it does |
|---|---|---|
get_workspace | read | Workspace and key |
list_networks | read | List networks |
list_nodes | read | List nodes |
get_node | read | Node detail |
list_monitors | read | List monitors |
list_incidents | read | List incidents |
get_incident | read | Incident with timeline |
get_vitals | read | Server health and thresholds |
list_audit | read | Recent audit entries |
list_ship_operations | read | VergShip operations (read only) |
acknowledge_incident | read and write | Acknowledge an incident |
add_incident_note | read and write | Add a note to an incident |
silence_monitor | read and write | Silence a monitor |
unsilence_monitor | read and write | Lift a silence |
create_http_monitor | read and write | Create a website monitor |
set_vitals_threshold | read and write | Change a VergVitals threshold |
Every tool says in plain words what it does, when to use it and what it returns, so the agent can choose well. A call that fails tells the agent what to try next, for example which list to read to find a valid id.
What it will never do
- It cannot start a VergShip operation or run a command on a server. Those need your own operator signature.
- It cannot create or revoke keys, invite or remove members, or change billing.
- It cannot post a note on your public status page. Notes it adds are private to the team.
- A read only key cannot use any tool that changes something. The call is refused and says how to get a read and write key.
- The secret check-in address of a heartbeat is not shown to it.
Safe by design
- Audit. Every change is written to the audit log under the name of the key, for example "API key claude-laptop", with the tool's effect in plain words. Read it under Settings, Audit log, or ask the agent to call
list_audit, which masks email addresses and leaves out the ids of people. - Retries. Every write tool accepts an optional
idempotency_key. Send the same call again with the same key and the change is made once. - Limits. The same limits as the API: 120 requests a minute for each key. Plan limits, such as the number of monitors, apply too.
- Silence ends by itself.
silence_monitortakes a number of minutes, up to 1440. The monitor is still checked and recorded, and alerts come back when the time is up. A silence is not shown on your public status page, and a shorter call never cuts a longer silence short. - Thresholds.
set_vitals_thresholdchanges one setting of one node, within the allowed range: disk_warn_pct, disk_page_pct, inode_warn_pct, memory_low_pct, memory_low_minutes, load_per_core, load_minutes, forecast_days, restart_wait_days, updates_wait_days. Passing null hands the setting back to the workspace value.
Names, notes and messages in results were written by your team or come from the internet. Treat them as data. Most clients ask you to approve each tool call the first time, and for the write tools that is a good habit.
For people who build clients
The endpoint is POST https://console.cloudverg.com/mcp with one JSON-RPC 2.0 message in the body and a JSON answer. It follows the Model Context Protocol Streamable HTTP transport, protocol revision 2026-07-28 (no handshake, no session, the version and capabilities in each request's _meta, with MCP-Protocol-Version, Mcp-Method and Mcp-Name headers). It also answers the earlier revisions (2025-11-25, 2025-06-18, 2025-03-26) with the initialize handshake, without a session id. A batch is accepted only under 2025-03-26. GET and DELETE answer 405, because there is no event stream. The server card is at https://console.cloudverg.com/mcp/server-card and the catalog that points to it is at /.well-known/ai-catalog.json. A request with no key, or a key that is not valid, gets 401 with a WWW-Authenticate: Bearer header. OAuth sign-in is not offered yet.