OAuth + MCP Integration

Sign in and approve access from ChatGPT, Claude, Gemini, Codex CLI, or Claude Code to create real Vivoldi short links directly in conversation — no API keys or client secrets required.

Vivoldi provides an OAuth 2.1 authorization server and a Streamable HTTP remote MCP server scoped strictly to short link creation (links:create).

  • ChatGPT
  • Claude
  • Gemini
  • Codex CLI
  • Claude Code

Create short links in AI chat

Once connected, paste any destination URL in chat. The assistant invokes create_short_link, returns a real Vivoldi short link and QR URL, and saves it in your dashboard.

User Shorten https://example.com/event with Vivoldi.
AI Assistant (create_short_link) Created a short link using your default domain. It is now available in your Vivoldi dashboard.
short_url: https://vvd.bz/a1B2c3
qr_url: https://vvd.bz/a1B2c3/qr
original_url: https://example.com/event
User Create a new link to the same event page titled “December Campaign”.
AI Assistant (create_short_link) Created a separate new short link with the requested title.
short_url: https://vvd.bz/x9Y8z7
title: 12월 알림톡
qr_url: https://vvd.bz/x9Y8z7/qr
If no destination URL is present in the conversation, the assistant asks only for the missing URL. On error or uncertain outcome, it reports the structured error and retryability instead of guessing a short link.

Connect, Permissions & Disconnect by Platform

Web AI apps connect through standard browser OAuth sign-in and consent, while CLI clients register the remote MCP URL once and open the same browser consent flow. End users never need to create API keys or client secrets.

Pre-directory notice: Before official ChatGPT Plugin and Claude Connector directory listings are approved, use the currently available custom remote MCP connector and CLI methods below. Official one-click install links will be added here and in the dashboard once approved.

ChatGPT Web (Developer Mode / Custom Connector)

  • Open ChatGPT settings and add a custom remote MCP connector in Developer Mode.
  • Enter https://vivoldi.com/api/mcp as the remote MCP URL and choose OAuth authentication.
  • Sign in to Vivoldi and approve links:create to create links directly in chat.

Codex CLI (Terminal)

  • Configured separately from ChatGPT Web in local ~/.codex/config.toml with https://vivoldi.com/api/mcp.
  • On first launch, Codex performs OAuth discovery, dynamic client registration (DCR), and browser sign-in using a 127.0.0.1 loopback callback.
  • Tokens are issued with PKCE S256 and RFC 9207 iss verification.

Claude Web, Desktop & Mobile (Custom Connector)

  • In Claude Settings → Connectors, add a custom remote MCP connector with https://vivoldi.com/api/mcp.
  • Claude automatically discovers OAuth endpoints via HTTP 401 resource_metadata, RFC 9728, and RFC 8414.
  • Approve links:create with your Vivoldi account to use the tool across Claude web, desktop, and mobile.

Claude Code (Terminal)

  • Registered separately from Claude Web via claude mcp add --transport http vivoldi https://vivoldi.com/api/mcp.
  • Completes OAuth sign-in via localhost loopback callback with PKCE S256 and RFC 8707 resource binding.
  • Check status or re-authenticate anytime from the /mcp command in Claude Code.

Gemini (Gemini CLI & Connected Apps)

  • Gemini CLI: Add https://vivoldi.com/api/mcp as httpUrl in ~/.gemini/settings.json to connect using standard OAuth discovery, DCR, and PKCE.
  • Gemini Connected Apps: App-specific console HTTPS callbacks and persistent refresh-token rotation compatibility are verified separately before official listing.

Scope Review & Immediate Disconnect

  • The only granted scope is links:create (create short links on your behalf); reading, editing, deleting links, or changing settings is never allowed.
  • Review and revoke connected apps anytime under Dashboard → My Profile → Connected AI Apps.
  • Revocation takes effect immediately (0 seconds), invalidating all access and refresh tokens.

Remote MCP Server & OAuth 2.1 Endpoints

Connect directly via the HTTPS Streamable HTTP endpoint — no local npm package required. Until production activation is switched on, treat the production URLs below as canonical pre-launch endpoints.

Endpoint URL Description
Remote MCP Server https://vivoldi.com/api/mcp Streamable HTTP remote MCP protected resource (canonical pre-launch URL)
Protected Resource Metadata (RFC 9728) https://vivoldi.com/.well-known/oauth-protected-resource/api/mcp Advertises canonical resource, authorization server issuer, links:create scope, and Bearer header support
Authorization Server Metadata (RFC 8414) https://vivoldi.com/.well-known/oauth-authorization-server Authorization, token, registration, and revocation endpoints with PKCE S256 and RFC 9207 iss support (no OIDC)
Authorization Endpoint GET https://vivoldi.com/oauth/authorize Browser entry for Authorization Code + PKCE S256 sign-in and consent
Dynamic Client Registration (RFC 7591) POST https://vivoldi.com/oauth/register Restricted public client registration (none) — official HTTPS callbacks and RFC 8252 loopback URIs only
Token Endpoint POST https://vivoldi.com/oauth/token authorization_code exchange and refresh_token rotation (AT 15m, RT idle 30d / absolute 90d, 30s concurrent grace)
Revocation Endpoint (RFC 7009) POST https://vivoldi.com/oauth/revoke Immediate AT/RT revocation (revoking an RT revokes the entire app grant)
Claude Code (Streamable HTTP)
claude mcp add --transport http vivoldi https://vivoldi.com/api/mcp
Codex CLI (~/.codex/config.toml)
[mcp_servers.vivoldi]
url = "https://vivoldi.com/api/mcp"
Gemini CLI (~/.gemini/settings.json)
{
  "mcpServers": {
    "vivoldi": {
      "httpUrl": "https://vivoldi.com/api/mcp"
    }
  }
}

create_short_link Tool Specification

The first write tool on the remote MCP server is create_short_link, annotated with readOnlyHint: false, destructiveHint: false, idempotentHint: false, and openWorldHint: true. Internal organization IDs and API keys are never accepted as inputs — the server enforces the authenticated member’s organization, plan, and quota policies directly.

Fields Type Required Description
url string Required Destination URL to shorten. Must start with http:// or https:// (1–2048 characters).
title string Optional Optional title shown in your Vivoldi dashboard (up to 255 characters). Uses Vivoldi default when omitted.
domain string Optional Optional short domain (up to 255 characters). When omitted, uses the account’s configured default short domain if eligible, otherwise falls back to vvd.bz. Explicit custom domains require a Premium+ plan with an active owned domain.
idempotency_key string Optional Optional client-generated operation ID for safe retries. 8–48 characters using letters, digits, and . _ : -.
create_short_link inputSchema (JSON Schema)
{
  "type": "object",
  "additionalProperties": false,
  "required": ["url"],
  "properties": {
    "url": {
      "type": "string",
      "minLength": 1,
      "maxLength": 2048,
      "description": "Original destination URL starting with http:// or https://"
    },
    "title": {
      "type": "string",
      "maxLength": 255,
      "description": "Optional link title shown in Vivoldi dashboard"
    },
    "domain": {
      "type": "string",
      "maxLength": 255,
      "description": "Optional short link domain owned by the account or Vivoldi default domain"
    },
    "idempotency_key": {
      "type": "string",
      "pattern": "^[A-Za-z0-9._:-]{8,48}$",
      "description": "Optional client-generated idempotency key reused only when retrying the same operation"
    }
  }
}
Success Response JSON (structuredContent / text)
{
  "short_url": "https://vvd.bz/a1B2c3",
  "qr_url": "https://vvd.bz/a1B2c3/qr",
  "original_url": "https://example.com/event",
  "title": "12월 알림톡",
  "domain": "https://vvd.bz",
  "replayed": false,
  "dashboard_url": "https://dashboard.vivoldi.com/url/link"
}
QR URL note: qr_url (short_url + /qr) points to Vivoldi’s standard PNG QR endpoint. QR image rendering and link destination access controls (disabled, expired, or password-protected links) are separate contracts.

Retry Safety (idempotency_key) & Guarantee Scope

  • Who generates the key: The client or host generates idempotency_key before the initial call and reuses the exact same key and inputs (url, title, domain) only when retrying that same operation.
  • Replay & retention: Retrying a committed call with the same key and inputs returns the original result with replayed: true without creating a duplicate link or consuming link quota. Records are isolated per account and retained for at least 72 hours.
  • Distinct intents stay separate: Omitting idempotency_key creates a new link every time. JSON-RPC request IDs or identical destination URLs alone never merge separate user intents.
  • Clients that cannot preserve keys: If a client did not send a key initially or cannot reuse the same key on retry, do not blindly retry after an ambiguous timeout — verify in the dashboard first.

HTTP Auth Errors vs. MCP Tool Errors

Authentication and scope failures return standard HTTP status codes, while business policy, input validation, quota, and organization IP allowlist errors return structured MCP tool errors (isError: true).

HTTP Protocol-Layer Errors

HTTP / Error Retry Cause and fix
401 invalid_token Re-auth Missing, expired, or revoked Bearer token, resource mismatch, revoked grant, disabled account, organization change, or password change. Re-authenticate via WWW-Authenticate resource_metadata.
403 insufficient_scope false Valid token without the links:create scope. Re-authorize with the required permission.
503 Service Unavailable true Temporary authentication store outage. Keep the token and retry after Retry-After.

MCP Tool Execution Errors (CallToolResult isError = true)

error_code retryable Cause and fix
ORG_IP_WHITELIST_MCP_BLOCKED false Paid organization has API IP allowlist enabled while the admin AI app (MCP) switch is off. An organization owner or admin must enable it in Dashboard Developer API settings.
EMAIL_VERIFICATION_REQUIRED false Email verification is not completed on this Free plan account. Verify your email first.
AUTH_REVOKED false Authorization was immediately revoked during request processing due to disconnect, password change, account deactivation, or organization change. Reconnect your Vivoldi account.
INVALID_URL / BLOCKED_URL false Blank URL, non-http(s) scheme, blocked domain, or self-referencing Vivoldi short URL.
DOMAIN_PLAN_REQUIRED / DOMAIN_NOT_OWNED false Specified custom domain requires a Premium+ plan or is not owned and active in your organization.
DUPLICATE_URL_PLAN_LIMIT false Duplicate short links for the same destination URL are restricted on Free and Starter plans.
LINK_QUOTA_EXCEEDED false Monthly link creation quota or Free plan daily limit has been exceeded.
INVALID_IDEMPOTENCY_KEY / INVALID_REQUEST false Invalid idempotency_key format (must be 8–48 ASCII chars), unsupported parameter, invalid type, or value exceeding maximum length.
RATE_LIMIT_EXCEEDED true Organization per-minute or per-hour API rate limit exceeded. Retry after retry_after_seconds.
IDEMPOTENCY_CONFLICT / IDEMPOTENCY_IN_PROGRESS false / true CONFLICT means the same idempotency_key was reused with different inputs (use a new key); IN_PROGRESS means the earlier request is still running (retry shortly with the same key).
TEMPORARILY_UNAVAILABLE true Temporary server or store failure. Retry shortly with the same idempotency_key.
MCP Tool Error Example (isError: true)
{
  "error_code": "ORG_IP_WHITELIST_MCP_BLOCKED",
  "message": "Your organization has API IP allowlist restriction enabled and has not allowed AI apps (MCP) to create links.",
  "retryable": false,
  "action_hint": "Ask an organization Owner or Admin to turn on 'Allow AI apps (MCP) with IP allowlist' in Vivoldi Dashboard > Developer API (/url/api)."
}

Organization IP Allowlist, Immediate Revocation & Isolation

Organization API IP Allowlist

When API IP allowlist restrictions are enabled on a paid organization, AI platform server IPs are never treated as employee IPs and MCP access is blocked by default. It opens only when an organization owner or admin explicitly enables the AI app (MCP) allow switch in Dashboard Developer API settings.

0-Second Immediate Revocation

Revoking an app in My Profile, calling /oauth/revoke, changing password, disabling or deleting an account, or leaving an organization immediately blocks all subsequent MCP calls and token refreshes with zero cache grace period.

Isolated from Existing Auth Channels

OAuth access tokens apply exclusively to the remote MCP endpoint (/api/mcp) and remain completely isolated from Authorization: APIKey REST APIs, browser extension tokens, and CRM SSO JWTs.