davinci-resolve-mcp 4.15.0 → 4.15.2
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 +56 -0
- package/README.md +1 -1
- package/README.zh-CN.md +2 -2
- package/install.py +1 -1
- package/package.json +1 -1
- package/resolve-advanced/vendor/drp-format/timeline-markers-blob.js +12 -4
- package/scripts/install_resolve_bridge.py +3 -2
- package/src/granular/common.py +1 -1
- package/src/server.py +9 -3
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,62 @@
|
|
|
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.15.2 — Bridge installer and large marker blobs
|
|
6
|
+
|
|
7
|
+
Two contributor fixes.
|
|
8
|
+
|
|
9
|
+
### Fixed
|
|
10
|
+
|
|
11
|
+
- **The bridge installer no longer writes into Blackmagic Disk Speed Test's
|
|
12
|
+
sandbox container** (#315, thanks @gatezh). The macOS installer treats every
|
|
13
|
+
`com.blackmagic-design.*` container as a possible sandboxed Resolve and
|
|
14
|
+
excludes the known helpers by name, but Disk Speed Test was missing from
|
|
15
|
+
that list. The installer copied the bridge scripts and a copy of
|
|
16
|
+
`bridge.json`, auth token included, into a container Resolve never reads,
|
|
17
|
+
and the inflated canary count told users to expect 4 Scripts-menu entries
|
|
18
|
+
where Resolve shows 2. Files already written there are harmless apart from
|
|
19
|
+
the token copy and can be deleted by hand from
|
|
20
|
+
`~/Library/Containers/com.blackmagic-design.DiskSpeedTest/Data/Library/Application Support/`.
|
|
21
|
+
- **Marker blobs over 128 KiB are now valid zstd** (#313, thanks
|
|
22
|
+
@Dev-next-gen). `drt.assemble` wrote timeline and clip markers as one raw
|
|
23
|
+
zstd block. The format caps a block at 128 KiB, so past that size the
|
|
24
|
+
reference decoder rejected the frame, and past 2 MiB assemble threw. The
|
|
25
|
+
writer now splits the payload into blocks of at most 128 KiB. Output up to
|
|
26
|
+
128 KiB is byte-identical to before. The same writer also builds the bin
|
|
27
|
+
registry blob, which gets the same fix.
|
|
28
|
+
|
|
29
|
+
### Validation
|
|
30
|
+
|
|
31
|
+
- Each PR was tested with `main` merged in: the full Python suite for #315
|
|
32
|
+
(only the 4 known worktree path artifacts failed), and the advanced Node
|
|
33
|
+
suite from a fresh `npm ci` for #313 (1,202 tests, 0 failures).
|
|
34
|
+
- #313's frames checked against the reference `zstd` decoder: rejected above
|
|
35
|
+
128 KiB before the fix, accepted at every size up to 2.3 MB after it.
|
|
36
|
+
- How Resolve's own importer treats a marker blob over 128 KiB was not
|
|
37
|
+
measured. The fix makes the frames spec-valid; it is reported, not
|
|
38
|
+
live-verified.
|
|
39
|
+
|
|
40
|
+
## What's New in v4.15.1 — Frame captures arrive as images on Python 3.10
|
|
41
|
+
|
|
42
|
+
### Fixed
|
|
43
|
+
|
|
44
|
+
- **`timeline_frame` and `timeline_markers get_thumbnail_image` return their
|
|
45
|
+
image again on Python 3.10** (#314). Both tools are declared `-> Any`. On
|
|
46
|
+
Python 3.10, FastMCP inferred a `{"result": ...}` output schema from that
|
|
47
|
+
annotation and then failed to serialize the image, so every capture
|
|
48
|
+
succeeded in Resolve and reached the client as "Unable to serialize unknown
|
|
49
|
+
type". Python 3.11 and later infer no schema, which hid the bug from CI and
|
|
50
|
+
the direct-call unit tests. Both tools now opt out of structured output;
|
|
51
|
+
their dict results still arrive as JSON text. Reported by @jo-nike.
|
|
52
|
+
|
|
53
|
+
### Validation
|
|
54
|
+
|
|
55
|
+
- New `tests/test_image_tool_structured_output.py` calls both tools through
|
|
56
|
+
`mcp.call_tool`. One case imports the server with Python 3.10's schema
|
|
57
|
+
inference forced, so it fails without the fix on any Python.
|
|
58
|
+
- Full offline suite and release static checks. No Resolve scripting
|
|
59
|
+
behaviour changed; live Resolve test not required.
|
|
60
|
+
|
|
5
61
|
## What's New in v4.15.0 — Conform-session fixes, Python doctor, restart hint
|
|
6
62
|
|
|
7
63
|
Six gaps a real conform session hit on Resolve Studio 19.1.3.7, each measured
|
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.15.
|
|
15
|
+
> 本翻译对应 v4.15.2 版 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.15.
|
|
40
|
+
VERSION = "4.15.2"
|
|
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
|
@@ -65,7 +65,7 @@ function encodeMarkerEntry(m) {
|
|
|
65
65
|
return lenDelim(1, Buffer.concat([varField(1, m.frame), lenDelim(2, wrapped)]));
|
|
66
66
|
}
|
|
67
67
|
|
|
68
|
-
/** zstd single-segment frame
|
|
68
|
+
/** zstd single-segment frame of RAW blocks (no compression), 128 KiB per block at most. */
|
|
69
69
|
function zstdRawFrame(payload) {
|
|
70
70
|
const magic = Buffer.from([0x28, 0xb5, 0x2f, 0xfd]);
|
|
71
71
|
let header;
|
|
@@ -76,9 +76,17 @@ function zstdRawFrame(payload) {
|
|
|
76
76
|
header[0] = 0xa0; // single-segment, 4-byte FCS
|
|
77
77
|
header.writeUInt32LE(payload.length, 1);
|
|
78
78
|
}
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
79
|
+
// RFC 8878 caps every block at 128 KiB; libzstd rejects a larger raw block as corrupt.
|
|
80
|
+
const blocks = [];
|
|
81
|
+
let o = 0;
|
|
82
|
+
do {
|
|
83
|
+
const size = Math.min(payload.length - o, 128 * 1024);
|
|
84
|
+
const block = Buffer.alloc(3);
|
|
85
|
+
block.writeUIntLE((size << 3) | (o + size === payload.length ? 1 : 0), 0, 3); // type=raw
|
|
86
|
+
blocks.push(block, payload.subarray(o, o + size));
|
|
87
|
+
o += size;
|
|
88
|
+
} while (o < payload.length);
|
|
89
|
+
return Buffer.concat([magic, header, ...blocks]);
|
|
82
90
|
}
|
|
83
91
|
|
|
84
92
|
function zstdRawInflate(buf) {
|
|
@@ -80,8 +80,9 @@ _SANDBOX_MARKER = "com.blackmagic-design."
|
|
|
80
80
|
#: NOT used outside a sandbox: on a normal install this is genuinely Fusion's
|
|
81
81
|
#: own tree and has nothing to do with Resolve.
|
|
82
82
|
_SANDBOX_FALLBACK_SUFFIX = "Library/Application Support/Fusion/Scripts/Utility"
|
|
83
|
-
#: Containers that are not Resolve (RAW Player, Speed Test,
|
|
84
|
-
|
|
83
|
+
#: Containers that are not Resolve (RAW Player, RAW Speed Test, Disk Speed Test,
|
|
84
|
+
#: the IO XPC helper).
|
|
85
|
+
_NON_RESOLVE_CONTAINERS = ("BlackmagicRaw", "DiskSpeedTest", "IOXPC")
|
|
85
86
|
|
|
86
87
|
#: Windows Scripts/Utility trees, per Blackmagic's own README
|
|
87
88
|
#: (docs/reference/resolve_scripting_api.txt, "Specific user"/"All users").
|
package/src/granular/common.py
CHANGED
|
@@ -91,7 +91,7 @@ if not logging.getLogger().handlers:
|
|
|
91
91
|
handlers=[logging.StreamHandler()],
|
|
92
92
|
)
|
|
93
93
|
|
|
94
|
-
VERSION = "4.15.
|
|
94
|
+
VERSION = "4.15.2"
|
|
95
95
|
logger = logging.getLogger("davinci-resolve-mcp")
|
|
96
96
|
logger.info(f"Starting DaVinci Resolve MCP Server v{VERSION}")
|
|
97
97
|
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.15.
|
|
14
|
+
VERSION = "4.15.2"
|
|
15
15
|
|
|
16
16
|
import base64
|
|
17
17
|
import os
|
|
@@ -28116,7 +28116,10 @@ def timeline(action: str, params: Optional[Dict[str, Any]] = None) -> Dict[str,
|
|
|
28116
28116
|
# TOOL 16: timeline_markers
|
|
28117
28117
|
# ═══════════════════════════════════════════════════════════════════════════════
|
|
28118
28118
|
|
|
28119
|
-
|
|
28119
|
+
# structured_output=False: these tools return an MCP Image. On Python 3.10 FastMCP
|
|
28120
|
+
# infers a {"result": ...} schema from `-> Any` and fails to serialize the Image
|
|
28121
|
+
# (issue #314); 3.11+ infers none, which hides the bug.
|
|
28122
|
+
@mcp.tool(structured_output=False)
|
|
28120
28123
|
@_guard_missing_params
|
|
28121
28124
|
@_destructive_op("timeline_markers")
|
|
28122
28125
|
def timeline_markers(action: str, params: Optional[Dict[str, Any]] = None) -> Any:
|
|
@@ -28265,7 +28268,10 @@ def timeline_markers(action: str, params: Optional[Dict[str, Any]] = None) -> An
|
|
|
28265
28268
|
# TOOL 17: timeline_frame
|
|
28266
28269
|
# ═══════════════════════════════════════════════════════════════════════════════
|
|
28267
28270
|
|
|
28268
|
-
|
|
28271
|
+
# structured_output=False: these tools return an MCP Image. On Python 3.10 FastMCP
|
|
28272
|
+
# infers a {"result": ...} schema from `-> Any` and fails to serialize the Image
|
|
28273
|
+
# (issue #314); 3.11+ infers none, which hides the bug.
|
|
28274
|
+
@mcp.tool(structured_output=False)
|
|
28269
28275
|
@_guard_missing_params
|
|
28270
28276
|
def timeline_frame(action: str, params: Optional[Dict[str, Any]] = None) -> Any:
|
|
28271
28277
|
"""See what Resolve is rendering — capture a timeline frame as a viewable image.
|