davinci-resolve-mcp 4.8.17 → 4.8.18

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,23 @@
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.18 — `copy_clip_annotations` honours `include_*="false"`
6
+
7
+ ### Fixed
8
+
9
+ - **`copy_clip_annotations` read `include_markers`, `include_flags`, and
10
+ `include_clip_color` with bare truthiness.** ([#268](https://github.com/samuelgursky/davinci-resolve-mcp/pull/268), @Dev-next-gen)
11
+ A caller sending `include_flags="false"` (or `"no"`, `"0"`, `"off"`) still had the
12
+ flags copied onto every target clip. All three now go through `_coerce_bool` with a
13
+ default of `True`. Guard test: five false spellings per parameter (ten subtests
14
+ failing on the previous code), plus an omitted-copies-everything check.
15
+ - **The same reads at the twin sites.** The timeline `copy_annotations` /
16
+ `move_annotations` path read `include_flags` and `include_clip_color` the same way,
17
+ and `_timeline_conform_snapshot` wrapped `include_markers` and
18
+ `include_clip_properties` in `bool()`, which also turns `"false"` into `True`. Both
19
+ now coerce. Guard test `tests/test_include_flag_coercion.py`: fifteen subtests
20
+ failing on the previous code, plus omitted-flag positive checks.
21
+
5
22
  ## What's New in v4.8.17 — `dry_run="false"` runs the real operation
6
23
 
7
24
  ### 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.17-blue.svg)](https://github.com/samuelgursky/davinci-resolve-mcp/releases)
5
+ [![Version](https://img.shields.io/badge/version-4.8.18-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.17-blue.svg)](https://github.com/samuelgursky/davinci-resolve-mcp/releases)
5
+ [![Version](https://img.shields.io/badge/version-4.8.18-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.17 版 README。如与英文原版有出入,以 [英文原版](README.md) 为准。
15
+ > 本翻译对应 v4.8.18 版 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.17"
40
+ VERSION = "4.8.18"
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.17",
3
+ "version": "4.8.18",
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.17"
96
+ VERSION = "4.8.18"
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.8.17"
14
+ VERSION = "4.8.18"
15
15
 
16
16
  import base64
17
17
  import os
@@ -2584,11 +2584,11 @@ def _copy_annotations(tl, p: Dict[str, Any], *, move: bool = False):
2584
2584
  copied += 1
2585
2585
  else:
2586
2586
  warnings.append({"frame": frame, "result": result})
2587
- if p.get("include_flags", True) and _has_method(source, "GetFlagList") and _has_method(target, "AddFlag"):
2587
+ if _coerce_bool(p.get("include_flags"), True) and _has_method(source, "GetFlagList") and _has_method(target, "AddFlag"):
2588
2588
  for flag in source.GetFlagList() or []:
2589
2589
  if not target.AddFlag(flag):
2590
2590
  warnings.append({"flag": flag, "result": "AddFlag returned false"})
2591
- if p.get("include_clip_color", True) and _has_method(source, "GetClipColor") and _has_method(target, "SetClipColor"):
2591
+ if _coerce_bool(p.get("include_clip_color"), True) and _has_method(source, "GetClipColor") and _has_method(target, "SetClipColor"):
2592
2592
  color = source.GetClipColor()
2593
2593
  if color and not target.SetClipColor(color):
2594
2594
  warnings.append({"clip_color": color, "result": "SetClipColor returned false"})
@@ -6262,8 +6262,8 @@ def _timeline_item_conform_summary(item, track_type: str, track_index: int, item
6262
6262
 
6263
6263
  def _timeline_conform_snapshot(tl, p: Optional[Dict[str, Any]] = None):
6264
6264
  p = p or {}
6265
- include_markers = bool(p.get("include_markers", True))
6266
- include_clip_properties = bool(p.get("include_clip_properties", False))
6265
+ include_markers = _coerce_bool(p.get("include_markers"), True)
6266
+ include_clip_properties = _coerce_bool(p.get("include_clip_properties"), False)
6267
6267
  track_types = p.get("track_types") or ["video", "audio", "subtitle"]
6268
6268
  if not isinstance(track_types, list):
6269
6269
  return _err("track_types must be a list")
@@ -6477,7 +6477,7 @@ def _timeline_story_spine_report(tl, p: Dict[str, Any]) -> Dict[str, Any]:
6477
6477
  snapshot = _timeline_conform_snapshot(tl, {
6478
6478
  "track_types": p.get("track_types") or ["video", "audio", "subtitle"],
6479
6479
  "include_markers": True,
6480
- "include_clip_properties": bool(p.get("include_clip_properties", False)),
6480
+ "include_clip_properties": _coerce_bool(p.get("include_clip_properties"), False),
6481
6481
  })
6482
6482
  if isinstance(snapshot, dict) and snapshot.get("error"):
6483
6483
  return snapshot
@@ -14657,9 +14657,9 @@ def _copy_clip_annotations(root, p: Dict[str, Any]):
14657
14657
  markers = source.GetMarkers() or {}
14658
14658
  flags = source.GetFlagList() or []
14659
14659
  color = source.GetClipColor()
14660
- include_markers = p.get("include_markers", True)
14661
- include_flags = p.get("include_flags", True)
14662
- include_color = p.get("include_clip_color", True)
14660
+ include_markers = _coerce_bool(p.get("include_markers"), True)
14661
+ include_flags = _coerce_bool(p.get("include_flags"), True)
14662
+ include_color = _coerce_bool(p.get("include_clip_color"), True)
14663
14663
  results = []
14664
14664
  for target_id in target_ids:
14665
14665
  target = _find_clip(root, str(target_id))