# AGENTS.md — Servers Are Up Cloud & MCP Integration Guide

> Canonical Platform: `https://serversareup.com` (Servers Are Up LLC)
> Hosted Streamable HTTP MCP Endpoint: `https://serversareup.com/api/mcp/v1` (alias: `https://mcp.serversareup.com`)
> Public REST API v1 Base: `https://serversareup.com/api/v1`
> OpenAPI 3.1 Contract: `https://serversareup.com/openapi.json` (`https://serversareup.com/openapi.yaml`)
> A2A v1.0 Agent Card: `https://serversareup.com/.well-known/agent-card.json`
> Agent Skill (`SKILL.md`): `https://serversareup.com/.well-known/agent-skills/serversareup/SKILL.md`

## 1. Quick Connect for Coding Agents (1 Command)

- **OpenAI Codex CLI:**
  ```bash
  codex mcp add serversareup --url https://serversareup.com/api/mcp/v1
  ```
- **Anthropic Claude Code (Browser OAuth Sign-In):**
  ```bash
  claude mcp add --transport http serversareup https://serversareup.com/api/mcp/v1
  # Or install the full Claude Code plugin:
  # /plugin marketplace add https://serversareup.com
  # /plugin install serversareup@serversareup
  ```
- **Google Gemini CLI:**
  ```bash
  gemini mcp add --transport http serversareup https://serversareup.com/api/mcp/v1
  ```
- **Cursor / VS Code / Windsurf (`mcp.json`):**
  ```json
  {
    "mcpServers": {
      "serversareup": {
        "url": "https://serversareup.com/api/mcp/v1",
        "headers": {
          "Authorization": "Bearer ${SAU_API_TOKEN}"
        }
      }
    }
  }
  ```
- **Google Antigravity (`~/.gemini/antigravity/mcp_config.json`):**
  ```json
  {
    "mcpServers": {
      "serversareup": {
        "serverUrl": "https://serversareup.com/api/mcp/v1",
        "headers": {
          "Authorization": "Bearer ${SAU_API_TOKEN}"
        }
      }
    }
  }
  ```
- **Official `sau` Terminal CLI (Node.js 20+):**
  ```bash
  npm install -g https://serversareup.com/downloads/serversareup-cli.tgz
  ```

## 2. Zero-Auth Discovery Tools (Works Immediately Without an API Key)

Any MCP client connected to `https://serversareup.com/api/mcp/v1` WITHOUT an `Authorization` header can immediately call:
1. `sau_search_catalog` — Search live Linux VPS, Windows Server 2025, Pooled Virtual Datacenter, Docker/K3s, Instant App, and Game Server plans with real-time purchase availability.
2. `sau_recommend_plan` — Map a natural-language workload (e.g. `"n8n + postgres"`, `"librechat 25 users"`, `"minecraft 20 players"`, `"windows rdp"`), RAM/vCPU target, and monthly budget to live Available SKUs, `WELCOME20` first-order discount pricing, annual SaaS/cloud savings, and direct checkout URLs.
3. `sau_compare_providers` — Compare $/GB RAM, monthly prices, and platform capabilities against DigitalOcean, Vultr, Linode, Hetzner, AWS Lightsail, Railway, Render, and Fly.io.
4. `sau_search_docs_and_tools` — Search API/infrastructure docs, Cloud Platform guides, comparisons, and 22 free developer calculators.
5. `sau_get_platform_facts` — Retrieve verified US hardware specs (Dell PowerEdge R940 Enterprise Nodes, Intel® Xeon® Platinum Processors, ECC Registered DDR4 Enterprise Memory), SLA terms, promo codes (`WELCOME20`, `SAVE10`), and discovery URLs.

Equivalent Zero-Auth HTTP `GET` endpoints:
- `GET https://serversareup.com/api/v1/version` — API version & health
- `GET https://serversareup.com/api/v1/catalog` — Live catalog & 69 self-hosted app templates (`?type=TEMPLATE`)
- `GET https://serversareup.com/api/v1/recommend?workload=<stack>` — Live AI plan & Instant App recommender with `WELCOME20` pricing and annual savings
- `GET https://serversareup.com/feed/products.json` — Structured live JSON product & pricing feed for AI shopping/search engines
- `GET https://serversareup.com/api/benchmarks/cloud-pricing` — CC-BY-4.0 2026 Cloud VPS Pricing Benchmark (`?format=csv` for CSV)
- `GET https://serversareup.com/api/trust/evidence` — Live SHA-256 verification across 22 security & privacy controls
- `GET https://serversareup.com/api/search?q=<query>` — Unified site, docs, Cloud Platform, and free-tool search
- `GET https://serversareup.com/cloud` & `GET https://serversareup.com/cloud-storage` — Browse 112 SAU Cloud Services, Managed SaaS apps, and Managed Cloud Storage hosted via Microsoft Azure (`250 GiB $9/mo` – `25 TiB $399/mo` + `5 GiB` free tier)
- Send `Accept: text/markdown` to any public page (`/`, `/cloud`, `/cloud-storage`, `/pricing`, `/linux`, `/ai`, `/docs`, `/docs/mcp`, `/compare`) for clean Markdown with `Vary: Accept`.

## 3. Authenticated Infrastructure Operations (Scoped `sau_...` Token)

Create a free self-serve account at `https://serversareup.com/register` (no credit card or sales call required) and mint a least-privilege token at `https://serversareup.com/account/api-keys`:
- `instances:read` — List/inspect VMs, containers, published endpoints, and SSH host-key pins (`sau_list_instances`, `sau_get_instance_access`).
- `instances:power` — Start, stop, or restart servers.
- `instances:exec` — Execute guest commands (`sau_exec_instance` / `POST /api/v1/instances/{id}/exec`), install included 1-click apps (`sau_install_app`), or mint 60–3600s Ed25519 SSH key leases (`sau_ssh_authorize` / `POST /api/v1/instances/{id}/ssh-leases`).
- `instances:files:read` / `instances:files:write` — Read or write UTF-8 files directly on owned instances.
- `cloud:read` / `cloud:write` — Manage Resource Groups, tags, CanNotDelete/ReadOnly locks, Managed Cloud Storage hosted via Microsoft Azure, Multi-Model Cloud Databases, Key Vault secrets, Cloud Identity, SIEM/SOAR, and 112 Cloud & SaaS services.
- `billing:write` + `instances:write` — Place authorized orders with an explicit `Idempotency-Key` and legal document hash acceptance.

## 4. Architecture & Operational Guardrails for AI Assistants

- **Never invent prices or uptime percentages:** Always read live prices from `sau_search_catalog` or `/api/v1/catalog`. Our SLA gives service credits when qualifying downtime passes one hour in a month. We do not publish an uptime percentage.
- **Default-off inbound network posture:** New Linux VPS instances keep public inbound ports closed until the customer opens an entry point or connects via browser WebSSH / WireGuard VPN / ephemeral SSH lease.
- **Reuse `Idempotency-Key` on retries:** Every mutating POST/PATCH/DELETE accepts an `Idempotency-Key` header or `idempotencyKey` tool field so uncertain network retries never duplicate servers or charges.
