davinci-resolve-mcp 4.6.0 → 4.6.2

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,37 @@
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.6.2 — the granular server's macOS temp-path redirect matches the compound server's
6
+
7
+ ### Fixed
8
+
9
+ - **`_resolve_safe_dir` had two copies that disagreed on macOS.** ([#235](https://github.com/samuelgursky/davinci-resolve-mcp/pull/235), @Dev-next-gen)
10
+ The compound server redirects `/tmp`, `/tmp/...`, `/private/tmp` and `/private/tmp/...`
11
+ to `~/Documents/resolve-stills`, because Resolve's exporters fail silently into them
12
+ (live-verified 2026-07-03); the granular copy only knew `/var/` and `/private/var/`.
13
+ Two granular tools reach it with a `/tmp` path: `save_project`'s export fallback
14
+ stages in `tempfile.gettempdir()`, which is `/tmp` when `TMPDIR` is unset, and
15
+ `encrypt_dctl` resolves its output folder, so `/tmp` arrives as `/private/tmp`. The
16
+ granular helper now carries the same Darwin condition, and
17
+ `tests/test_granular_safe_dir.py` asserts both copies agree on a set of paths. Linux
18
+ and Windows are untouched.
19
+
20
+ ## What's New in v4.6.1 — copy_grades refuses an all-missing target set before spending a confirmation
21
+
22
+ ### Fixed
23
+
24
+ - **Raw `timeline_item_color` `copy_grades` could issue a confirmation token for a call
25
+ that would run `CopyGrades([])`.** ([#234](https://github.com/samuelgursky/davinci-resolve-mcp/pull/234), @Rohitkanithi)
26
+ When every `target_ids` value failed to resolve on the current timeline, the tool
27
+ still walked into the confirmation flow, so the caller confirmed a destructive-looking
28
+ operation that had no valid target and then spent the round trip on a no-op. It now
29
+ returns a structured `NO_COPY_GRADE_TARGETS` (`invalid_input`) error carrying the
30
+ missing ids, before any token is issued and without calling Resolve. Mixed sets are
31
+ unchanged: resolved targets preview, and missing ids are still reported in the
32
+ preview. The granular `ti_copy_grades` already refused this case through its
33
+ non-empty and in-range index checks, so the class was confined to the compound
34
+ server. Guard test in `tests/test_copy_grades_confirmation.py`.
35
+
5
36
  ## What's New in v4.6.0 — a default project archive no longer crashes Resolve 21.1
6
37
 
7
38
  The archive coverage measured by @legionsound in [#233](https://github.com/samuelgursky/davinci-resolve-mcp/pull/233), plus the offline node-graph relayout work that was sitting unreleased on `main`.
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.6.0-blue.svg)](https://github.com/samuelgursky/davinci-resolve-mcp/releases)
5
+ [![Version](https://img.shields.io/badge/version-4.6.2-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(387%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.6.0-blue.svg)](https://github.com/samuelgursky/davinci-resolve-mcp/releases)
5
+ [![Version](https://img.shields.io/badge/version-4.6.2-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(387%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.6.0 版 README。如与英文原版有出入,以 [英文原版](README.md) 为准。
15
+ > 本翻译对应 v4.6.2 版 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.6.0"
40
+ VERSION = "4.6.2"
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.6.0",
3
+ "version": "4.6.2",
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.6.0"
96
+ VERSION = "4.6.2"
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()}")
@@ -342,13 +342,15 @@ class ResolveProxy:
342
342
  def _resolve_safe_dir(path):
343
343
  """Redirect sandbox/temp paths that Resolve can't access to ~/Desktop/resolve-stills.
344
344
 
345
- Covers macOS (/var/folders, /private/var), Linux (/tmp, /var/tmp),
346
- and Windows (AppData\\Local\\Temp) sandbox temp directories.
345
+ Covers macOS (/var/folders, /private/var, /tmp, /private/tmp), Linux (/tmp,
346
+ /var/tmp), and Windows (AppData\\Local\\Temp) sandbox temp directories.
347
347
  """
348
348
  system_temp = tempfile.gettempdir()
349
349
  _is_sandbox = False
350
350
  if platform.system() == "Darwin":
351
- _is_sandbox = path.startswith("/var/") or path.startswith("/private/var/")
351
+ # /tmp is a symlink to /private/tmp on macOS; Resolve's exporters fail
352
+ # silently into both, same as /var/folders (matches src/server.py).
353
+ _is_sandbox = path.startswith(("/var/", "/private/var/", "/tmp/", "/private/tmp/")) or path in ("/tmp", "/private/tmp")
352
354
  elif platform.system() == "Linux":
353
355
  _is_sandbox = path.startswith("/tmp") or path.startswith("/var/tmp")
354
356
  elif platform.system() == "Windows":
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.6.0"
14
+ VERSION = "4.6.2"
15
15
 
16
16
  import base64
17
17
  import os
@@ -28701,6 +28701,14 @@ def timeline_item_color(action: str, params: Optional[Dict[str, Any]] = None) ->
28701
28701
  targets, missing = _timeline_items_for_grade_copy(tl, target_ids)
28702
28702
  else:
28703
28703
  targets, missing = [], sorted(set(target_ids or []))
28704
+ if not targets:
28705
+ return _err(
28706
+ "copy_grades resolved no target items; nothing would be copied.",
28707
+ code="NO_COPY_GRADE_TARGETS",
28708
+ category="invalid_input",
28709
+ remediation="Pass at least one target_ids value that exists on the current timeline.",
28710
+ state={"target_ids": list(target_ids or []), "missing": missing},
28711
+ )
28704
28712
  if "confirm_token" not in p and "confirmToken" not in p and _confirm_token_required():
28705
28713
  preview = {
28706
28714
  "operation": "timeline_item_color.copy_grades",