davinci-resolve-mcp 4.8.28 → 4.8.30

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,67 @@
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.30 — conform_lint reports every reuse of one source
6
+
7
+ ### Fixed
8
+
9
+ - **`editorial(action="conform_lint")` reported only the first reuse when
10
+ several pulls came from inside one long pull.** `check_duplicate_usage`
11
+ sorted each source's pulls by in-point and compared each one only with the
12
+ pull just before it. A long take followed by short callbacks lifted from
13
+ inside it therefore compared the second callback against the first, which
14
+ it does not overlap, and the reuse of the long take went unreported from
15
+ then on. An interview used at 0–5000 with callbacks at 100–200 and 300–400
16
+ reported one reuse instead of two. Each pull is now compared with the
17
+ earlier pull that reaches furthest, so every pull that overlaps any earlier
18
+ pull is flagged. Where out-points already increase that is the previous
19
+ pull, so ordinary material is reported exactly as before; adjacent pulls
20
+ are still two shots, not a duplicate. Contributed by @Dev-next-gen (#276).
21
+
22
+ ### Tests
23
+
24
+ - `tests/test_conform_lint.py` gains `DuplicateUsageTests`, the check's first
25
+ tests: adjacent pulls stay unreported, and every callback inside one long
26
+ pull is reported. The second fails on v4.8.29 with the
27
+ `INTERVIEW`/`CALLBACK 2` pair missing.
28
+
29
+ ### Validation
30
+
31
+ - `lint_timeline` is a pure function over a timeline snapshot; no Resolve
32
+ scripting call changed, so no live run was required.
33
+
34
+ ## What's New in v4.8.29 — optional granular arguments accept an explicit null
35
+
36
+ ### Fixed
37
+
38
+ - **Sixteen optional arguments on nine granular tools rejected `null`.**
39
+ They were annotated `str` / `float` / `bool` / `int` with a `None`
40
+ default, so the generated schema advertised `"default": null` on a field
41
+ whose type excluded null. Clients that fill every optional argument with
42
+ its advertised default sent `null`, and the call failed argument
43
+ validation before the tool ran. Affected: `create_project`
44
+ (`media_location_path`), `set_color_space_tool` (`gamma`),
45
+ `import_layout_preset_tool` and `import_user_preferences_preset`
46
+ (`preset_name`), `set_timeline_item_composite` (`composite_mode`,
47
+ `opacity`), `set_timeline_item_retime` (`speed`, `process`),
48
+ `set_timeline_item_stabilization` (`enabled`, `method`, `strength`),
49
+ `set_timeline_item_audio` (`volume`, `pan`, `eq_enabled`) and
50
+ `modify_keyframe` (`new_value`, `new_frame`). They are now `Optional[T]`;
51
+ callers that omit them see no change. Only the granular server (`--full`)
52
+ was affected. Contributed by @vishalhabib99 (#274).
53
+
54
+ ### Tests
55
+
56
+ - `tests/test_tool_schema_null_defaults.py` (new) lists every tool on the
57
+ compound and granular servers offline and fails on any argument whose
58
+ default is null but whose schema rejects null. On v4.8.28 it names all
59
+ sixteen.
60
+
61
+ ### Validation
62
+
63
+ - Schema-only change; no Resolve scripting call changed, so no live run was
64
+ required.
65
+
5
66
  ## What's New in v4.8.28 — ffmpeg can no longer hang on the protocol stream; a cancelled call no longer kills the server
6
67
 
7
68
  ### 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.28-blue.svg)](https://github.com/samuelgursky/davinci-resolve-mcp/releases)
5
+ [![Version](https://img.shields.io/badge/version-4.8.30-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.28-blue.svg)](https://github.com/samuelgursky/davinci-resolve-mcp/releases)
5
+ [![Version](https://img.shields.io/badge/version-4.8.30-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.28 版 README。如与英文原版有出入,以 [英文原版](README.md) 为准。
15
+ > 本翻译对应 v4.8.30 版 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.28"
40
+ VERSION = "4.8.30"
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.28",
3
+ "version": "4.8.30",
4
4
  "description": "NPM bootstrapper for the DaVinci Resolve MCP Server.",
5
5
  "license": "MIT",
6
6
  "author": "Samuel Gursky <samgursky@gmail.com>",
@@ -91,7 +91,7 @@ if not logging.getLogger().handlers:
91
91
  handlers=[logging.StreamHandler()],
92
92
  )
93
93
 
94
- VERSION = "4.8.28"
94
+ VERSION = "4.8.30"
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()}")
@@ -140,7 +140,7 @@ def open_project(name: str) -> str:
140
140
 
141
141
 
142
142
  @mcp.tool()
143
- def create_project(name: str, media_location_path: str = None) -> str:
143
+ def create_project(name: str, media_location_path: Optional[str] = None) -> str:
144
144
  """Create a new project with the given name.
145
145
 
146
146
  Args:
@@ -728,7 +728,7 @@ def set_color_science_mode_tool(mode: str) -> str:
728
728
 
729
729
  @mcp.tool()
730
730
  @granular_destructive_op()
731
- def set_color_space_tool(color_space: str, gamma: str = None) -> str:
731
+ def set_color_space_tool(color_space: str, gamma: Optional[str] = None) -> str:
732
732
  """Set timeline color space and gamma.
733
733
 
734
734
  Args:
@@ -262,7 +262,7 @@ def export_layout_preset_tool(preset_name: str, export_path: str) -> Dict[str, A
262
262
 
263
263
 
264
264
  @mcp.tool()
265
- def import_layout_preset_tool(import_path: str, preset_name: str = None) -> Dict[str, Any]:
265
+ def import_layout_preset_tool(import_path: str, preset_name: Optional[str] = None) -> Dict[str, Any]:
266
266
  """Import a layout preset from a file.
267
267
 
268
268
  Calls Resolve.ImportLayoutPreset() to import a preset from disk.
@@ -701,7 +701,7 @@ def delete_user_preferences_preset(preset_name: str) -> Dict[str, Any]:
701
701
 
702
702
 
703
703
  @mcp.tool()
704
- def import_user_preferences_preset(import_path: str, preset_name: str = None) -> Dict[str, Any]:
704
+ def import_user_preferences_preset(import_path: str, preset_name: Optional[str] = None) -> Dict[str, Any]:
705
705
  """Import a user-preferences preset from a file (Resolve 21.0.4+).
706
706
 
707
707
  The imported preset is NOT auto-loaded; it takes its name from the file
@@ -358,8 +358,8 @@ def set_timeline_item_crop(timeline_item_id: str,
358
358
  @mcp.tool()
359
359
  @granular_destructive_op()
360
360
  def set_timeline_item_composite(timeline_item_id: str,
361
- composite_mode: str = None,
362
- opacity: float = None) -> str:
361
+ composite_mode: Optional[str] = None,
362
+ opacity: Optional[float] = None) -> str:
363
363
  """Set composite properties for a timeline item.
364
364
 
365
365
  Args:
@@ -446,8 +446,8 @@ def set_timeline_item_composite(timeline_item_id: str,
446
446
  @mcp.tool()
447
447
  @granular_destructive_op()
448
448
  def set_timeline_item_retime(timeline_item_id: str,
449
- speed: float = None,
450
- process: str = None) -> str:
449
+ speed: Optional[float] = None,
450
+ process: Optional[str] = None) -> str:
451
451
  """Set retiming properties for a timeline item.
452
452
 
453
453
  Args:
@@ -525,9 +525,9 @@ def set_timeline_item_retime(timeline_item_id: str,
525
525
  @mcp.tool()
526
526
  @granular_destructive_op()
527
527
  def set_timeline_item_stabilization(timeline_item_id: str,
528
- enabled: bool = None,
529
- method: str = None,
530
- strength: float = None) -> str:
528
+ enabled: Optional[bool] = None,
529
+ method: Optional[str] = None,
530
+ strength: Optional[float] = None) -> str:
531
531
  """Set stabilization properties for a timeline item.
532
532
 
533
533
  Args:
@@ -617,9 +617,9 @@ def set_timeline_item_stabilization(timeline_item_id: str,
617
617
  @mcp.tool()
618
618
  @granular_destructive_op()
619
619
  def set_timeline_item_audio(timeline_item_id: str,
620
- volume: float = None,
621
- pan: float = None,
622
- eq_enabled: bool = None) -> str:
620
+ volume: Optional[float] = None,
621
+ pan: Optional[float] = None,
622
+ eq_enabled: Optional[bool] = None) -> str:
623
623
  """Set audio properties for a timeline item.
624
624
 
625
625
  Args:
@@ -947,7 +947,7 @@ def add_keyframe(timeline_item_id: str, property_name: str, frame: int, value: f
947
947
 
948
948
 
949
949
  @mcp.tool()
950
- def modify_keyframe(timeline_item_id: str, property_name: str, frame: int, new_value: float = None, new_frame: int = None) -> str:
950
+ def modify_keyframe(timeline_item_id: str, property_name: str, frame: int, new_value: Optional[float] = None, new_frame: Optional[int] = None) -> str:
951
951
  """Modify an existing keyframe by changing its value or frame position.
952
952
 
953
953
  Args:
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.28"
14
+ VERSION = "4.8.30"
15
15
 
16
16
  import base64
17
17
  import os
@@ -337,7 +337,17 @@ def check_duplicate_usage(items: Sequence[Mapping[str, Any]]) -> List[Dict[str,
337
337
  length = int(entry["timeline_end_frame"]) - int(entry["timeline_start_frame"])
338
338
  spans.append((start, start + max(0, length), _name(entry)))
339
339
  spans.sort()
340
- for (a_start, a_end, a_name), (b_start, b_end, b_name) in zip(spans, spans[1:]):
340
+ # Each pull is compared against the furthest-reaching EARLIER pull, not
341
+ # against its immediate predecessor. Sorted by source in-point, one long
342
+ # pull is followed by every short callback lifted from inside it, so
343
+ # `spans[i - 1]` is the previous CALLBACK — which the next callback need
344
+ # not overlap — and the reuse of the long pull went unreported from the
345
+ # second callback onward. Where the out-points already increase the
346
+ # furthest pull *is* the predecessor, so ordinary material is unchanged.
347
+ furthest = spans[0]
348
+ for current in spans[1:]:
349
+ b_start, b_end, b_name = current
350
+ a_start, a_end, a_name = furthest
341
351
  if b_start < a_end:
342
352
  dupes.append({
343
353
  "source": str(ref),
@@ -345,6 +355,8 @@ def check_duplicate_usage(items: Sequence[Mapping[str, Any]]) -> List[Dict[str,
345
355
  "second": b_name,
346
356
  "overlap_frames": min(a_end, b_end) - b_start,
347
357
  })
358
+ if b_end > a_end:
359
+ furthest = current
348
360
  if not dupes:
349
361
  return []
350
362
  return [_finding(