ShawDocs
Developers

Claude, ChatGPT & MCP Plugin

Connect Claude, ChatGPT, Codex, and Cursor to Shaw via OAuth 2.1 MCP with Template Code Library pulls, Brand Kit sync, and direct Klaviyo email import.

Shaw exposes a stateless, authenticated Streamable HTTP MCP server at https://shaw.ai/mcp alongside a redistributable plugin/ directory (shaw.ai/plugin) for Claude Code and Codex. Every MCP request runs inside your active Shaw organization and enforces OAuth 2.1 + PKCE scopes, workspace roles, and credit limits.

OAuth 2.1 + PKCERemote Workspace MCP
Plugin setup
Endpointhttps://shaw.ai/mcp
https://shaw.ai/mcp

Open Settings -> Connectors -> Add custom connector, paste the endpoint, and sign in at /app/connect.

Connect your AI client

Authorize once via OAuth 2.1 on Shaw Connect (default scopes: org:read, pages:read, pages:write, connectors:read), or pass a scoped personal API key (Authorization: Bearer sk_...) in headless clients.

Open Connectors in Claude

In Claude.ai or Claude Desktop, go to Settings → Connectors → Add custom connector.

Enter the Shaw MCP endpoint

Paste https://shaw.ai/mcp as the remote MCP server URL and choose Add.

Approve workspace scopes on Shaw Connect

Complete the browser OAuth 2.1 flow at https://shaw.ai/app/connect and confirm your workspace permissions.

Verify your connection

Ask Claude to check your workspace balance and search the catalog—for example: "Check my Shaw credits and find skincare landing pages."

End-to-end agent workflow

Shaw agents follow a predictable four-step flow that inspects credit headroom and per-page template size for free before committing credits:

  1. Check credit balance & unlocks (get_credits_balance). Read the active organization's plan (free, pro, or operator), monthlyRemainingCredits, packCreditsRemaining, total remainingCredits, and permanently unlocked template pages (unlockedTemplates).
  2. Search the catalog (search_templates). Filter by q, channel (websites, emails, apps, ads), category, or brand at 0 credit cost.
  3. Inspect per-page credit cost (get_template). Read codeMetrics (credits, fileCount), pages, and dna for candidate tpl_... IDs (with optional path) before asking the user to spend credits. Emails start at 2,500 credits minimum, and website/app pages cost 5,000 to 15,000 credits per page.
  4. Unlock with explicit confirmation (use_template or publish_template_to_klaviyo). Pass confirmed: true and a concise reason to unlock the page's HTML and linked CSS bundle—or import an email template directly into Klaviyo. Once unlocked, reusing that (templateSlug, pagePath) across future template versions costs 0 extra credits forever (lifetime updates).

When a page requires more credits than remainingCredits (and opt-in Auto Top-Up is off, lacks a saved payment method, or has reached its monthly dollar cap), Shaw returns status

402Payment Required (INSUFFICIENT_CREDITS, "You need more credits") with an upgradeUrl to shaw.ai/app/account. Do not retry automatically.

MCP tool responses (get_credits_balance → use_template)
{
  "status": 200,
  "body": {
    "ok": true,
    "data": {
      "organizationId": "org_01j9x2m4p7q8w2ab",
      "plan": "free",
      "periodKey": "2026-11",
      "planCredits": 5000,
      "monthlyUsedCredits": 0,
      "monthlyRemainingCredits": 5000,
      "packCreditsRemaining": 0,
      "usedCredits": 0,
      "remainingCredits": 5000,
      "locPerCredit": 1,
      "approxRemainingLoc": 5000,
      "unlockedTemplates": [],
      "packs": [],
      "upgradeUrl": "https://shaw.ai/app/account"
    }
  }
}

Tool domains & API endpoints

Tools register dynamically based on the scopes approved for your OAuth grant or API key. Tools that mutate workspace state or spend credits require confirmed: true and a reason string.

DomainMCP toolsRequired scopes
Organization & Creditsget_me, get_credits_balanceorg:read
Template Code Librarysearch_templates, get_template, list_brands, get_template_notes, use_template (confirmed: true)pages:read
Brand Kitget_brand_kit, update_brand_kit, import_brand_kitpages:read, pages:write
Klaviyo Email Importpublish_template_to_klaviyo (confirmed: true)pages:write
GET/api/credits
org:read

Read the active workspace billing plan, monthly and pack credits remaining, and permanently unlocked template pages.

GET/api/templates/search
pages:read

Search catalog metadata and pre-flight credit costs without consuming credits.

POST/api/templates/use
pages:read

Permanently unlock one template page using credits (0 credits once unlocked) and return HTML plus linked stylesheets.

POST/api/email-studio/klaviyo/publish-template
pages:write

Import a library email template directly into Klaviyo as a reusable CODE template or draft campaign (spends email credits on first unlock, 0 once unlocked, no Pro subscription required).

Edge-locked archive restrictions

Raw browser-only archive and preview capability routes (/api/templates/zip/*, /api/templates/ticket, /api/templates/remixes/*/view, and /api/builder/pages/export) are session-only and always return HTTP 403 (bearer_not_allowed) to MCP and API-key clients. Remix creation endpoints (/api/templates/remixes/*) are hidden from MCP; inspect metadata via get_template, extract metered page code via use_template, and import library emails directly to Klaviyo via publish_template_to_klaviyo.

If your account belongs to multiple Shaw organizations, pass the optional tenant parameter on any MCP tool call (or set the X-Shaw-Tenant header on HTTP requests) to target a specific workspace. See Monthly credits for full metering rules and Authentication & API keys for scope and token details.

On this page