# Stagecut — Full Developer & Coding-Agent Reference

> Stagecut turns any live product URL, authenticated SaaS app, or localhost coding session into a 25–33 second beat-locked launch trailer (1080p/30fps or 4K/60fps, -14 LUFS) with live Chromium UI motion clips, optical scene dissolves, optional sidechain-ducked AI voiceover, 13-point automated render QA with automatic credit refunds, and opt-in hosted share pages (`https://watch.stagecut.dev/f/<slug>`).

## 1. Connect Stagecut to Your Coding Agent

**Endpoint:** `https://mcp.stagecut.dev` (Streamable HTTP, MCP protocol `2026-07-28`, stateless)
**Auth:** `Authorization: Bearer sc_live_<your_key>` (mint keys and set per-day/per-film spend budgets at `https://app.stagecut.dev/agent`)
**Discovery card:** `https://mcp.stagecut.dev/.well-known/mcp/server-card.json`

### Claude Code
```bash
claude mcp add --transport http stagecut https://mcp.stagecut.dev \
  --header "Authorization: Bearer sc_live_YOUR_KEY"
```

### Cursor (`.cursor/mcp.json` or `~/.cursor/mcp.json`)
```json
{
  "mcpServers": {
    "stagecut": {
      "url": "https://mcp.stagecut.dev",
      "headers": {
        "Authorization": "Bearer sc_live_YOUR_KEY"
      }
    }
  }
}
```

### OpenAI Codex (`~/.codex/config.toml`)
```toml
[mcp_servers.stagecut]
url = "https://mcp.stagecut.dev"
bearer_token_env_var = "STAGECUT_API_KEY"
```

### Windsurf / Cline / Zed / Generic Streamable HTTP MCP
```json
{
  "mcpServers": {
    "stagecut": {
      "transport": "streamable-http",
      "url": "https://mcp.stagecut.dev",
      "headers": {
        "Authorization": "Bearer sc_live_YOUR_KEY"
      }
    }
  }
}
```

## 2. Complete MCP Tool Catalogue (15 Tools + Built-In Skill)

Always read the server's built-in resource `skill://stagecut/launch-film/SKILL.md` before drafting or editing scenes — it contains the exact live arc, copy bounds, and violation codes checked by the API.

| Tool | Access | Purpose |
| --- | --- | --- |
| `stagecut_list_films` | read-only | Paginate the account's films (newest first). |
| `stagecut_get_film` | read-only | Read full storyboard, assets, look, violations, QA, signed media URLs, `shareUrl`, and credit balance. |
| `stagecut_create_film` | mutating | Create a film shell with template board (0 credits, no AI call). |
| `stagecut_update_film` | mutating | Update title, URL, tier (`standard`/`ultra`), aspect (`16:9`/`9:16`), tempo (`116`/`124`/`132` BPM), theme (`obsidian`/`midnight`/`light`), accent hex, music mood (`pulse`/`drive`/`minimal`), HUD, or `voiceover` (`true`/`false`). |
| `stagecut_capture_film` | mutating | Headless Chromium capture of up to 6 routes on the product origin, including authenticated login/cookies, vision-guided 2-hop explorer, and live UI hover/scroll motion clips. |
| `stagecut_request_upload_urls` | mutating | Mint signed R2 PUT URLs to upload local screenshots (e.g., from `localhost:3000`) without pasting image bytes into chat. |
| `stagecut_draft_storyboard` | mutating | Create or AI-direct a beat-locked storyboard grounded in captured page copy and brief (0 credits). |
| `stagecut_edit_frames` | mutating | Batch-edit scene headlines, kickers, screenshots, bars, motion, zoom, or focal rects in one call (3 included free remasters per mastered film). |
| `stagecut_render_launch_film` | mutating | Quote credit cost (`approved` omitted) or debit credits and trigger cloud rendering (`approved: true`), capped by the key's spend budget. |
| `stagecut_get_task` | read-only | Poll render progress until `completed` (signed `masterUrl`, Ultra `uhdMasterUrl`, `contactSheetUrl`, QA) or `failed` (auto-refunded). |
| `stagecut_share_film` | mutating | Publish (`shared: true`) or revoke (`shared: false`) an opt-in hosted watch page (`watch.stagecut.dev/f/<slug>`) with OpenGraph/Twitter video cards and `<iframe>` embed. |
| `stagecut_get_billing` | read-only | Read account info, credit balance, and ledger history. |
| `stagecut_create_checkout` | mutating | Generate a hosted Polar checkout URL (`single` $15, `launch` $50, `studio` $129) for a human to complete. |
| `stagecut_get_budget` | read-only | Inspect this API key's remaining daily/per-film credit limits and x402 daily USD top-up allowance. |
| `stagecut_buy_credits` | mutating | Autonomous USDC top-up via x402 (EIP-3009 on Base / Base Sepolia) with zero human checkout loop, capped by human-set daily USD budget. |

## 3. Canonical Autonomous Workflow (Localhost or Live URL)

1. Capture real product screens:
   - Live or staging URL (public or behind demo login): call `stagecut_capture_film`.
   - Localhost app (`http://localhost:3000`): take 3–6 crisp 2560×1440 (16:9) or 1440×2560 (9:16) PNG screenshots with Playwright/browser tools, call `stagecut_request_upload_urls`, and HTTP `PUT` each PNG.
2. Direct the beat-locked storyboard with `stagecut_draft_storyboard` (pass product name, target user, input→output promise, and 3–5 concrete features).
3. Optional polish with `stagecut_update_film` (e.g. `voiceover: true`, `theme: "obsidian"`, `bpm: 124`) or `stagecut_edit_frames`.
4. Render with `stagecut_render_launch_film` (pass `approved: true` when authorized by user/budget; poll `stagecut_get_task` until `completed`).
5. Publish a clean share link with `stagecut_share_film({ filmId, shared: true })` and return `shareUrl` (or post it to a PR / GitHub Release / Slack).

## 4. Pricing, Tiers & Quality Guarantees

- **Single Film:** $15 one-time · 1 credit (1 Standard film)
- **Launch Pack:** $50 one-time · 5 credits ($10/credit · save 33%)
- **Studio Pack:** $129 one-time · 15 credits ($8.60/credit · save 43%)
- **Standard cut (1 credit):** 6 scenes, 13 bars (~25.2s at 124 BPM), bar-4 hero drop (7.7s), 1080p 30 fps MP4 + contact sheet PNG, 3 free scene edits.
- **Ultra cut (2 credits):** 8 scenes, 17 bars (~32.9s at 124 BPM), 4K 2160p 60 fps + 1080p 60 fps masters + contact sheet PNG, 3 free scene edits.
- **Automated Render QA + Auto-Refund:** Every master is checked across 13 automated format, frame-count, frame-0 visibility, freeze-frame, loudness (-14 LUFS), drop alignment, typography size, and single-line headline metrics. Broken or lost renders automatically refund the credit once.

## 5. Example Coding-Agent Prompts

- *"Capture http://localhost:3000 (dashboard, analytics, settings), build a 25-second Stagecut launch film with AI voiceover, and give me the watch.stagecut.dev share link."*
- *"Use Stagecut MCP to record our staging URL https://staging.acme.dev using our demo credentials, render an Ultra 4K trailer, and post the watch link to this PR."*
