davinci-resolve-mcp 5.2.12 → 5.2.14
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 +26 -0
- package/README.md +1 -1
- package/README.zh-CN.md +2 -2
- package/README.zh-TW.md +2 -2
- package/install.py +1 -1
- package/package.json +1 -1
- package/src/granular/common.py +1 -1
- package/src/server.py +12 -6
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,32 @@
|
|
|
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 v5.2.14 — `ripple_insert` blockers say what they are and what to do
|
|
6
|
+
|
|
7
|
+
From #381 by @boomesh11, fixing #376 reported by @willturner-maker. Adapted on landing.
|
|
8
|
+
|
|
9
|
+
### Fixed
|
|
10
|
+
|
|
11
|
+
- **A `ripple_insert` blocker contradicted its own error.** A later item with no Media Pool clip came back with code `UNSPECIFIED` and `retryable: true`, while the top-level `RIPPLE_PLAN_BLOCKED` error said `retryable: false`. The blocker now carries `NO_MEDIA_POOL_ITEM`, `retryable: false`, and the `unsupported` category. That's the category `replace_source_range` already used for the same code; the one change made on landing was aligning it.
|
|
12
|
+
- **Transitions were described as titles or generators.** The blocker message and `infeasible_reasons` now name transitions alongside titles, generators and Fusion comps.
|
|
13
|
+
- **The remediation sent callers in a circle.** It told them to re-run with `dry_run=true`, even after they had just done that. It now says to resolve or remove the listed blockers, then re-run.
|
|
14
|
+
|
|
15
|
+
### Not verified here
|
|
16
|
+
|
|
17
|
+
- Offline tests only; no live Resolve run was made for this release.
|
|
18
|
+
|
|
19
|
+
## What's New in v5.2.13 — Numeric project settings write as strings
|
|
20
|
+
|
|
21
|
+
From #380 by @boomesh11, fixing #377 reported by @willturner-maker.
|
|
22
|
+
|
|
23
|
+
### Fixed
|
|
24
|
+
|
|
25
|
+
- **`safe_set_project_settings` reported `write: false` for numeric values, with no reason.** Resolve's `Project.SetSetting` only accepts strings, so an int such as `timelineResolutionWidth: 3840` was refused while `"3840"` wrote fine. Values that aren't strings are now converted to strings before the write and before the restore, the same way the other `SetSetting` wrappers already did.
|
|
26
|
+
|
|
27
|
+
### Not verified here
|
|
28
|
+
|
|
29
|
+
- Offline tests only; no live Resolve run was made for this release.
|
|
30
|
+
|
|
5
31
|
## What's New in v5.2.12 — Lowercase CDL keys now reach Resolve
|
|
6
32
|
|
|
7
33
|
From #379 by @boomesh11, fixing #378 reported by @willturner-maker.
|
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
English | [简体中文](README.zh-CN.md) | [繁體中文](README.zh-TW.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) | 简体中文 | [繁體中文](README.zh-TW.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
|
-
> 本翻译对应 v5.2.
|
|
15
|
+
> 本翻译对应 v5.2.14 版 README。如与英文原版有出入,以 [英文原版](README.md) 为准。
|
|
16
16
|
|
|
17
17
|
一个 Model Context Protocol (MCP) 服务器,让 AI 助手通过官方脚本 API 控制 DaVinci Resolve Studio(达芬奇)。它提供完整的 API 覆盖,外加带护栏的工作流助手,涵盖剪辑、媒体池整理、渲染设置、审阅标记、调色、Fusion、Fairlight、项目生命周期任务、扩展开发,以及不碰源媒体的媒体分析。
|
|
18
18
|
|
package/README.zh-TW.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
[English](README.md) | [简体中文](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)](#伺服器模式)
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
[](https://www.python.org/downloads/)
|
|
13
13
|
[](https://opensource.org/licenses/MIT)
|
|
14
14
|
|
|
15
|
-
> 本翻譯對應 v5.2.
|
|
15
|
+
> 本翻譯對應 v5.2.14 版 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 = "5.2.
|
|
40
|
+
VERSION = "5.2.14"
|
|
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
|
@@ -94,7 +94,7 @@ if not logging.getLogger().handlers:
|
|
|
94
94
|
handlers=[logging.StreamHandler()],
|
|
95
95
|
)
|
|
96
96
|
|
|
97
|
-
VERSION = "5.2.
|
|
97
|
+
VERSION = "5.2.14"
|
|
98
98
|
logger = logging.getLogger("davinci-resolve-mcp")
|
|
99
99
|
logger.info(f"Starting DaVinci Resolve MCP Server v{VERSION}")
|
|
100
100
|
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 377-tool granular server instead
|
|
12
12
|
"""
|
|
13
13
|
|
|
14
|
-
VERSION = "5.2.
|
|
14
|
+
VERSION = "5.2.14"
|
|
15
15
|
|
|
16
16
|
import base64
|
|
17
17
|
import os
|
|
@@ -4603,7 +4603,10 @@ def _append_clip_info_from_timeline_item(
|
|
|
4603
4603
|
return None, _err(f"GetMediaPoolItem failed: {exc}")
|
|
4604
4604
|
if not mpi:
|
|
4605
4605
|
return None, _err(
|
|
4606
|
-
"Timeline item has no MediaPoolItem (generators / titles without pool media cannot
|
|
4606
|
+
"Timeline item has no MediaPoolItem (transitions / generators / titles / Fusion comps without pool media cannot be rebuilt)",
|
|
4607
|
+
code="NO_MEDIA_POOL_ITEM",
|
|
4608
|
+
category="unsupported",
|
|
4609
|
+
retryable=False,
|
|
4607
4610
|
)
|
|
4608
4611
|
try:
|
|
4609
4612
|
t_start = _frame_int(item.GetStart())
|
|
@@ -6578,7 +6581,7 @@ def _timeline_ripple_insert_impl(proj, tl, p: Dict[str, Any], *, resolve=None) -
|
|
|
6578
6581
|
if straddlers:
|
|
6579
6582
|
reasons.append(f"insert point cuts through {len(straddlers)} item(s) — choose an item boundary")
|
|
6580
6583
|
if blockers:
|
|
6581
|
-
reasons.append(f"{len(blockers)} later item(s) cannot be rebuilt (no pool media: titles/generators/Fusion comps)")
|
|
6584
|
+
reasons.append(f"{len(blockers)} later item(s) cannot be rebuilt (no pool media: transitions/titles/generators/Fusion comps)")
|
|
6582
6585
|
if subtitle_blockers:
|
|
6583
6586
|
reasons.append(f"{subtitle_blockers} subtitle item(s) after the insert point cannot be shifted via the API")
|
|
6584
6587
|
if locked_tracks:
|
|
@@ -6596,7 +6599,7 @@ def _timeline_ripple_insert_impl(proj, tl, p: Dict[str, Any], *, resolve=None) -
|
|
|
6596
6599
|
"category": "invalid_input",
|
|
6597
6600
|
"retryable": False,
|
|
6598
6601
|
"message": "; ".join(plan["infeasible_reasons"]),
|
|
6599
|
-
"remediation": "
|
|
6602
|
+
"remediation": "Resolve or remove the listed blockers (e.g. transitions, titles, generators, or locked tracks), then re-run.",
|
|
6600
6603
|
},
|
|
6601
6604
|
}
|
|
6602
6605
|
|
|
@@ -20990,8 +20993,9 @@ def _safe_set_project_settings(project, p: Dict[str, Any]) -> Dict[str, Any]:
|
|
|
20990
20993
|
results: Dict[str, Any] = {}
|
|
20991
20994
|
for key, value in settings.items():
|
|
20992
20995
|
row: Dict[str, Any] = {"requested": value, "original": original.get(key)}
|
|
20996
|
+
write_value = value if isinstance(value, str) else str(value)
|
|
20993
20997
|
try:
|
|
20994
|
-
row["write"] = bool(project.SetSetting(key,
|
|
20998
|
+
row["write"] = bool(project.SetSetting(key, write_value))
|
|
20995
20999
|
except Exception as exc:
|
|
20996
21000
|
row["write"] = False
|
|
20997
21001
|
row["error"] = str(exc)
|
|
@@ -21001,7 +21005,9 @@ def _safe_set_project_settings(project, p: Dict[str, Any]) -> Dict[str, Any]:
|
|
|
21001
21005
|
row["readback_error"] = str(exc)
|
|
21002
21006
|
if _coerce_bool(p.get("restore"), True) and not isinstance(original.get(key), dict):
|
|
21003
21007
|
try:
|
|
21004
|
-
|
|
21008
|
+
orig_val = original[key]
|
|
21009
|
+
restore_val = orig_val if isinstance(orig_val, str) else str(orig_val)
|
|
21010
|
+
row["restore"] = bool(project.SetSetting(key, restore_val))
|
|
21005
21011
|
row["restored_value"] = _ser(project.GetSetting(key))
|
|
21006
21012
|
except Exception as exc:
|
|
21007
21013
|
row["restore"] = False
|