davinci-resolve-mcp 2.146.0 → 2.147.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 +17 -0
- package/README.md +1 -1
- package/README.zh-CN.md +2 -2
- package/docs/reference/api-limitations.md +9 -1
- package/install.py +1 -1
- package/package.json +1 -1
- package/resolve-advanced/server/author-interchange.mjs +32 -1
- package/src/granular/common.py +1 -1
- package/src/server.py +1 -1
- package/src/utils/api_truth.py +21 -0
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,23 @@
|
|
|
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.147.0 — the round-trip QC loop learns markers
|
|
6
|
+
|
|
7
|
+
### Added
|
|
8
|
+
|
|
9
|
+
- **`editorial.verify_roundtrip` is marker-aware**: timeline markers compare
|
|
10
|
+
through the loop (min-anchored frames within tolerance, names when both
|
|
11
|
+
sides carry them). A re-export with NO markers while the turnover has them
|
|
12
|
+
raises the `markersNotInExport` honesty flag without failing the pass — a
|
|
13
|
+
missing exporter capability is not a conform drift.
|
|
14
|
+
|
|
15
|
+
### Measured (new Resolve bug, filed in api-limitations)
|
|
16
|
+
|
|
17
|
+
- **`EXPORT_OTIO` drops timeline markers wholesale**: two markers readable
|
|
18
|
+
through the marker API, zero in the exported .otio — while Resolve's own
|
|
19
|
+
OTIO *importer* reads Marker objects fine. Marker-fidelity checks must go
|
|
20
|
+
through the marker API, never an OTIO re-export.
|
|
21
|
+
|
|
5
22
|
## What's New in v2.146.0 — bins, and the folder registry law
|
|
6
23
|
|
|
7
24
|
### Added
|
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.147.0 版 README。如与英文原版有出入,以 [英文原版](README.md) 为准。
|
|
16
16
|
|
|
17
17
|
一个 Model Context Protocol (MCP) 服务器,让 AI 助手通过官方脚本 API 控制 DaVinci Resolve Studio(达芬奇)。它提供完整的 API 覆盖,外加带护栏的工作流助手,涵盖剪辑、媒体池整理、渲染设置、审阅标记、调色、Fusion、Fairlight、项目生命周期任务、扩展开发,以及不碰源媒体的媒体分析。
|
|
18
18
|
|
|
@@ -12,7 +12,7 @@ that none exists).
|
|
|
12
12
|
|
|
13
13
|
**Verified on:** DaVinci Resolve Studio 21.0.2
|
|
14
14
|
|
|
15
|
-
**Totals:** 35 missing capabilities,
|
|
15
|
+
**Totals:** 35 missing capabilities, 48 bugs / unreliable behaviors.
|
|
16
16
|
|
|
17
17
|
The authoritative source is the runtime-queryable `api_truth` ledger
|
|
18
18
|
(`resolve_control api_truth "<query>"`); this document is generated from
|
|
@@ -679,3 +679,11 @@ values, or automation-hostile modal prompts.
|
|
|
679
679
|
- **Behavior:** Item-level markers (clip locators) are not serialized into the exported .drt at all. They live in the project database as Sm2TiItemLockableBlob rows (same wire codec as timeline markers, BlobOwner = the item's DbId — located by byte search in a live Project.db), and readback via TimelineItem.GetMarkers is fine, but the export omits the blobs even after SaveProject — measured on Studio 19.1.3.7. Asymmetrically, ImportTimelineFromFile ACCEPTS an authored Sm2TiItemLockableBlob and the markers read back perfectly.
|
|
680
680
|
- **Workaround / current handling:** Do not rely on .drt archives to carry clip markers. To deliver item markers in a .drt, author them offline (drt.assemble cuts[].markers writes the accepted blob); to preserve markers from a live timeline, read them via the marker API and re-author.
|
|
681
681
|
- **Tags:** timeline, export, drt, markers, silent-failure
|
|
682
|
+
|
|
683
|
+
### Timeline.Export EXPORT_OTIO (drops timeline markers)
|
|
684
|
+
|
|
685
|
+
- **Object:** `Timeline`
|
|
686
|
+
- **Signature:** `(filePath, EXPORT_OTIO) -> bool`
|
|
687
|
+
- **Behavior:** Timeline markers present and readable through the marker API do not appear in the exported .otio at all — the OTIO Marker schema exists and Resolve's importer reads it, but the exporter writes none (measured on Studio 19.1.3.7: two markers read back at frames 12/72; the export carried zero). Any marker-fidelity QC built on an OTIO re-export silently sees an unmarked timeline.
|
|
688
|
+
- **Workaround / current handling:** Do not use EXPORT_OTIO to carry or verify markers. editorial.verify_roundtrip reports this case as `markersNotInExport` (honesty flag, not a failure); read markers through the marker API for fidelity checks, and author them offline via drt.assemble spec.markers when a .drt must carry them.
|
|
689
|
+
- **Tags:** timeline, export, otio, markers, silent-failure
|
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.147.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
|
@@ -746,5 +746,36 @@ export function verifyRoundtrip(inputEvents, exportedEvents, opts = {}) {
|
|
|
746
746
|
mismatches.push({ kind: 'source-frames', at: i, source: x.source, expectedOffset: srcOffsets[x.source], gotOffset: off });
|
|
747
747
|
}
|
|
748
748
|
}
|
|
749
|
-
|
|
749
|
+
// MARKERS (E88): compare track-'MARKER' pseudo-events, min-anchored to
|
|
750
|
+
// each side's own VIDEO record origin like everything else. When the
|
|
751
|
+
// re-export carries NO markers at all while the input has them, that is
|
|
752
|
+
// reported as markersNotInExport rather than failed — several export
|
|
753
|
+
// formats drop markers wholesale, and a missing capability is not a
|
|
754
|
+
// conform drift. When both sides carry markers, they compare strictly.
|
|
755
|
+
const mks = (evts, anchor) => evts
|
|
756
|
+
.filter((e) => String(e.track) === 'MARKER' && e.recIn != null)
|
|
757
|
+
.map((e) => ({ frame: e.recIn - anchor, name: e.name || '' }))
|
|
758
|
+
.sort((x, y) => x.frame - y.frame);
|
|
759
|
+
const anchorOf = (evts) => {
|
|
760
|
+
const v = vids(evts);
|
|
761
|
+
return v.length ? Math.min(...v.map((e) => e.recIn)) : 0;
|
|
762
|
+
};
|
|
763
|
+
const am = mks(inputEvents, anchorOf(inputEvents));
|
|
764
|
+
const bm = mks(exportedEvents, anchorOf(exportedEvents));
|
|
765
|
+
const markers = { input: am.length, exported: bm.length, mismatches: [] };
|
|
766
|
+
let markersNotInExport = false;
|
|
767
|
+
if (am.length && !bm.length) {
|
|
768
|
+
markersNotInExport = true;
|
|
769
|
+
} else {
|
|
770
|
+
if (am.length !== bm.length) markers.mismatches.push({ kind: 'marker-count', input: am.length, exported: bm.length });
|
|
771
|
+
for (let i = 0; i < Math.min(am.length, bm.length); i += 1) {
|
|
772
|
+
if (Math.abs(am[i].frame - bm[i].frame) > recTol) {
|
|
773
|
+
markers.mismatches.push({ kind: 'marker-frame', at: i, input: am[i].frame, exported: bm[i].frame });
|
|
774
|
+
} else if (am[i].name && bm[i].name && am[i].name !== bm[i].name) {
|
|
775
|
+
markers.mismatches.push({ kind: 'marker-name', at: i, input: am[i].name, exported: bm[i].name });
|
|
776
|
+
}
|
|
777
|
+
}
|
|
778
|
+
mismatches.push(...markers.mismatches);
|
|
779
|
+
}
|
|
780
|
+
return { pass: mismatches.length === 0, pairs: n, srcOffsets, mismatches, markers, ...(markersNotInExport ? { markersNotInExport } : {}) };
|
|
750
781
|
}
|
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.147.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
|
@@ -2716,6 +2716,27 @@ API_TRUTH: List[Dict[str, Any]] = [
|
|
|
2716
2716
|
"submit": "bug",
|
|
2717
2717
|
"mitigation": ["drt.assemble cuts[].markers"],
|
|
2718
2718
|
},
|
|
2719
|
+
{
|
|
2720
|
+
"symbol": "Timeline.Export EXPORT_OTIO (drops timeline markers)",
|
|
2721
|
+
"object": "Timeline",
|
|
2722
|
+
"signature": "(filePath, EXPORT_OTIO) -> bool",
|
|
2723
|
+
"reality": "Timeline markers present and readable through the marker "
|
|
2724
|
+
"API do not appear in the exported .otio at all — the OTIO "
|
|
2725
|
+
"Marker schema exists and Resolve's importer reads it, but "
|
|
2726
|
+
"the exporter writes none (measured on Studio 19.1.3.7: two "
|
|
2727
|
+
"markers read back at frames 12/72; the export carried "
|
|
2728
|
+
"zero). Any marker-fidelity QC built on an OTIO re-export "
|
|
2729
|
+
"silently sees an unmarked timeline.",
|
|
2730
|
+
"recommended": "Do not use EXPORT_OTIO to carry or verify markers. "
|
|
2731
|
+
"editorial.verify_roundtrip reports this case as "
|
|
2732
|
+
"`markersNotInExport` (honesty flag, not a failure); "
|
|
2733
|
+
"read markers through the marker API for fidelity "
|
|
2734
|
+
"checks, and author them offline via drt.assemble "
|
|
2735
|
+
"spec.markers when a .drt must carry them.",
|
|
2736
|
+
"tags": ["timeline", "export", "otio", "markers", "silent-failure"],
|
|
2737
|
+
"submit": "bug",
|
|
2738
|
+
"mitigation": ["editorial.verify_roundtrip markersNotInExport"],
|
|
2739
|
+
},
|
|
2719
2740
|
]
|
|
2720
2741
|
|
|
2721
2742
|
|