davinci-resolve-mcp 4.8.20 → 4.8.21
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 +29 -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/granular/timeline.py +1 -1
- package/src/server.py +1 -1
- package/src/utils/api_truth.py +24 -0
- package/src/utils/project_properties.py +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,35 @@
|
|
|
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.8.21 — timeline duration no longer overcounts by one frame
|
|
6
|
+
|
|
7
|
+
### Fixed
|
|
8
|
+
|
|
9
|
+
- **Two timeline-duration readers reported one frame too many.** ([#269](https://github.com/samuelgursky/davinci-resolve-mcp/pull/269), @Dev-next-gen)
|
|
10
|
+
The granular `get_current_timeline` and `get_project_info`'s per-timeline
|
|
11
|
+
`duration` computed `GetEndFrame() - GetStartFrame() + 1`, while the compound
|
|
12
|
+
server, `brain_edits` and `render_stress` all use `GetEndFrame() - GetStartFrame()`
|
|
13
|
+
for the same timeline. `GetEndFrame()` is one past the last frame, so the `+ 1`
|
|
14
|
+
counted a frame that does not exist: a 600-frame timeline read back as 601. Both
|
|
15
|
+
readers now agree with the rest of the server.
|
|
16
|
+
|
|
17
|
+
### Documentation
|
|
18
|
+
|
|
19
|
+
- **`api_truth` records `Timeline.GetEndFrame` as an exclusive bound.** Measured
|
|
20
|
+
live on Studio 19.1.3.7 while reviewing #269: a timeline whose only full-length
|
|
21
|
+
item is a 32742-frame clip reads start 0 / end 32742, and the item's
|
|
22
|
+
`GetEnd()` is also 32742. The entry sits beside the existing
|
|
23
|
+
`AppendToTimeline clipInfo endFrame` entry, which documents the same half-open
|
|
24
|
+
convention on the write side, so the frame-count rule is now findable from
|
|
25
|
+
either direction.
|
|
26
|
+
|
|
27
|
+
### Tests
|
|
28
|
+
|
|
29
|
+
- `tests/test_timeline_duration.py` (from the PR): both readers return
|
|
30
|
+
`end - start` for a stubbed 86400..87000 timeline; fails on v4.8.20 with 601.
|
|
31
|
+
- `tests/test_api_truth.py`: the new ledger entry is findable by `GetEndFrame`,
|
|
32
|
+
carries the `off-by-one` tag, and states the `end - start` rule.
|
|
33
|
+
|
|
5
34
|
## What's New in v4.8.20 — every boolean param honours `"false"`
|
|
6
35
|
|
|
7
36
|
### Fixed
|
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.8.
|
|
15
|
+
> 本翻译对应 v4.8.21 版 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.8.
|
|
40
|
+
VERSION = "4.8.21"
|
|
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.8.
|
|
96
|
+
VERSION = "4.8.21"
|
|
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/granular/timeline.py
CHANGED
|
@@ -65,7 +65,7 @@ def get_current_timeline() -> Dict[str, Any]:
|
|
|
65
65
|
"width": current_timeline.GetSetting("timelineResolutionWidth"),
|
|
66
66
|
"height": current_timeline.GetSetting("timelineResolutionHeight")
|
|
67
67
|
},
|
|
68
|
-
"duration": current_timeline.GetEndFrame() - current_timeline.GetStartFrame()
|
|
68
|
+
"duration": current_timeline.GetEndFrame() - current_timeline.GetStartFrame()
|
|
69
69
|
}
|
|
70
70
|
|
|
71
71
|
return result
|
package/src/server.py
CHANGED
package/src/utils/api_truth.py
CHANGED
|
@@ -2005,6 +2005,30 @@ API_TRUTH: List[Dict[str, Any]] = [
|
|
|
2005
2005
|
"when mirroring keep-ranges into clipInfos.",
|
|
2006
2006
|
"tags": ["timeline", "edit", "off-by-one", "readback"],
|
|
2007
2007
|
},
|
|
2008
|
+
{
|
|
2009
|
+
"symbol": "Timeline.GetEndFrame (exclusive bound)",
|
|
2010
|
+
"object": "Timeline",
|
|
2011
|
+
"signature": "() -> int",
|
|
2012
|
+
"reality": "GetEndFrame() is an EXCLUSIVE bound, one past the last "
|
|
2013
|
+
"frame: a timeline's frame count is "
|
|
2014
|
+
"GetEndFrame() - GetStartFrame(), not that plus one. "
|
|
2015
|
+
"Measured live on Studio 19.1.3.7 (2026-09-26): a "
|
|
2016
|
+
"timeline whose only full-length item is a 32742-frame "
|
|
2017
|
+
"clip (media-pool 'Frames' 32742, 'End' 32741) reads "
|
|
2018
|
+
"GetStartFrame() 0 / GetEndFrame() 32742, and that item's "
|
|
2019
|
+
"TimelineItem.GetEnd() is also 32742 - the same half-open "
|
|
2020
|
+
"convention as clipInfo endFrame above. Until v4.8.21 two "
|
|
2021
|
+
"readers here (granular get_current_timeline and "
|
|
2022
|
+
"get_project_info's per-timeline duration) added 1 and "
|
|
2023
|
+
"reported 601 frames for a 600-frame timeline while every "
|
|
2024
|
+
"other duration path in the server did not (PR #269).",
|
|
2025
|
+
"recommended": "duration_frames = GetEndFrame() - GetStartFrame(). "
|
|
2026
|
+
"The last frame index is GetEndFrame() - 1. Apply the "
|
|
2027
|
+
"same rule to TimelineItem.GetEnd(): an item occupies "
|
|
2028
|
+
"[GetStart(), GetEnd()).",
|
|
2029
|
+
"tags": ["timeline", "off-by-one", "readback", "duration"],
|
|
2030
|
+
"verified_on": "DaVinci Resolve Studio 19.1.3.7",
|
|
2031
|
+
},
|
|
2008
2032
|
{
|
|
2009
2033
|
"symbol": "MediaPool.ImportTimelineFromFile (internal sequence name overrides timelineName)",
|
|
2010
2034
|
"object": "MediaPool",
|
|
@@ -592,7 +592,7 @@ def get_project_info(project_obj) -> Dict[str, Any]:
|
|
|
592
592
|
timeline_info = {
|
|
593
593
|
"name": timeline.GetName(),
|
|
594
594
|
"isCurrent": timeline.GetName() == current_timeline_name,
|
|
595
|
-
"duration": timeline.GetEndFrame() - timeline.GetStartFrame()
|
|
595
|
+
"duration": timeline.GetEndFrame() - timeline.GetStartFrame()
|
|
596
596
|
}
|
|
597
597
|
project_info["timelines"].append(timeline_info)
|
|
598
598
|
|