davinci-resolve-mcp 4.6.0 → 4.6.1
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 +16 -0
- package/README.md +1 -1
- package/README.zh-CN.md +2 -2
- package/install.py +1 -1
- package/package.json +1 -1
- package/src/granular/common.py +1 -1
- package/src/server.py +9 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,22 @@
|
|
|
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 v4.6.1 — copy_grades refuses an all-missing target set before spending a confirmation
|
|
6
|
+
|
|
7
|
+
### Fixed
|
|
8
|
+
|
|
9
|
+
- **Raw `timeline_item_color` `copy_grades` could issue a confirmation token for a call
|
|
10
|
+
that would run `CopyGrades([])`.** ([#234](https://github.com/samuelgursky/davinci-resolve-mcp/pull/234), @Rohitkanithi)
|
|
11
|
+
When every `target_ids` value failed to resolve on the current timeline, the tool
|
|
12
|
+
still walked into the confirmation flow, so the caller confirmed a destructive-looking
|
|
13
|
+
operation that had no valid target and then spent the round trip on a no-op. It now
|
|
14
|
+
returns a structured `NO_COPY_GRADE_TARGETS` (`invalid_input`) error carrying the
|
|
15
|
+
missing ids, before any token is issued and without calling Resolve. Mixed sets are
|
|
16
|
+
unchanged: resolved targets preview, and missing ids are still reported in the
|
|
17
|
+
preview. The granular `ti_copy_grades` already refused this case through its
|
|
18
|
+
non-empty and in-range index checks, so the class was confined to the compound
|
|
19
|
+
server. Guard test in `tests/test_copy_grades_confirmation.py`.
|
|
20
|
+
|
|
5
21
|
## What's New in v4.6.0 — a default project archive no longer crashes Resolve 21.1
|
|
6
22
|
|
|
7
23
|
The archive coverage measured by @legionsound in [#233](https://github.com/samuelgursky/davinci-resolve-mcp/pull/233), plus the offline node-graph relayout work that was sitting unreleased on `main`.
|
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
|
-
> 本翻译对应 v4.6.
|
|
15
|
+
> 本翻译对应 v4.6.1 版 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 = "4.6.
|
|
40
|
+
VERSION = "4.6.1"
|
|
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
|
@@ -93,7 +93,7 @@ if not logging.getLogger().handlers:
|
|
|
93
93
|
handlers=[logging.StreamHandler()],
|
|
94
94
|
)
|
|
95
95
|
|
|
96
|
-
VERSION = "4.6.
|
|
96
|
+
VERSION = "4.6.1"
|
|
97
97
|
logger = logging.getLogger("davinci-resolve-mcp")
|
|
98
98
|
logger.info(f"Starting DaVinci Resolve MCP Server v{VERSION}")
|
|
99
99
|
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 = "4.6.
|
|
14
|
+
VERSION = "4.6.1"
|
|
15
15
|
|
|
16
16
|
import base64
|
|
17
17
|
import os
|
|
@@ -28701,6 +28701,14 @@ def timeline_item_color(action: str, params: Optional[Dict[str, Any]] = None) ->
|
|
|
28701
28701
|
targets, missing = _timeline_items_for_grade_copy(tl, target_ids)
|
|
28702
28702
|
else:
|
|
28703
28703
|
targets, missing = [], sorted(set(target_ids or []))
|
|
28704
|
+
if not targets:
|
|
28705
|
+
return _err(
|
|
28706
|
+
"copy_grades resolved no target items; nothing would be copied.",
|
|
28707
|
+
code="NO_COPY_GRADE_TARGETS",
|
|
28708
|
+
category="invalid_input",
|
|
28709
|
+
remediation="Pass at least one target_ids value that exists on the current timeline.",
|
|
28710
|
+
state={"target_ids": list(target_ids or []), "missing": missing},
|
|
28711
|
+
)
|
|
28704
28712
|
if "confirm_token" not in p and "confirmToken" not in p and _confirm_token_required():
|
|
28705
28713
|
preview = {
|
|
28706
28714
|
"operation": "timeline_item_color.copy_grades",
|