davinci-resolve-mcp 2.169.0 → 2.170.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 +19 -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/src/granular/common.py +1 -1
- package/src/server.py +33 -4
- package/src/utils/api_truth.py +9 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,25 @@
|
|
|
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.170.0 — E113: `get_items` knows a transition from a clip
|
|
6
|
+
|
|
7
|
+
### Added
|
|
8
|
+
|
|
9
|
+
- **`timeline.get_items` reports `kind`** — `clip`, `transition`, or
|
|
10
|
+
`generator`. `GetItemListInTrack` lists transitions as items, and a video
|
|
11
|
+
Cross Dissolve enumerates by name; an AUDIO cross-fade enumerates with an
|
|
12
|
+
EMPTY name (measured on 19.1.3.7 on an assembled AAF turnover: 24 frames,
|
|
13
|
+
centered on the cut, between the two dialog clips), so the name can never
|
|
14
|
+
be the discriminator. A transition has no MediaPoolItem and an empty
|
|
15
|
+
property dict; a Solid Color generator has no media but transform keys;
|
|
16
|
+
everything else is a clip. An API surprise on the probe never demotes a
|
|
17
|
+
clip.
|
|
18
|
+
|
|
19
|
+
### Measured (filed in api-limitations)
|
|
20
|
+
|
|
21
|
+
- The transition entry now records the nameless audio form and the
|
|
22
|
+
media-pool/property discriminator, measured on both kinds.
|
|
23
|
+
|
|
5
24
|
## What's New in v2.169.0 — E112: round-trip QC is colour-aware
|
|
6
25
|
|
|
7
26
|
`verify_roundtrip` merged every generator leg out of the compare as "black",
|
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.170.0 版 README。如与英文原版有出入,以 [英文原版](README.md) 为准。
|
|
16
16
|
|
|
17
17
|
一个 Model Context Protocol (MCP) 服务器,让 AI 助手通过官方脚本 API 控制 DaVinci Resolve Studio(达芬奇)。它提供完整的 API 覆盖,外加带护栏的工作流助手,涵盖剪辑、媒体池整理、渲染设置、审阅标记、调色、Fusion、Fairlight、项目生命周期任务、扩展开发,以及不碰源媒体的媒体分析。
|
|
18
18
|
|
|
@@ -89,7 +89,7 @@ equivalent, blocking full automation.
|
|
|
89
89
|
### Transition create / copy / clone
|
|
90
90
|
|
|
91
91
|
- **Object:** `Timeline / TimelineItem`
|
|
92
|
-
- **Behavior:** There is no method to ADD or CLONE an edit transition — no AddTransition/CreateTransition/AddVideoTransition on Timeline or TimelineItem (dir(), 21.0.4.5). CORRECTION, measured on Studio 21.0.4.5 (2026-08-12): this entry previously said transitions applied in the UI are 'invisible to and unmodifiable by scripts'. BOTH HALVES WERE WRONG and are withdrawn. A transition IS a first-class timeline item: a 12-frame Cross Dissolve applied through the Edit-page right-click menu enumerates in GetItemListInTrack('video', 1) as GetName()=='Cross Dissolve', GetStart()==86426, GetDuration()==12 — centered on a cut at 86432 — with a stable GetUniqueId() and a working GetTrackTypeAndIndex(). A transition authored offline into a .drp and imported reads IDENTICALLY, so the route that created it does not matter. It is also REMOVABLE: Timeline.DeleteClips([transition], False) returns True and deletes it, leaving both adjacent clips at their original starts and durations. THE DISCRIMINATOR between a transition item and a clip item is GetProperty(): a transition returns an EMPTY dict where a video clip returns 26 transform keys; it also has no MediaPoolItem and no Fusion comp. WHAT IS GENUINELY MISSING: creation, cloning, and any type/alignment/parameter detail — the transition's kind is knowable ONLY from its name string, and there is no way to read its alignment (centered/start/end) or edit its duration.
|
|
92
|
+
- **Behavior:** There is no method to ADD or CLONE an edit transition — no AddTransition/CreateTransition/AddVideoTransition on Timeline or TimelineItem (dir(), 21.0.4.5). CORRECTION, measured on Studio 21.0.4.5 (2026-08-12): this entry previously said transitions applied in the UI are 'invisible to and unmodifiable by scripts'. BOTH HALVES WERE WRONG and are withdrawn. A transition IS a first-class timeline item: a 12-frame Cross Dissolve applied through the Edit-page right-click menu enumerates in GetItemListInTrack('video', 1) as GetName()=='Cross Dissolve', GetStart()==86426, GetDuration()==12 — centered on a cut at 86432 — with a stable GetUniqueId() and a working GetTrackTypeAndIndex(). A transition authored offline into a .drp and imported reads IDENTICALLY, so the route that created it does not matter. It is also REMOVABLE: Timeline.DeleteClips([transition], False) returns True and deletes it, leaving both adjacent clips at their original starts and durations. THE DISCRIMINATOR between a transition item and a clip item is GetProperty(): a transition returns an EMPTY dict where a video clip returns 26 transform keys; it also has no MediaPoolItem and no Fusion comp. WHAT IS GENUINELY MISSING: creation, cloning, and any type/alignment/parameter detail — the transition's kind is knowable ONLY from its name string, and there is no way to read its alignment (centered/start/end) or edit its duration. AUDIO NUANCE (measured 2026-09-01 on 19.1.3.7, E113): an audio cross-fade enumerates in GetItemListInTrack('audio', n) with an EMPTY GetName() (24 frames, centered on the cut, between the two clips) — so on audio lanes even the kind is not readable from the name. The discriminator that holds for BOTH: GetMediaPoolItem() is None AND GetProperty() is empty; a Solid Color generator has no MediaPoolItem either but DOES return transform keys. timeline.get_items reports `kind`.
|
|
93
93
|
- **Workaround / current handling:** Automated QC of existing transitions IS possible and is the main practical need — enumerate GetItemListInTrack, treat any item whose GetProperty() is empty and whose GetMediaPoolItem() is None as a transition, and read its name, start and duration. Removal is scriptable via Timeline.DeleteClips. To CREATE one, either apply it in the Resolve UI, or author it offline and import: the advanced server's drp place_transition writes a cross dissolve at an abutting cut ({track, atFrame, durationFrames}) and it round-trips into Resolve 21.0.4.5 reading back at the expected centered range.
|
|
94
94
|
- **Tags:** missing-method, timeline, transition
|
|
95
95
|
|
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.170.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
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.170.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.
|
|
14
|
+
VERSION = "2.170.0"
|
|
15
15
|
|
|
16
16
|
import base64
|
|
17
17
|
import os
|
|
@@ -2604,6 +2604,35 @@ def _find_timeline_item_by_id(tl, timeline_item_id) -> Optional[Any]:
|
|
|
2604
2604
|
return None
|
|
2605
2605
|
|
|
2606
2606
|
|
|
2607
|
+
def _describe_track_item(it) -> Dict[str, Any]:
|
|
2608
|
+
"""One GetItemListInTrack entry → {name, id, start, end, duration, kind}.
|
|
2609
|
+
|
|
2610
|
+
Transitions ARE items in that list (api_truth): a video Cross Dissolve
|
|
2611
|
+
enumerates by its name, but an AUDIO cross-fade enumerates with an EMPTY
|
|
2612
|
+
name (measured 2026-09-01, Studio 19.1.3.7, E113) — so the name string can
|
|
2613
|
+
never be the discriminator. A transition has no MediaPoolItem and an empty
|
|
2614
|
+
GetProperty() dict; a clip has both. `kind` reports that.
|
|
2615
|
+
"""
|
|
2616
|
+
kind = "clip"
|
|
2617
|
+
try:
|
|
2618
|
+
has_media = it.GetMediaPoolItem() is not None
|
|
2619
|
+
except Exception:
|
|
2620
|
+
has_media = True # an API surprise must not demote a clip to a transition
|
|
2621
|
+
if not has_media:
|
|
2622
|
+
try:
|
|
2623
|
+
props = it.GetProperty()
|
|
2624
|
+
except Exception:
|
|
2625
|
+
props = None
|
|
2626
|
+
if not props:
|
|
2627
|
+
kind = "transition"
|
|
2628
|
+
else:
|
|
2629
|
+
kind = "generator" # no media, but transform keys: Solid Color / titles
|
|
2630
|
+
return {
|
|
2631
|
+
"name": it.GetName(), "id": it.GetUniqueId(), "start": it.GetStart(),
|
|
2632
|
+
"end": it.GetEnd(), "duration": it.GetDuration(), "kind": kind,
|
|
2633
|
+
}
|
|
2634
|
+
|
|
2635
|
+
|
|
2607
2636
|
def _get_timeline_item_for_fusion(p: Dict[str, Any]):
|
|
2608
2637
|
"""Resolve optional timeline scope for fusion_comp."""
|
|
2609
2638
|
if not _has_fusion_timeline_scope(p):
|
|
@@ -24415,7 +24444,7 @@ def timeline(action: str, params: Optional[Dict[str, Any]] = None) -> Dict[str,
|
|
|
24415
24444
|
if err:
|
|
24416
24445
|
return _err(err)
|
|
24417
24446
|
items = tl.GetItemListInTrack(track_type, track_index)
|
|
24418
|
-
return {"items": [
|
|
24447
|
+
return {"items": [_describe_track_item(it) for it in (items or [])]}
|
|
24419
24448
|
elif action == "delete_clips":
|
|
24420
24449
|
# Find timeline items by unique IDs
|
|
24421
24450
|
ids_set = set(p["clip_ids"])
|
|
@@ -26203,9 +26232,9 @@ _ACTION_HELP: Dict[str, Dict[str, Dict[str, Any]]] = {
|
|
|
26203
26232
|
},
|
|
26204
26233
|
"timeline": {
|
|
26205
26234
|
"get_items": {
|
|
26206
|
-
"summary": "List items on one track as a summary (name/id/start/end/duration).",
|
|
26235
|
+
"summary": "List items on one track as a summary (name/id/start/end/duration/kind). Transitions ARE items — a video Cross Dissolve by name, an AUDIO cross-fade with an EMPTY name — so `kind` (clip | transition | generator) is the discriminator, never the name.",
|
|
26207
26236
|
"params": "track_type (video|audio|subtitle), index|track_index (1-based)",
|
|
26208
|
-
"returns": "{items: [{name, id, start, end, duration}]}",
|
|
26237
|
+
"returns": "{items: [{name, id, start, end, duration, kind}]}",
|
|
26209
26238
|
"example": 'timeline(action="get_items", params={"track_type": "video", "index": 1})',
|
|
26210
26239
|
},
|
|
26211
26240
|
"get_items_in_track": {
|
package/src/utils/api_truth.py
CHANGED
|
@@ -889,7 +889,15 @@ API_TRUTH: List[Dict[str, Any]] = [
|
|
|
889
889
|
"comp. WHAT IS GENUINELY MISSING: creation, cloning, and any "
|
|
890
890
|
"type/alignment/parameter detail — the transition's kind is "
|
|
891
891
|
"knowable ONLY from its name string, and there is no way to "
|
|
892
|
-
"read its alignment (centered/start/end) or edit its duration."
|
|
892
|
+
"read its alignment (centered/start/end) or edit its duration. "
|
|
893
|
+
"AUDIO NUANCE (measured 2026-09-01 on 19.1.3.7, E113): an "
|
|
894
|
+
"audio cross-fade enumerates in GetItemListInTrack('audio', n) "
|
|
895
|
+
"with an EMPTY GetName() (24 frames, centered on the cut, "
|
|
896
|
+
"between the two clips) — so on audio lanes even the kind is "
|
|
897
|
+
"not readable from the name. The discriminator that holds for "
|
|
898
|
+
"BOTH: GetMediaPoolItem() is None AND GetProperty() is empty; "
|
|
899
|
+
"a Solid Color generator has no MediaPoolItem either but DOES "
|
|
900
|
+
"return transform keys. timeline.get_items reports `kind`.",
|
|
893
901
|
"recommended": "Automated QC of existing transitions IS possible and is "
|
|
894
902
|
"the main practical need — enumerate GetItemListInTrack, "
|
|
895
903
|
"treat any item whose GetProperty() is empty and whose "
|