Docs

Kavio MCP server and AI plugins.

Kavio gives agents three integration paths: an MCP server for hosts that speak MCP, generated provider tool schemas for direct tool calling, and a portable skill/plugin bundle for agents that prefer local instructions over an MCP server.

Status

The @kitsra/kavio-mcp package is implemented. It calls @kitsra/kavio-render for real render work and keeps Playwright, FFmpeg binaries, and process-spawning code out of MCP handlers. The same package also ships plugins/kavio-ai, a vendor-neutral skill bundle with Codex, Claude, Gemini CLI, and Antigravity manifests.

Choose A Path

Target Use when Install shape
MCP The host can run a server and call tools. Configure kavio-mcp as an MCP server.
Skill The agent wants local instructions without MCP. Emit skills/kavio-ai/SKILL.md from npm.
Plugin The vendor supports plugin or extension manifests. Install plugins/kavio-ai as the plugin root.

Architecture Boundary

@kitsra/kavio-mcp
Agent-facing MCP server, provider adapters, portable skill, and plugin manifests for Kavio workflows.
@kitsra/kavio-render
Execution layer for browser capture, FFmpeg orchestration, MP4 output, metadata, cleanup, and cancellation.
@kitsra/kavio-schema
Composition validation and versioned data contract.
@kitsra/kavio-core
Pure timeline evaluation, prop resolution, export presets, dimensions, and resource limits.
@kitsra/kavio-browser-renderer
Shared render harness and browser runtime used for preview and export parity.

Skill And Plugin Bundle

The plugin bundle lives at plugins/kavio-ai. Codex, Claude, Gemini CLI, and Antigravity each read their own manifest from that folder, while all of them share one skills/kavio-ai workflow for authoring, validating, inspecting, previewing, and rendering Kavio compositions.

Install Paths

Use the smallest install path that fits the host.

Generic Skill

pnpm dlx @kitsra/kavio-mcp emit-skill --out ./skills

Writes ./skills/kavio-ai/SKILL.md.

Codex

codex plugin marketplace add .

The marketplace points Codex at ./plugins/kavio-ai.

Claude Code

claude --plugin-dir ./plugins/kavio-ai

Or install kavio-ai@kavio-local from the local marketplace.

Gemini CLI

gemini extensions install ./plugins/kavio-ai

For remote install, publish the bundle with gemini-extension.json at the root.

Antigravity

agy plugin install ./plugins/kavio-ai

For remote install, publish the bundle with plugin.json at the root.

The published @kitsra/kavio-mcp package mirrors this bundle under plugins/kavio-ai.

Tools

The MCP catalog exposes these workflows so agents can build and repair Kavio compositions reliably.

Error Contract

MCP responses should preserve Kavio's structured error shape so agents can repair documents without scraping prose.

{
  "code": "SCHEMA_VALIDATION_FAILED",
  "severity": "error",
  "message": "Layer duration exceeds composition duration.",
  "path": "/layers/2/durationFrames",
  "stage": "validate",
  "hint": "Reduce durationFrames or extend the composition.",
  "retryable": false
}

Safety And Supply Chain

Agent Workflow

  1. Generate or update a Kavio composition.
  2. Validate the composition and collect all repairable errors.
  3. Inspect the document to confirm dimensions, duration, assets, layers, audio, and exports.
  4. Preview locally for layout and timing checks.
  5. Render through @kitsra/kavio-render.
  6. Return output metadata, checksums, and any structured errors to the agent.

Related Pages