davinci-resolve-mcp 2.23.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AGENTS.md +85 -0
- package/CHANGELOG.md +802 -0
- package/CLAUDE.md +15 -0
- package/LICENSE +21 -0
- package/README.md +159 -0
- package/SECURITY.md +53 -0
- package/bin/davinci-resolve-mcp.mjs +376 -0
- package/docs/README.md +56 -0
- package/docs/SKILL.md +1145 -0
- package/docs/authoring/fuse-dctl-authoring.md +242 -0
- package/docs/authoring/script-plugin-authoring.md +195 -0
- package/docs/contributing.md +82 -0
- package/docs/guides/color-decision-guide.md +387 -0
- package/docs/guides/editorial-decision-guide.md +136 -0
- package/docs/guides/media-analysis-guide.md +615 -0
- package/docs/guides/multicam-setup-guide.md +138 -0
- package/docs/install.md +198 -0
- package/docs/integrations/workflow-integrations.md +120 -0
- package/docs/kernels/README.md +28 -0
- package/docs/kernels/audio-fairlight-kernel.md +86 -0
- package/docs/kernels/color-grade-kernel.md +103 -0
- package/docs/kernels/extension-authoring-kernel.md +101 -0
- package/docs/kernels/fusion-composition-kernel.md +91 -0
- package/docs/kernels/media-pool-ingest-kernel.md +147 -0
- package/docs/kernels/project-lifecycle-kernel.md +120 -0
- package/docs/kernels/render-deliver-kernel.md +92 -0
- package/docs/kernels/review-annotation-kernel.md +110 -0
- package/docs/kernels/timeline-conform-interchange-kernel.md +99 -0
- package/docs/kernels/timeline-edit-kernel.md +189 -0
- package/docs/notes/codec-plugin-notes.md +136 -0
- package/docs/notes/dctl-notes.md +234 -0
- package/docs/notes/fusion-template-notes.md +136 -0
- package/docs/notes/lut-notes.md +136 -0
- package/docs/notes/openfx-notes.md +120 -0
- package/docs/process/release-process.md +152 -0
- package/docs/reference/api-coverage.md +488 -0
- package/docs/reference/resolve_scripting_api.txt +1012 -0
- package/examples/README.md +53 -0
- package/examples/markers/README.md +81 -0
- package/examples/media/README.md +94 -0
- package/examples/timeline/README.md +98 -0
- package/install.py +1196 -0
- package/package.json +52 -0
- package/scripts/audit_api_parity.py +275 -0
- package/scripts/live_media_analysis_polish_probe.py +65 -0
- package/src/__init__.py +3 -0
- package/src/analysis_dashboard.py +4936 -0
- package/src/control_panel.py +13 -0
- package/src/granular/__init__.py +17 -0
- package/src/granular/common.py +727 -0
- package/src/granular/folder.py +287 -0
- package/src/granular/gallery.py +306 -0
- package/src/granular/graph.py +309 -0
- package/src/granular/media_pool.py +679 -0
- package/src/granular/media_pool_item.py +852 -0
- package/src/granular/media_storage.py +179 -0
- package/src/granular/project.py +1594 -0
- package/src/granular/resolve_control.py +521 -0
- package/src/granular/timeline.py +1074 -0
- package/src/granular/timeline_item.py +2251 -0
- package/src/resolve_mcp_server.py +43 -0
- package/src/server.py +15691 -0
- package/src/utils/__init__.py +3 -0
- package/src/utils/app_control.py +319 -0
- package/src/utils/audio_fairlight_live_probe.py +263 -0
- package/src/utils/cdl.py +20 -0
- package/src/utils/cloud_operations.py +192 -0
- package/src/utils/color_grade_live_probe.py +444 -0
- package/src/utils/dctl_templates.py +368 -0
- package/src/utils/extension_authoring_live_probe.py +292 -0
- package/src/utils/fuse_templates.py +1968 -0
- package/src/utils/fusion_composition_live_probe.py +284 -0
- package/src/utils/layout_presets.py +333 -0
- package/src/utils/mcp_stdio.py +32 -0
- package/src/utils/media_analysis.py +3618 -0
- package/src/utils/media_analysis_jobs.py +796 -0
- package/src/utils/media_pool_ingest_live_probe.py +592 -0
- package/src/utils/multicam.py +393 -0
- package/src/utils/object_inspection.py +287 -0
- package/src/utils/platform.py +157 -0
- package/src/utils/project_lifecycle_live_probe.py +376 -0
- package/src/utils/project_properties.py +601 -0
- package/src/utils/render_deliver_live_probe.py +384 -0
- package/src/utils/resolve_connection.py +77 -0
- package/src/utils/review_annotation_live_probe.py +352 -0
- package/src/utils/script_templates.py +1193 -0
- package/src/utils/sync_detection.py +887 -0
- package/src/utils/timeline_conform_live_probe.py +280 -0
- package/src/utils/timeline_kernel_live_probe.py +1091 -0
- package/src/utils/timeline_kernel_probe.py +185 -0
- package/src/utils/timeline_title_text.py +87 -0
- package/src/utils/update_check.py +610 -0
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
# DaVinci Resolve MCP Examples
|
|
2
|
+
|
|
3
|
+
These examples are prompt recipes for MCP clients such as Claude, Cursor,
|
|
4
|
+
Windsurf, Codex, and VS Code. The server exposes 31 compound MCP tools and 128
|
|
5
|
+
higher-level kernel actions, so examples should be written as safe
|
|
6
|
+
agent-facing workflows rather than legacy direct `DaVinciResolveScript` scripts.
|
|
7
|
+
|
|
8
|
+
## Before Running Examples
|
|
9
|
+
|
|
10
|
+
1. Open DaVinci Resolve Studio.
|
|
11
|
+
2. Enable external scripting in Resolve preferences.
|
|
12
|
+
3. Install or configure this MCP server with `python install.py`.
|
|
13
|
+
4. Use disposable projects, synthetic media, or explicitly approved demo media.
|
|
14
|
+
5. Never modify, transcode, proxy, relink, or create derivatives of source media
|
|
15
|
+
unless the user explicitly asks for that operation.
|
|
16
|
+
|
|
17
|
+
## Example Categories
|
|
18
|
+
|
|
19
|
+
| Directory | Focus |
|
|
20
|
+
|-----------|-------|
|
|
21
|
+
| `markers/` | Timeline, timeline item, and media pool item annotation workflows |
|
|
22
|
+
| `timeline/` | Timeline inspection, edit kernel operations, conform reports, and render planning |
|
|
23
|
+
| `media/` | Safe ingest, metadata normalization, media analysis, and source-integrity guardrails |
|
|
24
|
+
|
|
25
|
+
## Getting Started Prompt
|
|
26
|
+
|
|
27
|
+
Paste this into an MCP-enabled client:
|
|
28
|
+
|
|
29
|
+
```text
|
|
30
|
+
Check that DaVinci Resolve is connected. Report the Resolve version, current
|
|
31
|
+
page, current project, current timeline, and the MCP kernel surfaces available
|
|
32
|
+
for safe project, ingest, timeline, annotation, color, Fusion, audio, render,
|
|
33
|
+
and extension workflows. Do not mutate anything yet.
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
Good first follow-up:
|
|
37
|
+
|
|
38
|
+
```text
|
|
39
|
+
Create a disposable _mcp_demo_* project only if needed, then show me a dry-run
|
|
40
|
+
plan before importing media, editing a timeline, changing render settings, or
|
|
41
|
+
installing any extension files.
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
## Creating New Examples
|
|
45
|
+
|
|
46
|
+
New examples should be small prompt recipes with:
|
|
47
|
+
|
|
48
|
+
- The intended Resolve state.
|
|
49
|
+
- The exact prompt to paste into an MCP client.
|
|
50
|
+
- The expected MCP tools/actions.
|
|
51
|
+
- Safety notes, especially around source media, relinks, renders, archives, and
|
|
52
|
+
extension installs.
|
|
53
|
+
- Cleanup steps for disposable projects or temp files.
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
# Marker And Review Annotation Examples
|
|
2
|
+
|
|
3
|
+
These prompts use the review annotation kernel on `timeline_markers` plus the
|
|
4
|
+
raw marker tools for timeline items and media pool items.
|
|
5
|
+
|
|
6
|
+
## Probe Annotation Support
|
|
7
|
+
|
|
8
|
+
```text
|
|
9
|
+
Probe annotation support for the current timeline. Include timeline markers,
|
|
10
|
+
the current timeline item when available, media pool item annotations, marker
|
|
11
|
+
custom data support, flags, and clip color. Do not change anything.
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
Expected actions:
|
|
15
|
+
|
|
16
|
+
- `timeline_markers.annotation_capabilities`
|
|
17
|
+
- `timeline_markers.probe_annotations`
|
|
18
|
+
- `timeline_markers.annotation_boundary_report`
|
|
19
|
+
|
|
20
|
+
## Add A Current-Playhead Review Marker
|
|
21
|
+
|
|
22
|
+
```text
|
|
23
|
+
Add a blue timeline marker at the current playhead named "Review" with the note
|
|
24
|
+
"Check this moment". Use marker custom data starting with "mcp-demo:" so it can
|
|
25
|
+
be found or cleaned up later.
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
Expected actions:
|
|
29
|
+
|
|
30
|
+
- `timeline_markers.add`
|
|
31
|
+
- `timeline_markers.get_all`
|
|
32
|
+
|
|
33
|
+
## Normalize A Marker Payload Before Writing
|
|
34
|
+
|
|
35
|
+
```text
|
|
36
|
+
Normalize this marker payload before writing it: frame 120, color teal, name
|
|
37
|
+
"Client note", note "Confirm title safe", duration 24, custom_data
|
|
38
|
+
"mcp-demo:title-safe". Tell me if the color or frame input needs adjustment.
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
Expected actions:
|
|
42
|
+
|
|
43
|
+
- `timeline_markers.normalize_marker_payload`
|
|
44
|
+
|
|
45
|
+
## Copy Review Notes Between Scopes
|
|
46
|
+
|
|
47
|
+
```text
|
|
48
|
+
Copy the timeline marker with custom data "mcp-demo:title-safe" to the current
|
|
49
|
+
timeline item. Preserve the note, name, color, duration, and custom data when
|
|
50
|
+
the target scope supports them.
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
Expected actions:
|
|
54
|
+
|
|
55
|
+
- `timeline_markers.copy_annotations`
|
|
56
|
+
- `timeline_markers.probe_annotations`
|
|
57
|
+
|
|
58
|
+
## Export A Review Report
|
|
59
|
+
|
|
60
|
+
```text
|
|
61
|
+
Export a read-only review report for the current timeline, including marker
|
|
62
|
+
names, notes, colors, custom data, flags, clip color, and any scope limitations.
|
|
63
|
+
Do not delete or modify markers.
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
Expected actions:
|
|
67
|
+
|
|
68
|
+
- `timeline_markers.export_review_report`
|
|
69
|
+
- `timeline_markers.annotation_boundary_report`
|
|
70
|
+
|
|
71
|
+
## Safe Cleanup Prompt
|
|
72
|
+
|
|
73
|
+
```text
|
|
74
|
+
Find markers whose custom data starts with "mcp-demo:" and show me a dry-run
|
|
75
|
+
cleanup plan. Wait for approval before deleting anything.
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
Expected actions:
|
|
79
|
+
|
|
80
|
+
- `timeline_markers.get_by_custom_data`
|
|
81
|
+
- `timeline_markers.clear_annotations_by_scope`
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
# Media Pool And Ingest Examples
|
|
2
|
+
|
|
3
|
+
These prompts use the Media Pool / Ingest kernel. They are designed to preserve
|
|
4
|
+
source media integrity: read metadata, import references into Resolve, and write
|
|
5
|
+
analysis sidecars only when explicitly requested.
|
|
6
|
+
|
|
7
|
+
## First Rule
|
|
8
|
+
|
|
9
|
+
Never modify, transcode, proxy, relink, rename, move, or create derivatives of
|
|
10
|
+
source media unless the user explicitly requests that operation. See
|
|
11
|
+
`docs/guides/media-analysis-guide.md` for the full workflow.
|
|
12
|
+
|
|
13
|
+
## Probe The Media Pool
|
|
14
|
+
|
|
15
|
+
```text
|
|
16
|
+
Probe the current Media Pool. Report the root folder, current folder, selected
|
|
17
|
+
clips, folder structure to depth 2, and ingest capabilities. Do not import,
|
|
18
|
+
move, relink, or modify any clip metadata yet.
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
Expected actions:
|
|
22
|
+
|
|
23
|
+
- `media_pool.ingest_capabilities`
|
|
24
|
+
- `media_pool.probe_media_pool`
|
|
25
|
+
- `media_pool.media_pool_boundary_report`
|
|
26
|
+
|
|
27
|
+
## Safe Import With Dry Run
|
|
28
|
+
|
|
29
|
+
```text
|
|
30
|
+
Dry-run importing media from /tmp/resolve-mcp-demo/media into a bin named
|
|
31
|
+
"_mcp_demo_import". Validate paths first, report what would be imported, and
|
|
32
|
+
wait for approval before calling the real import action.
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
Expected actions:
|
|
36
|
+
|
|
37
|
+
- `media_pool.safe_import_media`
|
|
38
|
+
- `media_pool.safe_import_folder`
|
|
39
|
+
|
|
40
|
+
## Image Sequence Import
|
|
41
|
+
|
|
42
|
+
```text
|
|
43
|
+
Dry-run importing the image sequence
|
|
44
|
+
/tmp/resolve-mcp-demo/media/sequence/demo_seq_%03d.png from frames 1 through
|
|
45
|
+
12 into a bin named "_mcp_demo_sequences". Validate the pattern and frame range
|
|
46
|
+
before importing.
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
Expected actions:
|
|
50
|
+
|
|
51
|
+
- `media_pool.safe_import_sequence`
|
|
52
|
+
|
|
53
|
+
## Metadata Normalization
|
|
54
|
+
|
|
55
|
+
```text
|
|
56
|
+
For the selected imported demo clips, dry-run setting metadata fields for Scene,
|
|
57
|
+
Shot, and Comments plus third-party metadata under an "mcp_demo" namespace.
|
|
58
|
+
Show the before/after values and wait for approval before writing.
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
Expected actions:
|
|
62
|
+
|
|
63
|
+
- `media_pool.probe_ingest_item`
|
|
64
|
+
- `media_pool.normalize_metadata`
|
|
65
|
+
- `media_pool.probe_clip_properties`
|
|
66
|
+
|
|
67
|
+
## Relink Plan, Not Relink
|
|
68
|
+
|
|
69
|
+
```text
|
|
70
|
+
Detect missing media on the current timeline and build a relink plan. Do not
|
|
71
|
+
execute relinks. If a relink is possible, show the exact clip IDs and candidate
|
|
72
|
+
folders that would be used.
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
Expected actions:
|
|
76
|
+
|
|
77
|
+
- `timeline.detect_missing_media`
|
|
78
|
+
- `timeline.build_relink_plan`
|
|
79
|
+
- `media_pool.safe_relink` with `dry_run`
|
|
80
|
+
|
|
81
|
+
## Media Analysis Prompt
|
|
82
|
+
|
|
83
|
+
```text
|
|
84
|
+
Use read-only media analysis for the selected clips. Run FFprobe metadata only,
|
|
85
|
+
write JSON sidecars to /tmp/resolve-mcp-demo/analysis, and do not create
|
|
86
|
+
thumbnails, proxies, transcodes, renders, or any visual derivatives unless I
|
|
87
|
+
explicitly approve them.
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
Expected workflow:
|
|
91
|
+
|
|
92
|
+
- Resolve clip path lookup through MCP.
|
|
93
|
+
- Read-only FFprobe.
|
|
94
|
+
- Sidecar JSON output only.
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
# Timeline And Edit Kernel Examples
|
|
2
|
+
|
|
3
|
+
These prompts use the `timeline`, `timeline_item`, conform/interchange, audio,
|
|
4
|
+
and render kernel actions. Use them in a disposable project or on explicitly
|
|
5
|
+
approved demo timelines.
|
|
6
|
+
|
|
7
|
+
## Inspect The Current Timeline
|
|
8
|
+
|
|
9
|
+
```text
|
|
10
|
+
Inspect the current timeline. Report timeline name, start/end frames, start
|
|
11
|
+
timecode, track counts, track names, current mark in/out, current video item,
|
|
12
|
+
and a compact list of items on video track 1. Do not mutate anything.
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
Expected actions:
|
|
16
|
+
|
|
17
|
+
- `timeline.get_current`
|
|
18
|
+
- `timeline.get_track_count`
|
|
19
|
+
- `timeline.get_items`
|
|
20
|
+
- `timeline_markers.get_current_video_item`
|
|
21
|
+
|
|
22
|
+
## Probe Edit Kernel Capabilities
|
|
23
|
+
|
|
24
|
+
```text
|
|
25
|
+
Report what the timeline edit kernel supports, partially supports, and does not
|
|
26
|
+
support in this Resolve build. Include duplicate, range copy, linked audio,
|
|
27
|
+
state-copy, transition, razor/split, and speed-ramp boundaries.
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
Expected actions:
|
|
31
|
+
|
|
32
|
+
- `timeline.edit_kernel_capabilities`
|
|
33
|
+
- `timeline.probe_edit_kernel_item`
|
|
34
|
+
|
|
35
|
+
## Duplicate Selected Clip With Linked Audio
|
|
36
|
+
|
|
37
|
+
```text
|
|
38
|
+
Duplicate the selected timeline clip to the track above, include linked audio
|
|
39
|
+
when Resolve exposes it, and report the source and duplicate timeline item IDs.
|
|
40
|
+
If selection cannot be resolved through the scripting bridge, tell me which item
|
|
41
|
+
IDs I should pass explicitly.
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
Expected actions:
|
|
45
|
+
|
|
46
|
+
- `timeline.get_items`
|
|
47
|
+
- `timeline.duplicate_clips`
|
|
48
|
+
- `timeline.probe_edit_kernel_item`
|
|
49
|
+
|
|
50
|
+
## Copy A Timeline Range
|
|
51
|
+
|
|
52
|
+
```text
|
|
53
|
+
Copy the marked timeline range to a destination starting 10 seconds after the
|
|
54
|
+
current playhead. Preserve linked audio and copy transform, crop, composite,
|
|
55
|
+
markers, flags, and clip color where supported. Dry-run first if required
|
|
56
|
+
inputs are missing.
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
Expected actions:
|
|
60
|
+
|
|
61
|
+
- `timeline.get_mark_in_out`
|
|
62
|
+
- `timeline.copy_range`
|
|
63
|
+
- `timeline.probe_edit_kernel_item`
|
|
64
|
+
|
|
65
|
+
## Conform And Interchange Report
|
|
66
|
+
|
|
67
|
+
```text
|
|
68
|
+
Inspect this timeline like an online editor. Detect gaps and overlaps, report
|
|
69
|
+
source frame ranges with 24-frame handles, detect missing media, and dry-run an
|
|
70
|
+
FCPXML export to a temp path. Summarize what is safe to trust and what is
|
|
71
|
+
version/page dependent.
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
Expected actions:
|
|
75
|
+
|
|
76
|
+
- `timeline.probe_timeline_structure`
|
|
77
|
+
- `timeline.detect_gaps_overlaps`
|
|
78
|
+
- `timeline.source_range_report`
|
|
79
|
+
- `timeline.detect_missing_media`
|
|
80
|
+
- `timeline.export_timeline_checked`
|
|
81
|
+
- `timeline.conform_boundary_report`
|
|
82
|
+
|
|
83
|
+
## Render Planning Without Rendering
|
|
84
|
+
|
|
85
|
+
```text
|
|
86
|
+
Build a render plan for ProRes 422 HQ or the closest available codec. Probe the
|
|
87
|
+
format/codec matrix, validate render settings, require a temp target, and queue
|
|
88
|
+
a job only if the settings validate. Do not start rendering without explicit
|
|
89
|
+
approval.
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
Expected actions:
|
|
93
|
+
|
|
94
|
+
- `render.render_capabilities`
|
|
95
|
+
- `render.probe_render_matrix`
|
|
96
|
+
- `render.validate_render_settings`
|
|
97
|
+
- `render.prepare_render_job`
|
|
98
|
+
- `render.export_render_boundary_report`
|