MCP Agent Pipeline
End-to-end flow
Procedure
- Confirm the account, workspace, product, brand, and approved claim boundaries.
- Load or create the product context.
- Read shared memory, then reconcile it against the current client source of truth.
- Select the best-fit skill or supply the approved production brief.
- Capture the returned cost or credit requirement before the generation mutation.
- Submit once and retain the task identifier.
- Poll the existing task. Do not resubmit when processing is slow.
- Download the final media to a descriptive local filename.
- Run
ffprobeand a full decode. - Inspect opening, middle, closing, caption-heavy, logo, source, and CTA frames.
Browser handoff
Move to the browser when the output needs visual avatar selection, caption styling, scene replacement, timeline adjustment, or exact safe-area review. See the browser video production SOP.
Failure modes
- Tools absent: connection is not operational.
- Authentication prompt: complete interactive authentication in the selected runtime.
- Job remains active: continue polling the same task.
- Download URL missing: do not claim delivery.
- Credit cost unavailable: stop before generation and report the cost as unverified.
- Brand context mismatch: stop and switch to the correct workspace before writing or rendering.