Skip to content

Desktop AI apps — hosted MCP endpoint (API key or OAuth)

Soverenia runs a hosted MCP streamable-HTTP endpoint:

https://api.soverenia.com/mcp

Two ways to authenticate — pick one per client:

  1. Static API key (works in every client below): a single fixed header, no OAuth flow:
Authorization: Bearer sov_…
  1. OAuth 2.1 (automatic, no key to paste): supported by clients with OAuth capability (e.g. Google Antigravity). The server answers 401 with WWW-Authenticate + resource metadata (RFC 9728), the client registers (DCR), opens /oauth/authorize in your browser, and you press Allow once — see the Google Antigravity section. Tokens are Bearer too, refreshed automatically.

With a static key, OAuth is never attempted.

Get a key: sign in at www.soverenia.com/login.html → dashboard → create API key (shown once, starts with sov_).

Every MCP client below can send a static Authorization header, so each block is complete copy-paste config. Pick your app:

App Config location Auth
Claude Code (Desktop) Plugins → Connectors → Add → Add connector (or claude mcp add) Bearer key, or OAuth 2.1 (auto)
Cline / Roo Code cline_mcp_settings.json (or CLI) Bearer key
Continue ~/.continue/config.yaml Bearer key
Cursor ~/.cursor/mcp.json / .cursor/mcp.json Bearer key
Google Antigravity (IDE/CLI) ~/.gemini/antigravity/mcp_config.json — serverUrl only OAuth 2.1 (auto), no key needed
Goose (Block) goose configure / ~/.config/goose/config.yaml Bearer key
Jan MCP Servers settings UI (or jan CLI) Bearer key
LM Studio ~/.lmstudio/mcp.json Bearer key
Mistral Desktop connector UI Bearer key, or OAuth 2.1 (auto) on connect
OpenCode (CLI/TUI) ~/.config/opencode/opencode.json Bearer key ("oauth": false), or OAuth
Raycast AI (macOS) MCP Servers settings UI Bearer key
VS Code + Copilot Chat .vscode/mcp.json Bearer key
Windsurf ~/.codeium/windsurf/mcp_config.json Bearer key
Zed ~/.config/zed/settings.json Bearer key, or OAuth (prompted if no header)

Endpoint behaviour

POST /mcp answers with plain JSON (Content-Type: application/json) and sets an Mcp-Session-Id header on initialize — the MCP spec allows this instead of SSE. GET /mcp opens an SSE stream (heartbeat comments only, no data) for clients that require a GET stream before POSTing; DELETE /mcp returns 405. Without a valid key both return 401 with WWW-Authenticate: Bearer realm="soverenia", …, resource_metadata="…/.well-known/oauth-protected-resource" (RFC 9728 — this is what triggers the automatic OAuth flow in Antigravity / Mistral Desktop / Zed). Supported methods: initialize, ping, tools/list, tools/call, notifications (202), JSON-RPC batches (max 50 messages). tools/list returns three tools: check_package, check_install_plan, check_sbom (pro-gated — a free key gets a PLAN_REQUIRED error when calling check_sbom). No anti-replay headers on POST /mcp (desktop clients can't send per-request nonces) — Bearer only, but per-key plan rate limits still apply.

1. Make the agent check every package (prompt + skill)

Connecting the MCP server is not enough — the agent must actually call it. Two copy-paste options that work in any of the apps above:

Option A — system prompt / AGENTS.md. Paste into the agent's system prompt or project AGENTS.md:

Before installing, downloading or upgrading ANY package, call the Soverenia
MCP server (`@soverenia` in apps that support @-mentions) — tool `check_package`
with its purl and version (e.g. pkg:npm/lodash@4.17.21).
- AVOID → do NOT install; explain why and propose an alternative.
- UPGRADE → install `authoritative.upgrade_to` instead (if missing — identity rule — use the latest version).
- SAFE → proceed.
The verdict in `authoritative` is Ed25519-signed and final — never override it to SAFE.
You may annotate `local_context.local_relevance` ("reachable"/"unreachable"),
but it never changes the verdict.
For a whole install plan at once, use `check_install_plan` with the list of
{purl, version, resolved} entries — it also flags untrusted download hosts.
For a CycloneDX/SPDX SBOM, use `check_sbom` (pro plan) — one call returns a
summary plus a signed verdict per component.

Option B — Agent Skill (SKILL.md). Skills-aware agents (Claude Code, OpenCode, Cursor, …) auto-load skills from a skills directory. Create ~/.claude/skills/soverenia-guard/SKILL.md (or .agents/skills/soverenia-guard/SKILL.md in the project):

---
name: soverenia-guard
description: Check every package with Soverenia (signed SAFE/UPGRADE/AVOID verdict) before installing it. Use before any npm/pip/cargo/uv install or dependency change.
---

Before installing, downloading or upgrading any package, call the Soverenia MCP
server (`@soverenia` where @-mentions work) — tool `check_package` with its
purl + version:

- **AVOID** → do not install; explain why, propose an alternative.
- **UPGRADE** → use `authoritative.upgrade_to` instead (if missing — identity rule — use the latest version).
- **SAFE** → proceed.

The `authoritative` verdict is Ed25519-signed and final — never override to SAFE.
`local_context.local_relevance` may be annotated, never the verdict.
For batches, call `check_install_plan` with [{purl, version, resolved}, …].
For a CycloneDX/SPDX SBOM, call `check_sbom` (pro plan).

With the skill present, "add lodash" or "upgrade our deps" automatically triggers the check — no need to remember the prompt.

2. Set up your app (pick one — each block is complete, copy-paste top to bottom)

Claude Code (Desktop app)

Remote MCP connectors in the Claude Code desktop app are added through the connector UI:

  1. Top-right corner → Plugins
  2. Select Connectors
  3. Click Add, then choose Add connector from the menu (custom remote connector)
  4. Name: Soverenia · URL: https://api.soverenia.com/mcp (note the api. subdomain)
  5. Authentication: No sign in — put the key into Request headers: Authorization = Bearer sov_…
  6. Save/Add → the connector offers three tools: check_package, check_install_plan, check_sbom (pro plan)

If your client build supports OAuth connectors, you can skip the key: leave the header empty and the app runs the OAuth 2.1 flow (browser → sign in → Allow) automatically, like Google Antigravity.

Where the calls come from

In the Claude desktop app (and Cowork), connectors are called from Anthropic's cloud, not from your computer. To call Soverenia directly from your own machine, use the Claude Code CLI:

claude mcp add --scope user --transport http soverenia https://api.soverenia.com/mcp \
  --header "Authorization: Bearer sov_…"

Cline / Roo Code (VS Code extensions)

Cline panel → MCP Servers icon → Configure → cline_mcp_settings.json:

{
  "mcpServers": {
    "soverenia": {
      "url": "https://api.soverenia.com/mcp",
      "headers": { "Authorization": "Bearer sov_…" }
    }
  }
}

Or via CLI (same result):

cline mcp add soverenia https://api.soverenia.com/mcp --transport http \
  --header "Authorization: Bearer sov_…" --yes

Continue

~/.continue/config.yaml (global) or workspace .continue/config.yaml:

mcpServers:
  - name: soverenia
    type: streamable-http
    url: https://api.soverenia.com/mcp
    headers:
      Authorization: Bearer sov_…

Cursor

Global ~/.cursor/mcp.json (all projects) or per-project .cursor/mcp.json:

{
  "mcpServers": {
    "soverenia": {
      "url": "https://api.soverenia.com/mcp",
      "headers": { "Authorization": "Bearer sov_…" }
    }
  }
}

Cursor also interpolates env vars in headers — "Bearer ${env:SOVEREENIA_API_KEY}" works if you export the key. Then Settings → MCP → the server should show as connected (green).

Google Antigravity (OAuth — no API key needed)

Google's desktop IDE runs the full OAuth 2.1 + PKCE + DCR flow automatically when the server answers 401 with WWW-Authenticate + resource metadata (RFC 9728 — which https://api.soverenia.com/mcp does). Just add the remote server — no token to paste. Config ~/.gemini/antigravity/mcp_config.json (or ~/.gemini/config/mcp_config.json for the CLI):

{
  "mcpServers": {
    "soverenia": { "serverUrl": "https://api.soverenia.com/mcp" }
  }
}

On first connect Antigravity registers a client (POST /oauth/register), opens your browser at /oauth/authorize (sign in with your Soverenia account — Google/GitHub/Microsoft OAuth or email — and press Allow on the consent screen), then stores the access token itself and calls the tools with Authorization: Bearer …. Tokens expire after 1 h and are refreshed automatically; revoking works via POST /oauth/revoke.

Goose (Block)

Interactive: goose configure → Add Extension → Remote Extension (Streamable HTTP) → URI https://api.soverenia.com/mcp, answer yes to custom headers → Authorization = Bearer sov_….

Or edit ~/.config/goose/config.yaml:

extensions:
  soverenia:
    enabled: true
    type: streamable_http
    uri: https://api.soverenia.com/mcp
    headers:
      Authorization: Bearer sov_…

Jan

Settings → Integrations → MCP Servers → Add MCP Server: choose HTTP, URL https://api.soverenia.com/mcp, then set the Authorization header (Bearer sov_…) on the server entry. Per Jan's docs, a manually set Authorization header wins — OAuth is never attempted. (Jan keeps MCP servers in its own app settings storage — ~/.config/jan/ on Linux, ~/Library/Application Support/Jan/ on macOS — there is no separate hand-edited JSON file.) Headless alternative: the jan CLI (jan mcp …).

LM Studio

~/.lmstudio/mcp.json (LM Studio ≥ 0.3.17 acts as an MCP host for local models):

{
  "mcpServers": {
    "soverenia": {
      "url": "https://api.soverenia.com/mcp",
      "headers": { "Authorization": "Bearer sov_…" }
    }
  }
}

Mistral Desktop

Mistral Desktop connects over HTTP — no npm package needed:

  1. Add custom connector → Connector name: Soverenia
  2. Server: https://api.soverenia.com/mcp (standard MCP streamable-HTTP endpoint — note the api. subdomain)
  3. Authentication: Bearer token — paste your sov_… API key from the dashboard

The connector then offers three tools in chat: check_package, check_install_plan, check_sbom (pro plan).

Leave the token empty and the connector runs the same automatic OAuth 2.1 flow as Google Antigravity: 401 + WWW-Authenticate with resource metadata (RFC 9728) → DCR (POST /oauth/register) → browser at /oauth/authorize → Allow — no key to paste.

OpenCode (CLI/TUI)

OpenCode talks to the hosted endpoint directly — no npm install. Global ~/.config/opencode/opencode.json (or project-level ./opencode.json):

{
  "$schema": "https://opencode.ai/config.json",
  "mcp": {
    "soverenia": {
      "type": "remote",
      "url": "https://api.soverenia.com/mcp",
      "enabled": true,
      "oauth": false,
      "headers": { "Authorization": "Bearer sov_…" }
    }
  }
}

{env:SOVEREENIA_API_KEY} interpolation works in headers. Then run opencode → /mcp lists soverenia as connected. (Local stdio alternative: "soverenia": { "type": "local", "command": ["soverenia-mcp"] } after npm install -g @soverenia/agent-guard — see quickstart.)

Raycast AI (macOS)

Raycast → Settings → AI → MCP Servers → Add Server:

  • Transport: HTTP
  • URL: https://api.soverenia.com/mcp
  • HTTP Headers: Authorization = Bearer sov_…
  • Leave OAuth unset — a manual header means no OAuth flow is started.

Tools are then available in AI Chat / Quick AI / AI Commands.

VS Code + GitHub Copilot Chat

Create .vscode/mcp.json in the workspace:

{
  "servers": {
    "soverenia": {
      "type": "http",
      "url": "https://api.soverenia.com/mcp",
      "headers": { "Authorization": "Bearer sov_…" }
    }
  }
}

Reload the window (Developer: Reload Window), open Copilot Chat in agent mode — all three tools (check_package, check_install_plan, check_sbom) appear in the tool picker.

Windsurf (Codeium Cascade)

Open Windsurf Settings → MCP → Open Config (~/.codeium/windsurf/mcp_config.json):

{
  "mcpServers": {
    "soverenia": {
      "serverUrl": "https://api.soverenia.com/mcp",
      "headers": { "Authorization": "Bearer sov_…" }
    }
  }
}

Press the refresh button after saving; Cascade lists the tools.

Zed

~/.config/zed/settings.json:

{
  "context_servers": {
    "soverenia": {
      "url": "https://api.soverenia.com/mcp",
      "headers": { "Authorization": "Bearer sov_…" }
    }
  }
}

Note: if a remote server has no Authorization header, Zed prompts for OAuth 2.1 — the server answers 401 with WWW-Authenticate + resource metadata (RFC 9728), Zed registers a client (DCR, POST /oauth/register) and opens /oauth/authorize in your browser; press Allow once. With the header set, OAuth is skipped entirely. The agent panel then shows the three Soverenia tools.

3. Verify the connection

Raw protocol check (any HTTP client). tools/list must return exactly three tools:

curl -s https://api.soverenia.com/mcp \
  -H "Authorization: Bearer sov_…" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json, text/event-stream" \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'

Expected result.tools[].name: check_package, check_install_plan, check_sbom. (check_sbom is pro-gated: on a free key, calling it returns JSON-RPC error -32000 with data.code: "PLAN_REQUIRED".)

Sample tools/call — check one package:

curl -s https://api.soverenia.com/mcp \
  -H "Authorization: Bearer sov_…" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json, text/event-stream" \
  -d '{"jsonrpc":"2.0","id":2,"method":"tools/call","params":{"name":"check_package","arguments":{"purl":"pkg:npm/lodash@4.17.21","version":"4.17.21"}}}'

Expected: result.content[0].text is a JSON document whose authoritative.verdict is UPGRADE for lodash 4.17.21 (known advisories), with authority: "soverenia-engine" and an Ed25519 signature verifiable against /.well-known/soverenia-keys.json. check_install_plan takes a whole list of {purl, version, resolved} entries and flags untrusted download hosts in sources[]; check_sbom takes a CycloneDX/SPDX SBOM (JSON object in sbom or string in sbom_text).

In the app: ask (in apps with @-mentions, type the server handle directly):

@soverenia Check pkg:npm/lodash@4.17.21 before installing.

Expected: the agent calls check_package and reports UPGRADE with the signed verdict.

4. Security notes

  • The sov_… key is a bearer credential: treat config files containing it as secrets (chmod 600 ~/.cursor/mcp.json etc.) and rotate the key in the dashboard if a file leaks.
  • 401 + OAuth discovery: a missing/invalid key gets 401 with WWW-Authenticate: Bearer realm="soverenia", resource_metadata="…/.well-known/oauth-protected-resource" (RFC 9728). OAuth-capable clients (Antigravity, Mistral Desktop, Zed) use this to start the DCR + /oauth/authorize flow automatically.
  • POST /mcp is Bearer-only: the anti-replay headers (X-Sovereignia-Timestamp + X-Sovereignia-Nonce) are required only on /v1/* and on GET /mcp/tools / POST /mcp/call (used by our own stdio client @soverenia/agent-guard) — not on POST /mcp. Per-key plan limits still apply on /mcp.
  • GET /mcp is a server→client SSE stream with heartbeat comments only (no data). Notifications-only POSTs get 202; JSON-RPC batches are capped at 50 messages (-32600 above that).
  • Rate limits & plans (per API key): free 60/min + 1 000/day, pro 300/min + 20 000/day, enterprise 1 000/min + 200 000/day — over the limit → 429 RATE_LIMITED with Retry-After. Additionally a per-IP edge limit of 600/min (shared across all keys from one IP). Details: API reference.
  • If a client still shows a generic "not a valid MCP server" error, check that it sends Accept: application/json, text/event-stream on POST (the MCP streamable-HTTP spec requires it) and that the URL is exactly https://api.soverenia.com/mcp — note the api. subdomain. See troubleshooting.