davinci-resolve-mcp 2.171.0 → 2.173.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/CHANGELOG.md +37 -0
- package/README.md +1 -1
- package/README.zh-CN.md +2 -2
- package/docs/reference/api-limitations.md +1 -1
- package/install.py +1 -1
- package/package.json +1 -1
- package/resolve-advanced/server/author-interchange.mjs +12 -1
- package/resolve-advanced/server/editorial.mjs +22 -1
- package/resolve-advanced/server/tools/editorial.mjs +4 -2
- package/src/granular/common.py +1 -1
- package/src/server.py +1 -1
- package/src/utils/api_truth.py +11 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,43 @@
|
|
|
2
2
|
|
|
3
3
|
Release history for the DaVinci Resolve MCP Server. The latest release is summarized in the root README; older entries live here to keep the README focused.
|
|
4
4
|
|
|
5
|
+
## What's New in v2.173.0 — E118: Resolve's own OTIO exports re-conform
|
|
6
|
+
|
|
7
|
+
### Fixed
|
|
8
|
+
|
|
9
|
+
- **A Resolve OTIO export with generators could not conform.** Resolve's
|
|
10
|
+
OTIO writer emits a Solid Color as a `Clip` with a NULL `media_reference`
|
|
11
|
+
named after the generator (E117), which the parser read as a source reel —
|
|
12
|
+
`assemble_from_interchange` refused the turnover ("unmapped source reel:
|
|
13
|
+
Solid Color"). Generator clips — a null or `MissingReference` with a
|
|
14
|
+
generator name, or a proper OTIO `GeneratorReference` — now walk as BL legs
|
|
15
|
+
carrying `generatorName` (and the colour when a `GeneratorReference`
|
|
16
|
+
declares one), so the bridge authors generators. Render-verified on
|
|
17
|
+
19.1.3.7: the E110 fade-to-white conform, re-exported as OTIO and
|
|
18
|
+
re-conformed, plays its clip → generator fade 124 → 96 → 68 → 41 → 18 → 16
|
|
19
|
+
and holds 16 — black, because the OTIO writer carries no colour (E117),
|
|
20
|
+
which `verify_roundtrip` reports as `generatorColourNotInExport`.
|
|
21
|
+
|
|
22
|
+
## What's New in v2.172.0 — E117: colour QC knows which writers are colour-blind
|
|
23
|
+
|
|
24
|
+
### Fixed
|
|
25
|
+
|
|
26
|
+
- **`verify_roundtrip` no longer fails a colour compare against a re-export
|
|
27
|
+
that cannot carry colour.** Measured on 19.1.3.7: Resolve's OTIO writer
|
|
28
|
+
emits a Solid Color as a `Clip` with a null `media_reference` and empty
|
|
29
|
+
`Resolve_OTIO` metadata — no colour anywhere (its FCP7 XML writer echoes
|
|
30
|
+
the colour as `input_1`). Pass `exportedFormat` (otio|edl|xml|drt): a
|
|
31
|
+
colour-blind export reports `generatorColourNotInExport` (like
|
|
32
|
+
`markersNotInExport`) instead of `generator-colour` failures; an XML
|
|
33
|
+
export keeps the strict compare. Without the format the compare stays
|
|
34
|
+
strict. Resolve's OTIO export is a permanent fixture.
|
|
35
|
+
|
|
36
|
+
### Measured (filed in api-limitations)
|
|
37
|
+
|
|
38
|
+
- `EXPORT_OTIO` writes generators as media-less clips named after the
|
|
39
|
+
generator with no parameters; `Cross Dissolve` transitions carry a
|
|
40
|
+
`transitionCustomCurvesKeyframes` 0→1 curve in `Resolve_OTIO` metadata.
|
|
41
|
+
|
|
5
42
|
## What's New in v2.171.0 — E114: audio-lane `-1` edges take their own lane's junctions
|
|
6
43
|
|
|
7
44
|
### Fixed
|
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
English | [简体中文](README.zh-CN.md)
|
|
4
4
|
|
|
5
|
-
[](https://github.com/samuelgursky/davinci-resolve-mcp/releases)
|
|
6
6
|
[](https://www.npmjs.com/package/davinci-resolve-mcp)
|
|
7
7
|
[](docs/reference/api-coverage.md)
|
|
8
8
|
[-blue.svg)](#server-modes)
|
package/README.zh-CN.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
[English](README.md) | 简体中文
|
|
4
4
|
|
|
5
|
-
[](https://github.com/samuelgursky/davinci-resolve-mcp/releases)
|
|
6
6
|
[](https://www.npmjs.com/package/davinci-resolve-mcp)
|
|
7
7
|
[](docs/reference/api-coverage.md)
|
|
8
8
|
[-blue.svg)](#服务器模式)
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
[](https://www.python.org/downloads/)
|
|
13
13
|
[](https://opensource.org/licenses/MIT)
|
|
14
14
|
|
|
15
|
-
> 本翻译对应 v2.
|
|
15
|
+
> 本翻译对应 v2.173.0 版 README。如与英文原版有出入,以 [英文原版](README.md) 为准。
|
|
16
16
|
|
|
17
17
|
一个 Model Context Protocol (MCP) 服务器,让 AI 助手通过官方脚本 API 控制 DaVinci Resolve Studio(达芬奇)。它提供完整的 API 覆盖,外加带护栏的工作流助手,涵盖剪辑、媒体池整理、渲染设置、审阅标记、调色、Fusion、Fairlight、项目生命周期任务、扩展开发,以及不碰源媒体的媒体分析。
|
|
18
18
|
|
|
@@ -313,7 +313,7 @@ equivalent, blocking full automation.
|
|
|
313
313
|
|
|
314
314
|
- **Object:** `MediaPool`
|
|
315
315
|
- **Signature:** `(filePath.xml) -> Timeline`
|
|
316
|
-
- **Behavior:** Resolve's FCP7 XML importer HONOURS a generatoritem's `fillcolor` parameter (measured on Studio 19.1.3.7, E110): a Premiere-shaped Color Matte (effectid Color, category Matte) and a Solid Color generatoritem, both with <red>/<green>/<blue>/<alpha> 0..255 values, imported as Solid Color items and rendered Y81 U90 V240 (red) and Y41 U240 V110 (blue) — exact BT.601 limited-range values for a 640x360 timeline. EXPORT_FCP_7_XML writes the fillcolor back (same 0..255 channels). EXPORT_DRT carries the colour as a 55-byte <EffectFiltersBA> on the Sm2TiGenerator: 8-byte header (version 2, length 47), a fixed 20-byte prefix, a flag byte, then big-endian uint16 A R G B (0xffff = full) plus a pad word, then a second, black colour record; only the ARGB words differed between the red and blue captures. The default generator has an EMPTY EffectFiltersBA. The same importer does NOT carry a TRANSITION's parameters: a `Dip to Color Dissolve` transitionitem with a white and with a red `color` parameter imported as `Dip To Color Dissolve` elements whose 37-byte EffectFiltersBA were byte-identical (defaults), and the transition rendered inert (luma flat through its window, the E66 law) — the dip colour stays GUI-only on 19.1.3.7 (measured, E111). The writer emits a Solid Color's colour as the FxPlug parameter `input_1` (effectid FxPlugWrapper:C18E8B62_…), not `fillcolor` — an authored EffectFiltersBA colour came back exactly (white, 128/64/191; E112).
|
|
316
|
+
- **Behavior:** Resolve's FCP7 XML importer HONOURS a generatoritem's `fillcolor` parameter (measured on Studio 19.1.3.7, E110): a Premiere-shaped Color Matte (effectid Color, category Matte) and a Solid Color generatoritem, both with <red>/<green>/<blue>/<alpha> 0..255 values, imported as Solid Color items and rendered Y81 U90 V240 (red) and Y41 U240 V110 (blue) — exact BT.601 limited-range values for a 640x360 timeline. EXPORT_FCP_7_XML writes the fillcolor back (same 0..255 channels). EXPORT_DRT carries the colour as a 55-byte <EffectFiltersBA> on the Sm2TiGenerator: 8-byte header (version 2, length 47), a fixed 20-byte prefix, a flag byte, then big-endian uint16 A R G B (0xffff = full) plus a pad word, then a second, black colour record; only the ARGB words differed between the red and blue captures. The default generator has an EMPTY EffectFiltersBA. The same importer does NOT carry a TRANSITION's parameters: a `Dip to Color Dissolve` transitionitem with a white and with a red `color` parameter imported as `Dip To Color Dissolve` elements whose 37-byte EffectFiltersBA were byte-identical (defaults), and the transition rendered inert (luma flat through its window, the E66 law) — the dip colour stays GUI-only on 19.1.3.7 (measured, E111). The writer emits a Solid Color's colour as the FxPlug parameter `input_1` (effectid FxPlugWrapper:C18E8B62_…), not `fillcolor` — an authored EffectFiltersBA colour came back exactly (white, 128/64/191; E112). The OTIO writer CANNOT: EXPORT_OTIO emits a Solid Color as a Clip.2 named 'Solid Color' with a NULL media_reference, metadata {"Resolve_OTIO": {}} and a parameterless Transform effect — no colour anywhere (measured E117) — so only an XML re-export witnesses a generator colour (editorial.verify_roundtrip exportedFormat → generatorColourNotInExport). Such an OTIO export DOES re-conform through drt.assemble_from_interchange (E118): the media-less generator clips walk as black legs and the clip→generator fade renders 124→16 — black, the colour having been lost by the writer.
|
|
317
317
|
- **Workaround / current handling:** Author fade-to-white / colour mattes by placing a Solid Color generator with that blob (drp-format placeGenerator `color`, drt.assemble elements[].color) — or carry an XMEML generatoritem fillcolor through editorial.parse_interchange; the bridge authors the coloured leg.
|
|
318
318
|
- **Tags:** xml, import, generator, colour, export, drt
|
|
319
319
|
|
package/install.py
CHANGED
|
@@ -37,7 +37,7 @@ from src.utils.update_check import (
|
|
|
37
37
|
|
|
38
38
|
# ─── Version ──────────────────────────────────────────────────────────────────
|
|
39
39
|
|
|
40
|
-
VERSION = "2.
|
|
40
|
+
VERSION = "2.173.0"
|
|
41
41
|
# Only hard floor: mcp[cli] requires Python 3.10+. There is no upper bound —
|
|
42
42
|
# Resolve's scripting bridge loads into newer interpreters on recent builds
|
|
43
43
|
# (Python 3.14 verified against Resolve Studio 20.3.2). Older Resolve builds
|
package/package.json
CHANGED
|
@@ -986,10 +986,20 @@ export function verifyRoundtrip(inputEvents, exportedEvents, opts = {}) {
|
|
|
986
986
|
const colourKey = (c) => (c ? [c.r, c.g, c.b].map((v) => Math.round(v * 255)).join(',') : '0,0,0');
|
|
987
987
|
const colourTol = 1 / 255 + 1e-9;
|
|
988
988
|
const sameColour = (x, y) => ['r', 'g', 'b'].every((k) => Math.abs((x ? x[k] : 0) - (y ? y[k] : 0)) <= colourTol);
|
|
989
|
+
// Which writers can WITNESS a generator colour (measured, E112/E117):
|
|
990
|
+
// Resolve's FCP7 XML export echoes it (`input_1`); its OTIO export writes
|
|
991
|
+
// a Solid Color as a Clip with a NULL media_reference and empty metadata —
|
|
992
|
+
// no colour anywhere — and an EDL/DRT re-export carries none either. A
|
|
993
|
+
// colour compare against such an export can only ever "fail", so it is
|
|
994
|
+
// reported as generatorColourNotInExport instead (like markersNotInExport).
|
|
995
|
+
const exportedFormat = String(opts.exportedFormat || '').toLowerCase();
|
|
996
|
+
const colourCapable = exportedFormat === '' || /^(xml|xmeml|fcp7|fcpxml)$/.test(exportedFormat);
|
|
997
|
+
let generatorColourNotInExport = false;
|
|
989
998
|
{
|
|
990
999
|
const inLegs = a0.filter((e) => isBlackSeg(e) && e.color);
|
|
1000
|
+
if (inLegs.length && !colourCapable) generatorColourNotInExport = true;
|
|
991
1001
|
const exLegs = b0.filter((e) => isBlackSeg(e));
|
|
992
|
-
for (const leg of inLegs) {
|
|
1002
|
+
for (const leg of generatorColourNotInExport ? [] : inLegs) {
|
|
993
1003
|
const partner = exLegs.find((x) => x.track === leg.track && x.recIn < leg.recOut && x.recOut > leg.recIn);
|
|
994
1004
|
generatorColours.compared += 1;
|
|
995
1005
|
if (!partner) {
|
|
@@ -1070,6 +1080,7 @@ export function verifyRoundtrip(inputEvents, exportedEvents, opts = {}) {
|
|
|
1070
1080
|
return {
|
|
1071
1081
|
pass: mismatches.length === 0, pairs: n, srcOffsets, mismatches, markers,
|
|
1072
1082
|
...(generatorColours.compared ? { generatorColours } : {}),
|
|
1083
|
+
...(generatorColourNotInExport ? { generatorColourNotInExport } : {}),
|
|
1073
1084
|
...(markersNotInExport ? { markersNotInExport } : {}),
|
|
1074
1085
|
...(blackSegments.input || blackSegments.exported ? { blackSegments } : {}),
|
|
1075
1086
|
...(fadeReshapedBoundaries.length ? { fadeReshapedBoundaries } : {}),
|
|
@@ -51,6 +51,7 @@ function evt(o) {
|
|
|
51
51
|
track: o.track || 'V',
|
|
52
52
|
...(o.name !== undefined ? { name: o.name } : {}),
|
|
53
53
|
...(o.color !== undefined ? { color: o.color } : {}),
|
|
54
|
+
...(o.generatorName !== undefined ? { generatorName: o.generatorName } : {}),
|
|
54
55
|
source: o.source || 'UNKNOWN',
|
|
55
56
|
srcIn: o.srcIn ?? null,
|
|
56
57
|
srcOut: o.srcOut ?? null,
|
|
@@ -247,7 +248,25 @@ export function parseOTIO(otio, opts = {}) {
|
|
|
247
248
|
reverse = false;
|
|
248
249
|
}
|
|
249
250
|
}
|
|
250
|
-
const
|
|
251
|
+
const mref = child.media_reference || null;
|
|
252
|
+
const mrefSchema = String((mref && mref.OTIO_SCHEMA) || '');
|
|
253
|
+
const clipName = String(child.name || '');
|
|
254
|
+
// GENERATOR clips (E118): Resolve's OTIO writer emits a Solid Color as
|
|
255
|
+
// a Clip with a NULL media_reference named after the generator
|
|
256
|
+
// (measured E117); OTIO proper uses a GeneratorReference. Neither
|
|
257
|
+
// is a source reel — they walk as BL legs (a colour, when a
|
|
258
|
+
// GeneratorReference carries one, rides along) so the bridge authors
|
|
259
|
+
// a generator instead of refusing the turnover as an unmapped reel.
|
|
260
|
+
const isGeneratorRef = /^GeneratorReference/.test(mrefSchema);
|
|
261
|
+
const isGeneratorClip = isGeneratorRef || ((!mref || /^MissingReference/.test(mrefSchema)) && /solid color|colou?r matte|^black$/i.test(clipName));
|
|
262
|
+
let genColor;
|
|
263
|
+
if (isGeneratorRef && mref.parameters && typeof mref.parameters === 'object') {
|
|
264
|
+
const pc = mref.parameters.color || mref.parameters.Color || mref.parameters.fillcolor || null;
|
|
265
|
+
if (pc && typeof pc === 'object' && pc.r != null) genColor = { r: Number(pc.r) || 0, g: Number(pc.g) || 0, b: Number(pc.b) || 0, a: pc.a != null ? Number(pc.a) : 1 };
|
|
266
|
+
else if (Array.isArray(pc) && pc.length >= 3) genColor = { r: Number(pc[0]) || 0, g: Number(pc[1]) || 0, b: Number(pc[2]) || 0, a: pc.length > 3 ? Number(pc[3]) : 1 };
|
|
267
|
+
if (genColor && genColor.r === 0 && genColor.g === 0 && genColor.b === 0) genColor = undefined;
|
|
268
|
+
}
|
|
269
|
+
const src = isGeneratorClip ? 'BL' : ((mref && (mref.target_url || mref.name)) || clipName || 'UNKNOWN');
|
|
251
270
|
// CLIP markers belong to the ITEM, not the sequence — carried as
|
|
252
271
|
// itemMarkers (frames CLIP-relative) so the bridge authors them as
|
|
253
272
|
// Sm2TiItemLockableBlobs (E80). Track-level markers above remain
|
|
@@ -270,6 +289,8 @@ export function parseOTIO(otio, opts = {}) {
|
|
|
270
289
|
reverse,
|
|
271
290
|
transition: pendingTransition,
|
|
272
291
|
itemMarkers: itemMarkers.length ? itemMarkers : undefined,
|
|
292
|
+
color: genColor,
|
|
293
|
+
generatorName: isGeneratorClip ? (clipName || (mref && mref.name) || 'Solid Color') : undefined,
|
|
273
294
|
fps: rate,
|
|
274
295
|
}),
|
|
275
296
|
);
|
|
@@ -86,7 +86,7 @@ const markerSchema = z.object({
|
|
|
86
86
|
export const editorialTool = {
|
|
87
87
|
name: 'editorial',
|
|
88
88
|
description:
|
|
89
|
-
'Editorial integrity (Cluster E) — turnover interchange → normalized events → changelist + conform manifest with TIMING silent-lie guards (flattened retime / dropped J/L-cut audio / framerate-pulldown slip / reverse dropped / transition-handle starvation → flag, skip-not-fake). Report-only (gate: review). Actions: parse_interchange (EDL/OTIO/XMEML natively — incl. Resolve-written FCP7 -1 junction edges (paired in record order) + Solid Color / Color Matte generators carrying their `fillcolor` (BL legs with `color` → fade-to-white and colour mattes author, E110), XMEML audio-track transitionitems as audio cross-fades on numbered lanes A/A2/…, and CMX FROM/TO CLIP NAME comments over the generic AX reel — + AAF via pyaaf2 (flat sound/picture slots number A/A2/… and V/V2/… in slot order so separate beds keep their lanes; NestedScope layers keep layer numbering) + PRPROJ via gunzip+XML → normalized events incl. span-explicit transitions, BL fade legs, and freezes as zero-speed events (OTIO FreezeFrame, XMEML timeremap 0, PrProj in==out, AAF 0% motion effects); for AAF/PRPROJ pass the file PATH as content; AAF also returns per-sequence startTimecode/startFrame — build the timeline at THAT start, not the Resolve 01:00:00:00 default — and per-clip `geometry` for Avid transform effects), list_sequences (ONE offline picker entry point across xml/edl/otio/drt/drp/aaf/prproj → [{id,name,eventCount}], plus startTimecode/startFrame for AAF), convert_to_interchange (author OTIO/EDL/DRT Resolve CAN import from events or a parsed source; the EDL target writes CMX transition pairs incl. BL fades — the .prproj→Resolve conform bridge, no Premiere needed; editorial timing/transitions survive and per-clip effects/color do not. SPEED/REVERSE survive on the otio (LinearTimeWarp) and edl (M2) targets ONLY — this FLAT drt target flattens every retime to 100% forward and returns `flattened`/`flattenedCount` naming each event that lost one (`flattened` is always present on `drt`, empty when there were none); for a .drt that AUTHORS retimes/dissolves/multi-track/audio, use drt.assemble_from_interchange), turnover_changelist (diff old vs new → moved/retimed/trimmed/replaced/new/gone PLUS the junction diff: transition_added/transition_dropped/transition_changed with fade in/out or dissolve, outgoing/incoming, span and duration/type/pre-roll deltas — zero-length CMX carrier lines and the BL legs that carry fades fold into the junction diff instead of reading as gone/new sources; events pair by closest record position, consumed once, so a source cut twice at two speeds compares instance to instance; + timing flags incl. transition_dropped and dropped_split_audio on any A-track), conform_manifest (per-event assert: source resolved/handles/retime/reverse/TC-base; BL-aware — black legs need no source, fades no black-side handles, and a fade-out tail requirement lands on the picture source), marker_roundtrip (markers with provenance tags), verify_roundtrip (input events vs re-export events -> pass/mismatches + fitted per-source TC offsets + marker compare w/ markersNotInExport honesty flag; FADE-AWARE: BL/Solid-Color legs merge out as blackSegments and fade-window boundary reshapes are excused into fadeReshapedBoundaries instead of failing; RETIME-AWARE: speed/reverse compare pairwise — EXPORT_OTIO carries an authored Sm2TimeMap back as LinearTimeWarp (measured), so a flattened/lost retime fails as drift geometry alone cannot catch; AUDIO-AWARE: declared audio events compare (a video-only export such as EXPORT_EDL flags audioNotInExport instead of failing) (channel legs deduped, mismatches tagged trackType audio) while the mirrored-A1 export of a video-only turnover stays informational; COLOUR-AWARE: an input generator leg carrying a fillcolor (fade-to-white, colour matte) must come back on the same track over its span with the same colour — Resolve\'s FCP7 writer emits it — else generator-colour fails (generatorColours reports the compare); the conform QC loop-closer). Offline (AAF needs pyaaf2; live AAF/DRP import is on the Python davinci-resolve MCP).',
|
|
89
|
+
'Editorial integrity (Cluster E) — turnover interchange → normalized events → changelist + conform manifest with TIMING silent-lie guards (flattened retime / dropped J/L-cut audio / framerate-pulldown slip / reverse dropped / transition-handle starvation → flag, skip-not-fake). Report-only (gate: review). Actions: parse_interchange (EDL/OTIO/XMEML natively — incl. Resolve-written OTIO generator clips (a Solid Color is a Clip with a NULL media_reference; it walks as a BL leg with generatorName, and an OTIO GeneratorReference carries its colour) so Resolve\'s own OTIO exports re-conform, Resolve-written FCP7 -1 junction edges (paired in record order) + Solid Color / Color Matte generators carrying their `fillcolor` (BL legs with `color` → fade-to-white and colour mattes author, E110), XMEML audio-track transitionitems as audio cross-fades on numbered lanes A/A2/…, and CMX FROM/TO CLIP NAME comments over the generic AX reel — + AAF via pyaaf2 (flat sound/picture slots number A/A2/… and V/V2/… in slot order so separate beds keep their lanes; NestedScope layers keep layer numbering) + PRPROJ via gunzip+XML → normalized events incl. span-explicit transitions, BL fade legs, and freezes as zero-speed events (OTIO FreezeFrame, XMEML timeremap 0, PrProj in==out, AAF 0% motion effects); for AAF/PRPROJ pass the file PATH as content; AAF also returns per-sequence startTimecode/startFrame — build the timeline at THAT start, not the Resolve 01:00:00:00 default — and per-clip `geometry` for Avid transform effects), list_sequences (ONE offline picker entry point across xml/edl/otio/drt/drp/aaf/prproj → [{id,name,eventCount}], plus startTimecode/startFrame for AAF), convert_to_interchange (author OTIO/EDL/DRT Resolve CAN import from events or a parsed source; the EDL target writes CMX transition pairs incl. BL fades — the .prproj→Resolve conform bridge, no Premiere needed; editorial timing/transitions survive and per-clip effects/color do not. SPEED/REVERSE survive on the otio (LinearTimeWarp) and edl (M2) targets ONLY — this FLAT drt target flattens every retime to 100% forward and returns `flattened`/`flattenedCount` naming each event that lost one (`flattened` is always present on `drt`, empty when there were none); for a .drt that AUTHORS retimes/dissolves/multi-track/audio, use drt.assemble_from_interchange), turnover_changelist (diff old vs new → moved/retimed/trimmed/replaced/new/gone PLUS the junction diff: transition_added/transition_dropped/transition_changed with fade in/out or dissolve, outgoing/incoming, span and duration/type/pre-roll deltas — zero-length CMX carrier lines and the BL legs that carry fades fold into the junction diff instead of reading as gone/new sources; events pair by closest record position, consumed once, so a source cut twice at two speeds compares instance to instance; + timing flags incl. transition_dropped and dropped_split_audio on any A-track), conform_manifest (per-event assert: source resolved/handles/retime/reverse/TC-base; BL-aware — black legs need no source, fades no black-side handles, and a fade-out tail requirement lands on the picture source), marker_roundtrip (markers with provenance tags), verify_roundtrip (input events vs re-export events -> pass/mismatches + fitted per-source TC offsets + marker compare w/ markersNotInExport honesty flag; FADE-AWARE: BL/Solid-Color legs merge out as blackSegments and fade-window boundary reshapes are excused into fadeReshapedBoundaries instead of failing; RETIME-AWARE: speed/reverse compare pairwise — EXPORT_OTIO carries an authored Sm2TimeMap back as LinearTimeWarp (measured), so a flattened/lost retime fails as drift geometry alone cannot catch; AUDIO-AWARE: declared audio events compare (a video-only export such as EXPORT_EDL flags audioNotInExport instead of failing) (channel legs deduped, mismatches tagged trackType audio) while the mirrored-A1 export of a video-only turnover stays informational; COLOUR-AWARE: an input generator leg carrying a fillcolor (fade-to-white, colour matte) must come back on the same track over its span with the same colour — Resolve\'s FCP7 writer emits it — else generator-colour fails (generatorColours reports the compare) — pass exportedFormat: an OTIO/EDL re-export cannot carry colour (measured) and reports generatorColourNotInExport instead of failing; the conform QC loop-closer). Offline (AAF needs pyaaf2; live AAF/DRP import is on the Python davinci-resolve MCP).',
|
|
90
90
|
async handler({ action, args }) {
|
|
91
91
|
if (action === 'parse_interchange') {
|
|
92
92
|
const p = parseSchema.parse(args);
|
|
@@ -158,6 +158,8 @@ export const editorialTool = {
|
|
|
158
158
|
srcTol: z.number().optional(),
|
|
159
159
|
sourceMap: z.record(z.object({ mediaFilePath: z.string() }).passthrough()).optional()
|
|
160
160
|
.describe('The SAME reel→{mediaFilePath} map the assemble used — lets an EDL reel (CUTSRC) match the re-export\'s file basename (cut_src)'),
|
|
161
|
+
exportedFormat: z.string().optional()
|
|
162
|
+
.describe('Format of the re-export (otio|edl|xml|drt). Generator COLOUR can only be witnessed by an XML re-export (Resolve\'s OTIO/EDL writers carry none — measured); pass it so a colour compare against a colour-blind export reports generatorColourNotInExport instead of failing'),
|
|
161
163
|
}).parse(args);
|
|
162
164
|
// EDL reels vs exported basenames: derive the alias table from the
|
|
163
165
|
// sourceMap that drove the assemble (the one authority linking them).
|
|
@@ -166,7 +168,7 @@ export const editorialTool = {
|
|
|
166
168
|
const base = String(src.mediaFilePath).split('/').pop();
|
|
167
169
|
if (base) sourceAliases[reel] = base;
|
|
168
170
|
}
|
|
169
|
-
return verifyRoundtrip(p.input, p.exported, { recTol: p.recTol, srcTol: p.srcTol, sourceAliases });
|
|
171
|
+
return verifyRoundtrip(p.input, p.exported, { recTol: p.recTol, srcTol: p.srcTol, sourceAliases, exportedFormat: p.exportedFormat });
|
|
170
172
|
}
|
|
171
173
|
if (action === 'marker_roundtrip') {
|
|
172
174
|
const p = markerSchema.parse(args);
|
package/src/granular/common.py
CHANGED
|
@@ -87,7 +87,7 @@ if not logging.getLogger().handlers:
|
|
|
87
87
|
handlers=[logging.StreamHandler()],
|
|
88
88
|
)
|
|
89
89
|
|
|
90
|
-
VERSION = "2.
|
|
90
|
+
VERSION = "2.173.0"
|
|
91
91
|
logger = logging.getLogger("davinci-resolve-mcp")
|
|
92
92
|
logger.info(f"Starting DaVinci Resolve MCP Server v{VERSION}")
|
|
93
93
|
logger.info(f"Detected platform: {get_platform()}")
|
package/src/server.py
CHANGED
package/src/utils/api_truth.py
CHANGED
|
@@ -2841,7 +2841,17 @@ API_TRUTH: List[Dict[str, Any]] = [
|
|
|
2841
2841
|
"a Solid Color's colour as the FxPlug parameter `input_1` "
|
|
2842
2842
|
"(effectid FxPlugWrapper:C18E8B62_…), not `fillcolor` — an "
|
|
2843
2843
|
"authored EffectFiltersBA colour came back exactly (white, "
|
|
2844
|
-
"128/64/191; E112)."
|
|
2844
|
+
"128/64/191; E112). The OTIO writer CANNOT: EXPORT_OTIO "
|
|
2845
|
+
"emits a Solid Color as a Clip.2 named 'Solid Color' with a "
|
|
2846
|
+
"NULL media_reference, metadata {\"Resolve_OTIO\": {}} and a "
|
|
2847
|
+
"parameterless Transform effect — no colour anywhere "
|
|
2848
|
+
"(measured E117) — so only an XML re-export witnesses a "
|
|
2849
|
+
"generator colour (editorial.verify_roundtrip exportedFormat "
|
|
2850
|
+
"→ generatorColourNotInExport). Such an OTIO export DOES "
|
|
2851
|
+
"re-conform through drt.assemble_from_interchange (E118): the "
|
|
2852
|
+
"media-less generator clips walk as black legs and the "
|
|
2853
|
+
"clip→generator fade renders 124→16 — black, the colour "
|
|
2854
|
+
"having been lost by the writer.",
|
|
2845
2855
|
"recommended": "Author fade-to-white / colour mattes by placing a "
|
|
2846
2856
|
"Solid Color generator with that blob "
|
|
2847
2857
|
"(drp-format placeGenerator `color`, drt.assemble "
|