# ClipHeist: agent guide

> ClipHeist turns GTA VI stream VODs into vertical Shorts and TikToks: signal-based moment detection, 9:16 renders, AI hooks, a short-form SEO score and scheduled posting. Operated by Like A King Inc.

## Connect

1. **MCP (recommended).** Endpoint: `https://clipheist.shipaw.site/mcp` — Streamable HTTP, JSON responses. Every request needs `Authorization: Bearer ch_...`; the user creates the key at https://clipheist.shipaw.site/app/connections (shown once). Without a valid key the server returns 401 with a `WWW-Authenticate` header.
   - Claude Code: `claude mcp add --transport http clipheist https://clipheist.shipaw.site/mcp --header "Authorization: Bearer ch_..."`
2. **REST.** Described at https://clipheist.shipaw.site/openapi.json. Browser routes use a session cookie; agents should prefer MCP.
3. **Discovery.** https://clipheist.shipaw.site/.well-known/mcp.json (server card), https://clipheist.shipaw.site/llms.txt, https://clipheist.shipaw.site/llms-full.txt.
4. **Limits.** 120 MCP requests per minute per key; plan limits apply to everything (VODs per period, clips per VOD, posting on paid plans only).

## Tools (9)

- `get_account` — Return the signed-in ClipHeist account: plan, plan limits, VODs used this period, and which platforms are connected. Call this first to know what the user can do.
- `list_videos` — List the user's VODs (newest first) with status, length and number of detected moments. Uploading a new VOD is done in the web app or ClipHeist Desktop, not via MCP.
- `get_video` — Get one VOD and its detected moments, best first. Each moment has clip_id, start/end seconds, score 0-100, the plain-language reason it was picked, status (candidate, queued, rendering, rendered, failed) and its hook/caption if written.
- `render_clip` — Render a moment as a vertical 1080x1920 MP4 (takes ~20-60 s). Optionally set the layout (blur = full frame on blurred fill, crop = centre crop, facecam = webcam on top) and the on-screen hook first. Poll get_clip until status is rendered.
- `update_clip_copy` — Change a clip's on-screen hook (title), post caption and/or hashtags. Re-render afterwards (render_clip) to burn a new hook into the video.
- `get_clip` — Get a clip's status and, once rendered, a signed download URL for the MP4 that works without signing in for 1 hour. Share it only with the user.
- `clip_growth_score` — Score a clip 0-100 for YouTube Shorts / TikTok discoverability and list each check (hook length, GTA 6 keyword, tension, hashtags and their order, clip length, how early the peak lands, caption call to action) with a concrete fix for every failed check.
- `growth_plan` — The user's channel growth plan: posting stats, best posting hours (UTC) learned from their own posts, cadence, prioritised next actions, and YouTube / TikTok / GEO playbooks.
- `schedule_post` — Post a rendered clip to a connected platform now or at a time. Requires a paid plan (Pro/Studio) and the platform connected in the app. scheduled_at is an ISO 8601 time; omit to post within a minute.

## Typical flow

1. `get_account` → know the plan and connected platforms.
2. `list_videos` → `get_video` → pick high-score moments.
3. `clip_growth_score` → fix weak hooks with `update_clip_copy`.
4. `render_clip` → poll `get_clip` until `rendered` → give the user `download_url`.
5. `schedule_post` (Pro/Studio, platform connected) or let the user post manually.

## Rules

- Only work with content the user owns or has permission to clip. Never call clips official Rockstar/Take-Two content.
- Don't promise views or earnings. Don't bypass plan limits or licence checks. Don't scrape the web app.
- VOD upload isn't available over MCP; point users to the web app or ClipHeist Desktop.
