Skip to main content
Glama
video-harness

video-harness

video-harness

DaVinci Resolve harness and MCP server for timeline placement, folder import, clip color, and typed metadata markers.

It does not wrap the whole Resolve API. Agents get a small job surface: inspect, import, place, color, mark.

Current release: 0.1.10 — CHANGELOG. License: MIT. Attributions: docs/attributions.md. Agents (any model) read AGENTS.md.

Docs

Site: sakethramanujam.github.io/video-harness

Page

Contents

Setup

Install, which Resolve you have, start the Lua bridge

Architecture

Transports (Studio / HTTP / Lua file-queue), API limits

MCP and agents

MCP tools, client config, agent prompts

Grok

Wire this MCP into Grok and prompt import / place / color

Workflows

Import folders, place clips, proxies, marker types

Troubleshooting

Doctor output, Scripts menu, sandbox, limitation dialog

License and attributions

MIT license, Blackmagic, MCP, dHash, persona sources

Related MCP server: davinci-resolve-mcp

Quick start (free Resolve)

python3 -m venv .venv
source .venv/bin/activate
pip install -e ".[dev]"
video-harness install-bridge
video-harness doctor
  1. Open Resolve and a project.

  2. Workspace → Scripts → Utility → video_harness_bridge (click once). No window — that is expected. Do not use Scripts → Edit (that menu is for Edit-page scripts).

  3. video-harness doctor → "bridge": { "ok": true, "bridge": "0.1.1" } and a methods list that includes set_clip_color.

  4. After every install-bridge, click Utility once more so RAM matches disk. Two fuscript PIDs race — stop extras; never start fuscript from a shell on App Store Lite.

  5. video-harness inspect (use MCP media=none when you only need the timeline).

App Store (“Lite”) vs website install: see Setup. Lite is sandboxed; the website free build is the better $0 option.

How it talks to Resolve

Agent / CLI  →  Harness  →  Studio scriptapp
                          →  or Lua script inside Resolve (file queue)

Free editions cannot be driven from an external scriptapp. The Lua script runs from Workspace → Scripts and polls JSON under the Resolve config dir (container path on App Store Lite).

MCP

{
  "mcpServers": {
    "video-harness": {
      "command": "/ABS/PATH/TO/video-harness/.venv/bin/video-harness",
      "args": ["mcp"]
    }
  }
}

Example: Import /Users/you/Movies/DaVinci Resolve/Proxy, index visual context, and assemble draft cut Proxy_Cut in style montage. Color-code with clip_set_color (Cyan→Teal, Mint→Lime, Red→Violet; see workflows).

Vision & Edit-Aware Tools

  • clip_describe_start: Background VideoToolbox + dHash visual context indexing with hard Metal/RAM bounds.

  • clip_describe_status: Poll progress, segments count, and physical memory footprint.

  • clip_search_visual: Instant keyword search over compact JSONL sidecar without touching Lua bridge.

  • timeline_draft_cut: Generate a first-pass edit cut in a specified style (montage, talking_head_highlights, fast_paced_social) and return structured feedback prompts for iteration.

Full tool list and prompts: MCP and agents.

What Resolve will not do through this API

  • Razor, trim, nudge, or move an existing timeline item (place is append-at-frame; lift is delete).

  • Script GUIs (UIManager) on free, since 19.1.

  • Out-of-process scripting on free.

  • LinkProxyMedia is not exposed yet — importing a proxy folder edits those files as sources.

Layout

AGENTS.md                            persona + document-and-commit habit
src/video_harness/
  types.yaml                         marker type → color / scope
  clip_colors.py                     timeline clip colors + aliases
  harness.py                         inspect / import / place / color / mark
  session.py                         direct | HTTP | Lua
  scripts/video_harness_bridge.lua   in-app listener (Utility only)
  scripts/vh_runtime.py              Python Resolve ops (Studio)
  mcp_server.py

License

MIT © 2026 Saketha Ramanjam. DaVinci Resolve is a product of Blackmagic Design Pty Ltd; this project is not affiliated with or endorsed by Blackmagic Design. Full citations: License and attributions.

Available Tools

15 tools
clip_metadata_getC

Read built-in and third-party metadata for a media pool clip.

Inputs: path, media_id, clip_name. Returns: result

clip_set_colorA

Set Resolve clip color on timeline items (Orange, Green, Blue, …). Empty color clears.

Match by unique_ids, media_id, or clip_name. If none given, colors every video/audio item.

Inputs: color (required), media_id, clip_name, unique_ids. Returns: result

doctorA

Diagnose Resolve connection (direct Studio scripting vs free-edition in-app bridge).

Inputs: no named parameters. Returns: result

inspectA

Snapshot of app, project, current timeline (tracks, items, markers), and media pool.

media: 'current' (current bin) or 'all' (entire pool).

Inputs: media. Returns: result

markers_clearB

Delete markers by payload id, frame, or color. scope: timeline (default), item, clip.

Inputs: id, color, frame, scope, +2 more. Returns: result

markers_from_metadataB

Map metadata events onto typed markers.

Event: {type, at (timecode or frame), id?, duration_frames?, note?, scope?, media_id? or clip: {media_id, name, path}, attrs?, source?}. from_clips=true also stamps clip metadata fields (Keywords, Shot, …) as clip-scope markers.

Inputs: events, field_map, from_clips. Returns: result

markers_queryA

Query timeline, item, and clip markers. Filter by type, color, scope, frame range.

Inputs: end, type, color, scope, +1 more. Returns: result

marker_upsertA

Create or replace typed markers. Idempotent on payload.id.

Each marker: type/name, frame, optional scope (timeline|item|clip), color, note, duration, unique_id (item), media_id (clip), payload {id, type, source, attrs}. If payload is omitted, pass type and id and the server will still store customData JSON if you include payload. Prefer markers_from_metadata for mapping.

Inputs: markers (required). Returns: result

media_importA

Import files into the current media pool folder. Returns media_id for each clip.

Inputs: paths (required). Returns: result

reconnectA

Drop the cached Resolve session and connect again.

Inputs: no named parameters. Returns: result

timeline_assembleC

Ensure a timeline, optionally import media, and place clips. Rough cut in one call.

Inputs: timeline (required), items, paths. Returns: result

timeline_ensureB

Create the named timeline if needed and switch to it. Idempotent.

Inputs: name (required). Returns: result

timeline_liftA

Delete timeline items by unique_id or by range. Effects on those items are lost.

Inputs: end, start, ripple, track_type, +2 more. Returns: result

timeline_placeC

Place clips on the current timeline.

Each item: media_id or clip_name or path; optional track_type, track_index, record_frame, source_in, source_out, media_type (1=video, 2=audio).

Inputs: items (required). Returns: result

type_registry_getB

Marker type registry: id → color, scope (timeline|item|clip), duration (point|range).

Inputs: no named parameters. Returns: result

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.5/5.0

    Scored across 15 tools

    Disambiguation4/5

    Most tools target clearly distinct resources and actions, with clear prefixes for media, timeline, markers, and clips. The main overlap is between marker_upsert and markers_from_metadata, plus timeline_assemble combining functions that individual tools already provide, but descriptions make the intended use reasonably clear.

    Naming Consistency4/5

    The dominant pattern is resource-first names like timeline_place and markers_query, which is predictable and readable. Minor inconsistencies exist: standalone verbs like reconnect, doctor, and inspect, plus singular/plural mixing between marker_upsert and markers_query/clear.

    Tool Count5/5

    At 15 tools, the set stays within the well-scoped range and each tool serves a distinct purpose in the video editing workflow. The count feels appropriate for covering connection diagnostics, project inspection, media import, timeline assembly, clip styling, markers, and metadata without bloat.

    Completeness4/5

    The core lifecycle for building a rough cut is well covered: import media, ensure timelines, place/lift clips, set colors, and manage markers. However, there is no media deletion/rename, metadata write support, or render/export capability, so full end-to-end project management is not possible.

    Maintenance

    ActivityStale
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers