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 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
- [![Version](https://img.shields.io/badge/version-4.8.20-blue.svg)](https://github.com/samuelgursky/davinci-resolve-mcp/releases)
5
+ [![Version](https://img.shields.io/badge/version-4.8.21-blue.svg)](https://github.com/samuelgursky/davinci-resolve-mcp/releases)
6
6
  [![npm](https://img.shields.io/npm/v/davinci-resolve-mcp.svg?label=npm&color=CB3837)](https://www.npmjs.com/package/davinci-resolve-mcp)
7
7
  [![API Coverage](https://img.shields.io/badge/API%20Coverage-100%25-brightgreen.svg)](docs/reference/api-coverage.md)
8
8
  [![Tools](https://img.shields.io/badge/MCP%20Tools-37%20(389%20full)-blue.svg)](#server-modes)
package/README.zh-CN.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  [English](README.md) | 简体中文
4
4
 
5
- [![Version](https://img.shields.io/badge/version-4.8.20-blue.svg)](https://github.com/samuelgursky/davinci-resolve-mcp/releases)
5
+ [![Version](https://img.shields.io/badge/version-4.8.21-blue.svg)](https://github.com/samuelgursky/davinci-resolve-mcp/releases)
6
6
  [![npm](https://img.shields.io/npm/v/davinci-resolve-mcp.svg?label=npm&color=CB3837)](https://www.npmjs.com/package/davinci-resolve-mcp)
7
7
  [![API Coverage](https://img.shields.io/badge/API%20Coverage-100%25-brightgreen.svg)](docs/reference/api-coverage.md)
8
8
  [![Tools](https://img.shields.io/badge/MCP%20Tools-37%20(389%20full)-blue.svg)](#服务器模式)
@@ -12,7 +12,7 @@
12
12
  [![Python](https://img.shields.io/badge/python-3.10+-green.svg)](https://www.python.org/downloads/)
13
13
  [![License](https://img.shields.io/badge/license-MIT-blue.svg)](https://opensource.org/licenses/MIT)
14
14
 
15
- > 本翻译对应 v4.8.20 版 README。如与英文原版有出入,以 [英文原版](README.md) 为准。
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.20"
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "davinci-resolve-mcp",
3
- "version": "4.8.20",
3
+ "version": "4.8.21",
4
4
  "description": "NPM bootstrapper for the DaVinci Resolve MCP Server.",
5
5
  "license": "MIT",
6
6
  "author": "Samuel Gursky <samgursky@gmail.com>",
@@ -93,7 +93,7 @@ if not logging.getLogger().handlers:
93
93
  handlers=[logging.StreamHandler()],
94
94
  )
95
95
 
96
- VERSION = "4.8.20"
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()}")
@@ -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() + 1
68
+ "duration": current_timeline.GetEndFrame() - current_timeline.GetStartFrame()
69
69
  }
70
70
 
71
71
  return result
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.8.20"
14
+ VERSION = "4.8.21"
15
15
 
16
16
  import base64
17
17
  import os
@@ -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() + 1
595
+ "duration": timeline.GetEndFrame() - timeline.GetStartFrame()
596
596
  }
597
597
  project_info["timelines"].append(timeline_info)
598
598