Connects to the video-caption MCP server to caption, subtitle, translate, and restyle videos from social posts. Covers job submission, status polling, output retrieval, and job management.
Ships in video-caption-mcp. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
The video-caption MCP server exposes one pipeline over six tools: fetch a video from a social post, transcribe the speech, translate it, burn the translated captions into the picture, and leave an MP4 behind a signed link. It runs on Cloudflare Workers and takes minutes, not seconds.
Every submit_job call starts a new paid run. Treat it as spending money.
This plugin ships the server in its .mcp.json, so connecting is a matter of two environment
variables in the shell that launches Claude Code:
export VIDEO_CAPTION_API_KEY=<the Worker's API_KEY secret>
The URL defaults to https://vc.engdawood.com/mcp, the Worker's custom domain. The
*.workers.dev URL keeps working alongside it, so VIDEO_CAPTION_MCP_URL can point at
https://video-caption.engdawood.workers.dev/mcp to bypass the custom domain.
They are expanded once at launch, so a key set after Claude Code started will not be picked up — restart the session.
Outside this plugin, add it by hand:
claude mcp add --transport http video-caption https://<host>/mcp --header "x-api-key: <API_KEY>"
Auth fails closed: if API_KEY is unset on the Worker, every call gets 403 forbidden rather
than running unauthenticated. ?token=<API_KEY> on the URL is accepted as a fallback for clients
that cannot send custom headers (ChatGPT); prefer the header, since a query token ends up in logs,
proxies and shell history.
Note that the download links get_output mints are built from the Worker's own API_BASE_URL var,
not from the URL used to reach /mcp. If a returned link points at a different host than the one
just called, that var is stale on the deployment — the job itself is fine.
| Tool | Call it when | Returns |
|---|---|---|
submit_job | The user wants a video captioned | { jobId } |
job_status | Checking how that job is going | { jobId, status, progress?, error? } |
get_output | Status is complete | { jobId, ready, url, script?, postText? } |
cancel_job | The user wants a queued or running job stopped | { jobId, cancelled, status } |
restyle_job | A finished video should look different (font, colour, position, language…) | { jobId, mode } |
fix_script | Specific caption lines should be reworded or removed | { jobId, mode, updated, deleted, missed } |
The first three run in that order. Never re-call submit_job to check on a job — that starts a
second run. Pass an idempotencyKey so a retried call cannot: the same key returns the job it
already started.
{
"sourceUrl": "https://www.tiktok.com/@user/video/123",
"settings": { "targetLang": "ar", "font": "almarai" }
}
sourceUrl — a public post URL on TikTok, Instagram, YouTube, X, Facebook or Threads. A
direct .mp4/CDN file link is not accepted: the URL goes through the same resolver a Telegram link
does. If the user pastes a file link, ask for the post it came from.
callbackUrl — optional, https:// only. Omit it unless the user gives one: job_status
reports the same progress to a polling client. When set, every progress and completion event is
also POSTed there as JSON. A failed POST is logged and swallowed, so a callback endpoint that does
not exist does not break the run. Never invent a URL on someone else's domain.
Callback bodies all carry jobId:
| Event | Body | Meaning |
|---|---|---|
progress | { event, message } | Stage narration |
completed | { event, message, downloadUrl } | Done. That URL is the unsigned /api/jobs/{id}/output and needs x-api-key — use get_output for a link a person can open |
failed | { event, error } | The run failed |
stopped | { event, message } | Ended with no video (e.g. no speech found) |
Every callback is signed: x-signature: sha256=<hex> is HMAC-SHA256 with the Worker's API_KEY
over `${x-signature-timestamp}.${rawBody}`. Verify it against the raw body before trusting a
callback, and reject a timestamp more than a few minutes old.
idempotencyKey — optional, up to 200 characters. Use a fresh random value per user request.
Resending the same key returns the first job's jobId whatever its state, so a failed job is
retried with a new key.
settings — name only the fields that should differ from the deployed defaults; everything else
is filled in server-side. See references/settings.md for every field and value.
After submitting, wait and call job_status. A typical job is a few minutes — poll roughly every
30 seconds, not in a tight loop.
status is one of queued, running, paused, waiting, waitingForPause, complete,
errored, terminated, unknown. Only complete means a video exists. errored carries error
with the reason.
progress is the latest stage line — ⏳ Downloading from tiktok…, ⏳ Transcribing… (2/5),
⏳ Burning captions into the video…, ✅ Done. It is read from KV, so it can lag a few seconds
behind the run. A job that is complete with no video (no speech found, too long) says why here.
get_output returns { jobId, ready, url, script, postText }.
ready: false means this job has not finished its video yet. The url is returned anyway —
only hand it over once ready is true.script is the captions as SRT: each cue's original line (🗣) above its translation (💬). It
comes with every call, so show it when the user wants to read or check the captions. It is absent
once the job's assets have expired.postText is a ready-to-paste description for publishing the video, keyed by language code
(POST_TEXT_LANGUAGES on the Worker, ar,en by default). It is written once during the job,
from the original transcript, by the model settings.writer names — so repeated calls return the
same text. Absent when the video has too little speech or the writer failed; the video is
delivered either way.restyle_job and fix_script re-burn a video the client already has. Each starts a paid run with a
new jobId — poll job_status with it, then call get_output with it. The new burn replaces the
previous download; get_output on either id returns the latest one.
restyle_job({ jobId, settings }) — name only the fields to change. The depth is picked for
you: styling is one encode (restyle), a new targetLang or translator translates again
(retranslate), and only stt or sourceLang reads the speech again (retranscribe). Naming
nothing that differs is rejected.fix_script({ jobId, corrections }) — each correction is
{ start: "00:00:12,400", text: "…" } or { start, remove: true }, with start copied from
get_output's script (matched within 0.6 s). The text is saved into the stored script, then the
video is re-burned with its current look. Timestamps that match nothing come back in missed.
Removing every line is rejected.cancel_job({ jobId }) — stops a run still in progress. A first run's files are deleted with
it; a restyle or fix run keeps the previously delivered video.Both re-runs need a job that finished after this feature was deployed — it is what records the settings the video was made with. Otherwise they return "that job has no delivered video to change".
review: "on" or preview: "on" — rejected outright. Both pause the run on a Telegram card
that does not exist over MCP. Omit them, or set "off".confirm — accepted but inert. It gates the Telegram start card only; over MCP the job starts
immediately either way.settings.<field>: "x" is not one of the options this bot offers.429, "the API is at capacity right now — try again shortly". Wait and resubmit;
no job was created.Font coverage is a language decision, not a style one. aljazeera and thmanyah are Arabic-only
and are missing letters Urdu needs (ٹ ڈ ڑ ں ے); thmanyah also misses Persian's گ ک ی ژ ہ. For
targetLang: "ur" or "fa", pick noto, almarai or cairo. A missing glyph renders as a box or
a blank gap in the burned video — there is no error.
references/settings.md — every settings field, its values, and the deployed defaults.references/troubleshooting.md — error strings and status values mapped to causes and fixes.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
video-captioning, subtitles, translation, mcp-server, video-processing
Other plugins' skills for the same job
/video-caption-mcp:video-caption-mcpfrom video-caption-mcp
npx claudepluginhub engdawood/awesome-arabic-claude-skills --plugin video-caption-mcp2 plugins ship this exact skill · first indexed Sep 23, 2026