davinci-resolve-mcp 2.156.0 → 2.157.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 CHANGED
@@ -2,6 +2,30 @@
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.157.0 — the conform manifest learns fades too
6
+
7
+ ### Fixed
8
+
9
+ - **`editorial.conform_manifest` failed every conformable fade EDL**: BL
10
+ legs failed `source_resolved` ("no resolved path") and the fade-in failed
11
+ `handles` — but BL is the EDL's built-in black (it conforms as a Solid
12
+ Color generator, no source needed), and a fade from black needs no handle
13
+ media at all (the boundary shift trims the picture head inside its own
14
+ material). A fade-out's real requirement — outgoing tail on the PICTURE
15
+ source — now lands on the right source: a starved tail still fails,
16
+ named precisely.
17
+
18
+ ## What's New in v2.156.1 — docs catch up with the fade + QC arc
19
+
20
+ ### Documentation
21
+
22
+ - `docs/guides/native-drt-authoring.md` learns the v2.148–2.156 arc: the
23
+ A1–A16 audio ceiling, the fade capability row and the fade/AAF-overlap
24
+ laws, the `blackLegs` ledger field, and the full `verify_roundtrip`
25
+ surface (markers, fades, retimes, audio) in the delivery checklist.
26
+ - The Native .drt Authoring and Headless Edit Loop guides are now linked
27
+ from both READMEs' guide tables — both were orphaned.
28
+
5
29
  ## What's New in v2.156.0 — the QC loop learns audio; the verify surface is complete
6
30
 
7
31
  ### Added
package/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  English | [简体中文](README.zh-CN.md)
4
4
 
5
- [![Version](https://img.shields.io/badge/version-2.156.0-blue.svg)](https://github.com/samuelgursky/davinci-resolve-mcp/releases)
5
+ [![Version](https://img.shields.io/badge/version-2.157.0-blue.svg)](https://github.com/samuelgursky/davinci-resolve-mcp/releases)
6
6
  [![npm](https://img.shields.io/npm/v/davinci-resolve-mcp.svg?label=npm&color=CB3837)](https://www.npmjs.com/package/davinci-resolve-mcp)
7
7
  [![API Coverage](https://img.shields.io/badge/API%20Coverage-100%25-brightgreen.svg)](docs/reference/api-coverage.md)
8
8
  [![Tools](https://img.shields.io/badge/MCP%20Tools-36%20(353%20full)-blue.svg)](#server-modes)
@@ -303,6 +303,8 @@ For method-by-method status, see [API Coverage and Test Results](docs/reference/
303
303
  | [Multicam Setup Helper Guide](docs/guides/multicam-setup-guide.md) | Stacked timeline prep, helper/API boundary, and Resolve UI conversion steps |
304
304
  | [Editorial Decision Guide](docs/guides/editorial-decision-guide.md) | Project-owned editorial craft guidance for analysis and timeline decisions |
305
305
  | [Conforming an Avid AAF](docs/guides/conforming-an-avid-aaf.md) | Why all three Resolve-native routes fail on a consolidated turnover, and which one is dangerous |
306
+ | [Native .drt Authoring](docs/guides/native-drt-authoring.md) | Offline template-spliced timeline authoring: cuts, retimes, transitions, fades, markers, compounds — and the measured laws behind them |
307
+ | [Headless Edit Loop](docs/guides/headless-edit-loop.md) | Driving Resolve from the command line: which interchange formats relink and round-trip, measured in GUI and -nogui |
306
308
  | [Color Decision Guide](docs/guides/color-decision-guide.md) | Project-owned color correction guidance and Resolve color API boundaries |
307
309
  | [Contributing and Project Layout](docs/contributing.md) | Contribution workflow, platform support, security notes, repository structure |
308
310
  | [Security Policy](SECURITY.md) | Local stdio trust boundary, tool metadata, confirmation guidance, reporting |
package/README.zh-CN.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  [English](README.md) | 简体中文
4
4
 
5
- [![Version](https://img.shields.io/badge/version-2.156.0-blue.svg)](https://github.com/samuelgursky/davinci-resolve-mcp/releases)
5
+ [![Version](https://img.shields.io/badge/version-2.157.0-blue.svg)](https://github.com/samuelgursky/davinci-resolve-mcp/releases)
6
6
  [![npm](https://img.shields.io/npm/v/davinci-resolve-mcp.svg?label=npm&color=CB3837)](https://www.npmjs.com/package/davinci-resolve-mcp)
7
7
  [![API Coverage](https://img.shields.io/badge/API%20Coverage-100%25-brightgreen.svg)](docs/reference/api-coverage.md)
8
8
  [![Tools](https://img.shields.io/badge/MCP%20Tools-36%20(353%20full)-blue.svg)](#服务器模式)
@@ -12,7 +12,7 @@
12
12
  [![Python](https://img.shields.io/badge/python-3.10+-green.svg)](https://www.python.org/downloads/)
13
13
  [![License](https://img.shields.io/badge/license-MIT-blue.svg)](https://opensource.org/licenses/MIT)
14
14
 
15
- > 本翻译对应 v2.156.0 版 README。如与英文原版有出入,以 [英文原版](README.md) 为准。
15
+ > 本翻译对应 v2.157.0 版 README。如与英文原版有出入,以 [英文原版](README.md) 为准。
16
16
 
17
17
  一个 Model Context Protocol (MCP) 服务器,让 AI 助手通过官方脚本 API 控制 DaVinci Resolve Studio(达芬奇)。它提供完整的 API 覆盖,外加带护栏的工作流助手,涵盖剪辑、媒体池整理、渲染设置、审阅标记、调色、Fusion、Fairlight、项目生命周期任务、扩展开发,以及不碰源媒体的媒体分析。
18
18
 
@@ -221,6 +221,8 @@ DRX 调色写入**针对 Resolve Studio 做过实机校准**:调色参数默
221
221
  | [多机位设置助手指南](docs/guides/multicam-setup-guide.md) | 堆叠时间线准备、助手/API 边界、Resolve UI 转换步骤 |
222
222
  | [剪辑决策指南](docs/guides/editorial-decision-guide.md) | 项目自有的剪辑手艺指引,用于分析与时间线决策 |
223
223
  | [套底 Avid AAF](docs/guides/conforming-an-avid-aaf.md) | 为何三条 Resolve 原生路径在合并交接上全部失败,以及哪条最危险 |
224
+ | [原生 .drt 离线创作](docs/guides/native-drt-authoring.md) | 离线模板拼接式时间线创作:剪切、变速、转场、淡入淡出、标记、复合片段,以及背后的实测规律 |
225
+ | [无界面剪辑循环](docs/guides/headless-edit-loop.md) | 纯命令行驱动 Resolve:哪些交换格式能重新链接并往返,GUI 与 -nogui 双双实测 |
224
226
  | [调色决策指南](docs/guides/color-decision-guide.md) | 项目自有的校色指引与 Resolve 调色 API 边界 |
225
227
  | [贡献与项目布局](docs/contributing.md) | 贡献流程、平台支持、安全说明、仓库结构 |
226
228
  | [安全策略](SECURITY.md) | 本地 stdio 信任边界、工具元数据、确认指引、漏洞报告 |
@@ -45,6 +45,7 @@ window. `render.verify_output` covers the container-level checks.
45
45
  | Wipes (EDL `W`-codes) | `transitions[].type: 'wipe'` (single soft-edge style — host-importer parity) | v2.138 |
46
46
  | Transition styles | `transitions[].type: 'dip' \| 'additive' \| 'fade-to-color' \| 'smooth-cut' \| 'non-additive'` (XMEML effectids route automatically) | v2.140 |
47
47
  | Audio cross-fades | `transitions[].trackType: 'audio'` | v2.116 |
48
+ | Fades to/from black | EDL `BL` dissolves, OTIO gap-adjacent Transitions, XMEML/PrProj edge spans, AAF filler-adjacent Transitions — authored as Solid-Color-generator dissolves | v2.150–2.155 |
48
49
  | Constant retimes, forward | `cuts[].speed` (e.g. `0.5`) | v2.113 |
49
50
  | Constant retimes, reverse | `cuts[].reverse` | v2.114 |
50
51
  | Freeze frames | `cuts[].freeze` (holds source frame `srcIn`) | v2.134 |
@@ -70,7 +71,8 @@ plus a `sourceMap` — all five formats are route-proven end-to-end
70
71
  (parse → assemble → import → measured frames and RMS) — and
71
72
  returns an honesty ledger
72
73
  (`authoredTransitions`, `droppedTransitions` with reasons, `authoredRetimes`,
73
- `flattenedRetimes`, `authoredAudioEvents`, `upperTrackCutsVideoOnly`).
74
+ `flattenedRetimes`, `authoredAudioEvents`, `upperTrackCutsVideoOnly`,
75
+ `blackLegs` for authored fade generators and skipped audio-silence legs).
74
76
 
75
77
  ## The laws (why the constraints are what they are)
76
78
 
@@ -153,6 +155,24 @@ for the post-cut portion. Off-center spans render (blend measured across an
153
155
  uneven [cut-6, cut+18) span); everything unauthorable stays in
154
156
  `droppedTransitions` with the reason.
155
157
 
158
+ **Fade law.** A transition needs a physical item on BOTH sides of its
159
+ junction: a hand-authored single-sided transition element (span at a lone
160
+ clip head or tail) refuses to import entirely, and Resolve's own EDL
161
+ importer silently DROPS dissolves involving the `BL` reel (the fade-in
162
+ vanishes; the fade-out hard-cuts into the Solid Color it creates). The
163
+ authorable form — used automatically by `assemble_from_interchange` for all
164
+ five formats — is a real clip↔Solid-Color-generator dissolve: a zero-length
165
+ black leg materializes/grows to cover its side of the span (empty track
166
+ renders black, so the growth is render-neutral), and the CMX zero-length
167
+ fade-in slug grows through the boundary shift. Audio fades to silence have
168
+ no authorable form (no silence source) and drop with the stated reason.
169
+
170
+ **AAF overlap law.** An AAF Transition CONSUMES record time: the incoming
171
+ component legitimately overlaps the outgoing by the transition duration.
172
+ The bridge trims the outgoing's tail to the overlap start and lets the
173
+ boundary shift re-extend it to the `CutPoint` — the AAF notional-cut
174
+ semantics exactly.
175
+
156
176
  ## Verification checklist for a delivered .drt
157
177
 
158
178
  1. `timeline.import_timeline_checked` — expect `linked == total` for media
@@ -170,7 +190,15 @@ uneven [cut-6, cut+18) span); everything unauthorable stays in
170
190
  verifier normalizes track labels, source naming, and per-source
171
191
  TC-absolute source frames (fitting the offsets, e.g. 86400 for a
172
192
  01:00:00:00 source) — `pass: true` means the authored timeline's export
173
- matches the turnover's intent event-for-event.
193
+ matches the turnover's intent event-for-event. The verify surface covers
194
+ the whole authored family: timeline markers (`markersNotInExport` flags a
195
+ marker-less export instead of failing — EXPORT_OTIO drops them), fades
196
+ (BL/Solid-Color legs merge out as `blackSegments`; fade-window boundary
197
+ reshapes are excused into `fadeReshapedBoundaries`, never silently),
198
+ retimes (speed/reverse compare pairwise — EXPORT_OTIO round-trips an
199
+ authored Sm2TimeMap as LinearTimeWarp), and audio (declared audio events
200
+ compare with `trackType: 'audio'` tags; the A1 convenience mirror on a
201
+ video-only turnover stays informational).
174
202
 
175
203
  ## References
176
204
 
package/install.py CHANGED
@@ -37,7 +37,7 @@ from src.utils.update_check import (
37
37
 
38
38
  # ─── Version ──────────────────────────────────────────────────────────────────
39
39
 
40
- VERSION = "2.156.0"
40
+ VERSION = "2.157.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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "davinci-resolve-mcp",
3
- "version": "2.156.0",
3
+ "version": "2.157.0",
4
4
  "description": "NPM bootstrapper for the DaVinci Resolve MCP Server.",
5
5
  "license": "MIT",
6
6
  "author": "Samuel Gursky <samgursky@gmail.com>",
@@ -491,15 +491,44 @@ export function timingGuards(oldEvents, newEvents) {
491
491
  */
492
492
  export function conformManifest(events, resolution = {}, opts = {}) {
493
493
  const minHandle = opts.minHandle ?? 0;
494
+ const isBLsrc = (s) => /^(BL|BLACK)$/i.test(String(s || '').trim());
494
495
  const rows = [];
495
496
  for (const e of events) {
496
497
  const res = resolution[e.source] || {};
497
498
  const checks = [];
498
499
  const add = (name, pass, detail) => checks.push({ name, pass, ...(detail ? { detail } : {}) });
500
+ // BL/BLACK is the EDL's built-in black source: it needs no resolution
501
+ // entry (it conforms as a Solid Color generator, E91), and its side of a
502
+ // fade needs no handles (a generator extends freely). A fade-out's
503
+ // outgoing tail requirement belongs to the PICTURE source, checked on
504
+ // this BL event against the abutting predecessor.
505
+ if (isBLsrc(e.source)) {
506
+ add('source_resolved', true, 'built-in black (BL) — conforms as a Solid Color generator, no source needed');
507
+ if (e.transition && (e.transition.duration || 0) > 0) {
508
+ const half = Math.ceil(e.transition.duration / 2);
509
+ const prev = events.find((o) => o !== e && o.track === e.track && o.recOut === e.recIn && !isBLsrc(o.source));
510
+ if (prev) {
511
+ const pres = resolution[prev.source] || {};
512
+ const ok = (pres.handleOut ?? 0) >= half;
513
+ add('handles', ok, ok
514
+ ? `fade-out: ${prev.source} carries the outgoing tail`
515
+ : `fade-out to black: outgoing ${prev.source} needs tail ≥${half}; has ${pres.handleOut ?? 0}`);
516
+ }
517
+ }
518
+ const blPass = checks.every((c) => c.pass);
519
+ rows.push({ index: e.index, source: e.source, track: e.track, pass: blPass, checks });
520
+ continue;
521
+ }
499
522
  add('source_resolved', res.online !== false && !!(res.path || res.online), res.online === false ? 'offline' : res.path ? undefined : 'no resolved path');
500
523
  // Handles — and transition-handle starvation (a dissolve needs handle ≥ half its duration each side).
501
524
  const needHandle = Math.max(minHandle, e.transition ? Math.ceil((e.transition.duration || 0) / 2) : 0);
502
- if (needHandle > 0) {
525
+ const fadeInFromBlack = e.transition
526
+ && events.some((o) => o !== e && o.track === e.track && o.recOut === e.recIn && isBLsrc(o.source));
527
+ if (e.transition && fadeInFromBlack) {
528
+ // Fade from black: the boundary shift trims the picture head inside
529
+ // its own material — neither side needs handle media (E91, measured).
530
+ add('handles', true, 'fade from black — no handles needed (the black side extends freely)');
531
+ } else if (needHandle > 0) {
503
532
  const ok = (res.handleIn ?? 0) >= needHandle && (res.handleOut ?? 0) >= needHandle;
504
533
  add(
505
534
  'handles',
@@ -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), 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 .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);
@@ -87,7 +87,7 @@ if not logging.getLogger().handlers:
87
87
  handlers=[logging.StreamHandler()],
88
88
  )
89
89
 
90
- VERSION = "2.156.0"
90
+ VERSION = "2.157.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
@@ -11,7 +11,7 @@ Usage:
11
11
  python src/server.py --full # Start the 353-tool granular server instead
12
12
  """
13
13
 
14
- VERSION = "2.156.0"
14
+ VERSION = "2.157.0"
15
15
 
16
16
  import base64
17
17
  import os