davinci-resolve-mcp 5.2.1 → 5.2.3
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 +24 -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 +1 -1
- package/src/utils/api_truth.py +30 -20
- package/src/utils/captions.py +9 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,30 @@
|
|
|
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.3 — SetPosition and MoveItems take a position dict
|
|
6
|
+
|
|
7
|
+
From the re-measurement in #336 by @CaptRauti. No server behaviour changes.
|
|
8
|
+
|
|
9
|
+
### Changed
|
|
10
|
+
|
|
11
|
+
- **API truth ledger: `TimelineItem.SetPosition` / `Timeline.MoveItems`.** Both take a position dict, `{startFrame[, trackType, trackIndex]}`, not a bare frame number. On Studio 21.2.0.6 (Windows), `SetPosition({'startFrame': 86800})` returned True and moved the clip, while 100 and −50, below the timeline's `StartFrame`, returned False and left it in place. `trackType` and `trackIndex` are optional, and a float `startFrame` snapped to the whole frame. The bare-int form `SetPosition(86800)` returned False for every input, which reads exactly like a broken method; the entry now says so and recommends the dict.
|
|
12
|
+
|
|
13
|
+
### Not verified here
|
|
14
|
+
|
|
15
|
+
- The readings are the reporter's. This server calls neither method, and nothing was re-measured on this machine. Whether 21.1.2.10 accepts a correct in-range call is still not known.
|
|
16
|
+
|
|
17
|
+
## What's New in v5.2.2 — Long words in captions are no longer cut off
|
|
18
|
+
|
|
19
|
+
From #360 by @goranai.
|
|
20
|
+
|
|
21
|
+
### Fixed
|
|
22
|
+
|
|
23
|
+
- **`edit_engine` `generate_captions` dropped the end of any word too long for one caption line.** A URL was the usual case: everything after the first `max_chars_per_line` characters was missing from the SRT and WebVTT text. The word is now cut into line-length pieces and wrapped like other text, so nothing is dropped and every line stays within the character limit. The same fix covers one transcript word with an inner no-break space that did not fit `max_lines`.
|
|
24
|
+
|
|
25
|
+
### Changed
|
|
26
|
+
|
|
27
|
+
- A caption block that contains such a word can now have more lines than `max_lines` (an 85-character word gives three lines). The block keeps its original timing; captions never invent timings inside a word. Blocks without an over-long word are unchanged.
|
|
28
|
+
|
|
5
29
|
## What's New in v5.2.1 — Resolve 21.0.4 calls live-tested
|
|
6
30
|
|
|
7
31
|
From #359 by @Ghoul0718. The twelve Resolve 21.0.4 scripting additions were guarded and unit-tested but had never been run live here, for want of a 21.0.4 build. This release records a live run on free 21.0.4.5 through the in-app bridge. No server behaviour changes.
|
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
|
-
> 本翻译对应 v5.2.
|
|
15
|
+
> 本翻译对应 v5.2.3 版 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.3"
|
|
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 = "5.2.
|
|
96
|
+
VERSION = "5.2.3"
|
|
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
package/src/utils/api_truth.py
CHANGED
|
@@ -1870,29 +1870,39 @@ API_TRUTH: List[Dict[str, Any]] = [
|
|
|
1870
1870
|
{
|
|
1871
1871
|
"symbol": "TimelineItem.SetPosition / Timeline.MoveItems",
|
|
1872
1872
|
"object": "TimelineItem / Timeline",
|
|
1873
|
-
"signature": "SetPosition(
|
|
1873
|
+
"signature": "SetPosition({startFrame[, trackType, trackIndex]}) -> bool; "
|
|
1874
|
+
"MoveItems([items], {startFrame[, trackType, trackIndex]}) -> bool",
|
|
1874
1875
|
"reality": "WITHDRAWN. Re-measured by the reporter on Studio 21.2.0.6 "
|
|
1875
|
-
"(Windows) on
|
|
1876
|
-
"
|
|
1877
|
-
"
|
|
1878
|
-
"
|
|
1879
|
-
"
|
|
1880
|
-
"
|
|
1881
|
-
"
|
|
1882
|
-
"
|
|
1883
|
-
"
|
|
1884
|
-
"
|
|
1885
|
-
"
|
|
1886
|
-
"
|
|
1887
|
-
"
|
|
1888
|
-
"
|
|
1889
|
-
|
|
1890
|
-
|
|
1891
|
-
|
|
1892
|
-
|
|
1876
|
+
"(Windows) on timelines whose clips sat inside their own "
|
|
1877
|
+
"range (StartFrame 86400). Both methods take a position "
|
|
1878
|
+
"dict, not a bare frame number. With the dict, "
|
|
1879
|
+
"SetPosition({'startFrame': 86800}) returned True and moved "
|
|
1880
|
+
"the clip from 86400 to 86800, 86400 moved it back, and 100 "
|
|
1881
|
+
"and -50 (below StartFrame) returned False and left it in "
|
|
1882
|
+
"place. GetPosition() and GetStart() agreed each time. "
|
|
1883
|
+
"trackType and trackIndex are optional, and a float "
|
|
1884
|
+
"startFrame (86800.0, 86800.5) was accepted and snapped to "
|
|
1885
|
+
"the whole frame. MoveItems([clip], {'trackType': 'video', "
|
|
1886
|
+
"'trackIndex': 1, 'startFrame': 87000}) returned True and moved the clip to 87000. The bare-int "
|
|
1887
|
+
"form SetPosition(86800) returned False for every input, "
|
|
1888
|
+
"in range or not: a wrong argument shape, which reads "
|
|
1889
|
+
"exactly like a broken method. The earlier reading was on "
|
|
1890
|
+
"Studio 21.1.2.10: SetPosition returned False for 0, 100, "
|
|
1891
|
+
"and -50, and MoveItems was not callable. That run was on a "
|
|
1892
|
+
"timeline whose StartFrame and EndFrame were both 86400, no "
|
|
1893
|
+
"input was at or after 86400, and the reporter cannot say "
|
|
1894
|
+
"whether it passed a dict or a bare int, so that build's "
|
|
1895
|
+
"answer to a correct in-range call is not known. This "
|
|
1896
|
+
"server does not call either method. Not re-measured here.",
|
|
1897
|
+
"recommended": "Pass a dict, at least {'startFrame': frame}, with the "
|
|
1898
|
+
"frame at or after GetStartFrame(), and read GetStart() "
|
|
1899
|
+
"back. False from a bare int, or from a frame below "
|
|
1900
|
+
"StartFrame, is not evidence the method is broken. See "
|
|
1901
|
+
"the recordFrame entry for the placement that built the "
|
|
1902
|
+
"first timeline.",
|
|
1893
1903
|
"tags": ["timeline", "edit"],
|
|
1894
1904
|
"issue": 336,
|
|
1895
|
-
"verified_on": "Withdrawn on the reporter's re-measurement, Studio 21.2.0.6 (Windows); the 21.1.2.10 result was not repeated on a consistent timeline, and nothing was re-measured here",
|
|
1905
|
+
"verified_on": "Withdrawn on the reporter's re-measurement, Studio 21.2.0.6 (Windows), dict and bare-int forms; the 21.1.2.10 result was not repeated on a consistent timeline, and nothing was re-measured here",
|
|
1896
1906
|
},
|
|
1897
1907
|
{
|
|
1898
1908
|
"symbol": "TimelineItem.SetLeftOffset",
|
package/src/utils/captions.py
CHANGED
|
@@ -146,7 +146,15 @@ def build_blocks(
|
|
|
146
146
|
text = " ".join(_clean(w) for w in current)
|
|
147
147
|
lines = _wrap(text, max_chars_per_line, max_lines)
|
|
148
148
|
if lines is None:
|
|
149
|
-
|
|
149
|
+
# One word that will not fit: longer than the line cap (a URL,
|
|
150
|
+
# say) or more lines than max_lines. Split it into line-cap pieces
|
|
151
|
+
# rather than cutting it off.
|
|
152
|
+
pieces = [
|
|
153
|
+
token[i:i + max_chars_per_line]
|
|
154
|
+
for token in text.split()
|
|
155
|
+
for i in range(0, len(token), max_chars_per_line)
|
|
156
|
+
]
|
|
157
|
+
lines = _wrap(" ".join(pieces), max_chars_per_line, len(pieces))
|
|
150
158
|
blocks.append({
|
|
151
159
|
"start_seconds": _word_time(current[0], "start_seconds", "start"),
|
|
152
160
|
"end_seconds": (
|