davinci-resolve-mcp 2.157.0 → 2.159.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 +39 -0
- package/README.md +1 -1
- package/README.zh-CN.md +2 -2
- package/install.py +1 -1
- package/package.json +1 -1
- package/resolve-advanced/server/author-interchange.mjs +37 -12
- package/resolve-advanced/server/tools/editorial.mjs +1 -1
- package/src/granular/common.py +1 -1
- package/src/server.py +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,45 @@
|
|
|
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.159.0 — the EDL writer learns transitions
|
|
6
|
+
|
|
7
|
+
### Fixed
|
|
8
|
+
|
|
9
|
+
- **`convert_to_interchange`'s EDL target silently dropped every
|
|
10
|
+
transition** (the OTIO target carried them since day one). The writer now
|
|
11
|
+
emits the CMX pairs — a zero-length outgoing marker line plus the `D` line
|
|
12
|
+
with its duration — with the `BL` reel on the black side of fades, and a
|
|
13
|
+
zero-length fade-out carrier receives the fade's record extent per the
|
|
14
|
+
CMX convention. Round-trip proven: written EDLs parse back to fully
|
|
15
|
+
authored specs (dissolves, fade-in, fade-out; nothing dropped). Reel
|
|
16
|
+
names are basename-stripped before sanitizing, so path-style sources
|
|
17
|
+
produce clean reels.
|
|
18
|
+
|
|
19
|
+
## What's New in v2.158.0 — E100: the kitchen-sink certification
|
|
20
|
+
|
|
21
|
+
### Verified (one turnover, everything at once)
|
|
22
|
+
|
|
23
|
+
- A single OTIO turnover carrying a fade-in, a V2 stack, a centered
|
|
24
|
+
dissolve, a 50% retime, a retime-adjacent fade-out, two audio legs, two
|
|
25
|
+
track markers, and a clip marker conformed, imported, and **rendered
|
|
26
|
+
correct in all 32 measured windows** — including the previously unmeasured
|
|
27
|
+
interactions (the boundary shift extending a retimed cut into its
|
|
28
|
+
fade-out; an upper-track stack compositing over the fade region). The
|
|
29
|
+
round-trip QC closed `pass: true` against Resolve's own re-export, and
|
|
30
|
+
the fixture is now a permanent offline test.
|
|
31
|
+
|
|
32
|
+
### Fixed
|
|
33
|
+
|
|
34
|
+
- `verify_roundtrip` compares sources by **basename**: an OTIO turnover
|
|
35
|
+
names sources by `target_url` path while Resolve's re-export uses the file
|
|
36
|
+
basename — the same file read as six spurious source mismatches.
|
|
37
|
+
|
|
38
|
+
### Measured
|
|
39
|
+
|
|
40
|
+
- **Fairlight level law**: the template's A1 strip plays at source level
|
|
41
|
+
while the added mono strips (A2–A16) play 3 dB down per channel (center
|
|
42
|
+
pan law). Both render; it is mixer semantics, not a placement failure.
|
|
43
|
+
|
|
5
44
|
## What's New in v2.157.0 — the conform manifest learns fades too
|
|
6
45
|
|
|
7
46
|
### 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.159.0 版 README。如与英文原版有出入,以 [英文原版](README.md) 为准。
|
|
16
16
|
|
|
17
17
|
一个 Model Context Protocol (MCP) 服务器,让 AI 助手通过官方脚本 API 控制 DaVinci Resolve Studio(达芬奇)。它提供完整的 API 覆盖,外加带护栏的工作流助手,涵盖剪辑、媒体池整理、渲染设置、审阅标记、调色、Fusion、Fairlight、项目生命周期任务、扩展开发,以及不碰源媒体的媒体分析。
|
|
18
18
|
|
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.159.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
|
@@ -705,19 +705,41 @@ export function eventsToAssembleSpec(events, opts = {}) {
|
|
|
705
705
|
|
|
706
706
|
export function eventsToEDL(events, opts = {}) {
|
|
707
707
|
const fps = opts.fps || events.find((e) => e.fps)?.fps || 24;
|
|
708
|
-
const vids = events.filter((e) => e.track !== 'A').sort((a, b) => (a.recIn ?? 0) - (b.recIn ?? 0));
|
|
708
|
+
const vids = events.filter((e) => e.track !== 'A').sort((a, b) => (a.recIn ?? 0) - (b.recIn ?? 0) || (a.recOut ?? 0) - (b.recOut ?? 0));
|
|
709
709
|
const lines = [`TITLE: ${opts.name || 'CONFORMED'}`, 'FCM: NON-DROP FRAME'];
|
|
710
|
+
const reelOf = (e) =>
|
|
711
|
+
String(e.source || 'AX')
|
|
712
|
+
.split(/[\\/]/).pop()
|
|
713
|
+
.replace(/\.[^.]+$/, '')
|
|
714
|
+
.replace(/[^A-Za-z0-9]/g, '')
|
|
715
|
+
.slice(0, 8)
|
|
716
|
+
.toUpperCase() || 'AX';
|
|
717
|
+
let num = 0;
|
|
710
718
|
vids.forEach((e, i) => {
|
|
711
|
-
const
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
719
|
+
const reel = reelOf(e);
|
|
720
|
+
// Transitions write the CMX pair (E101 — the OTIO writer carried them
|
|
721
|
+
// since day one, this writer silently dropped them): a zero-length cut
|
|
722
|
+
// of the OUTGOING at the junction, then the D line with the duration.
|
|
723
|
+
// Fades work identically with the BL reel on the black side.
|
|
724
|
+
if (e.transition && (e.transition.duration || 0) > 0) {
|
|
725
|
+
const prev = vids.find((o) => o !== e && (o.recOut ?? 0) === (e.recIn ?? 0) && (o.recIn ?? 0) < (o.recOut ?? 0));
|
|
726
|
+
const outReel = prev ? reelOf(prev) : 'BL';
|
|
727
|
+
const outSrc = prev ? framesToTc(prev.srcOut, fps) : framesToTc(0, fps);
|
|
728
|
+
lines.push(
|
|
729
|
+
`${pad(++num, 3)} ${outReel} V C ${outSrc} ${outSrc} ${framesToTc(e.recIn, fps)} ${framesToTc(e.recIn, fps)}`,
|
|
730
|
+
);
|
|
731
|
+
// A zero-length BL carrier (OTIO/AAF fade-out shape) gets the fade's
|
|
732
|
+
// own record extent — the CMX fade-out convention.
|
|
733
|
+
const recOut = (e.recIn ?? 0) === (e.recOut ?? 0) ? (e.recIn ?? 0) + Math.round(e.transition.duration) : e.recOut;
|
|
734
|
+
lines.push(
|
|
735
|
+
`${pad(++num, 3)} ${reel} V D ${String(Math.round(e.transition.duration)).padStart(3, '0')} ${framesToTc(e.srcIn, fps)} ${framesToTc(e.srcOut, fps)} ${framesToTc(e.recIn, fps)} ${framesToTc(recOut, fps)}`,
|
|
736
|
+
);
|
|
737
|
+
} else {
|
|
738
|
+
if ((e.recIn ?? 0) === (e.recOut ?? 0)) return; // zero-length markers are emitted by the transition pair itself
|
|
739
|
+
lines.push(
|
|
740
|
+
`${pad(++num, 3)} ${reel} V C ${framesToTc(e.srcIn, fps)} ${framesToTc(e.srcOut, fps)} ${framesToTc(e.recIn, fps)} ${framesToTc(e.recOut, fps)}`,
|
|
741
|
+
);
|
|
742
|
+
}
|
|
721
743
|
if ((e.speed ?? 100) !== 100 || e.reverse) {
|
|
722
744
|
const play = (e.reverse ? -1 : 1) * (fps * ((e.speed ?? 100) / 100));
|
|
723
745
|
lines.push(`M2 ${reel} ${play.toFixed(1)} ${framesToTc(e.srcIn, fps)}`);
|
|
@@ -826,7 +848,10 @@ export function verifyRoundtrip(inputEvents, exportedEvents, opts = {}) {
|
|
|
826
848
|
const m = /^([VA])(\d+)?$/.exec(String(t || ''));
|
|
827
849
|
return m ? `${m[1]}${m[2] || '1'}` : String(t);
|
|
828
850
|
};
|
|
829
|
-
|
|
851
|
+
// Basename + extension-stripped + case-folded: an OTIO turnover names
|
|
852
|
+
// sources by target_url PATH while Resolve's re-export names them by file
|
|
853
|
+
// basename (measured E100) — same file, different spelling.
|
|
854
|
+
const canonSource = (x) => String(x || '').split(/[\\/]/).pop().replace(/\.[^.]+$/, '').toLowerCase();
|
|
830
855
|
// Reel/tape aliases: an EDL names sources by REEL (CUTSRC) while the
|
|
831
856
|
// re-export names them by file basename (cut_src) — the sourceMap that
|
|
832
857
|
// drove the assemble is the authority linking the two. Keys and values
|
|
@@ -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 + AAF via pyaaf2 + PRPROJ via gunzip+XML → normalized events incl. span-explicit transitions and BL fade legs; 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 .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/replaced/new/gone + timing flags), 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 (channel legs deduped, mismatches tagged trackType audio) while the mirrored-A1 export of a video-only turnover stays informational; 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 + AAF via pyaaf2 + PRPROJ via gunzip+XML → normalized events incl. span-explicit transitions and BL fade legs; 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/replaced/new/gone + timing flags), 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 (channel legs deduped, mismatches tagged trackType audio) while the mirrored-A1 export of a video-only turnover stays informational; 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);
|
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.159.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()}")
|