davinci-resolve-mcp 4.8.26 → 4.8.27

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,32 @@
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.27 — Linux exports no longer redirected away from /tmp-named folders
6
+
7
+ ### Fixed
8
+
9
+ - **On Linux, an output folder whose name merely began with `/tmp` or
10
+ `/var/tmp` was silently replaced.** `_resolve_safe_dir` tested
11
+ `path.startswith("/tmp")`, which is also true of `/tmpdata`, `/tmpfiles`,
12
+ `/tmp-scratch` and `/var/tmpdata`. Each was treated as a temp directory and
13
+ swapped for `~/Documents/resolve-stills`, and
14
+ `gallery_stills(grab_and_export)` then reported that folder as if it were the
15
+ one asked for. The same helper picks the output folder for `encrypt_dctl` and
16
+ the granular `save_project` export fallback. The Linux branch now compares by
17
+ path segment, as the macOS branch already did; `/tmp`, `/tmp/…`, `/var/tmp`
18
+ and `/var/tmp/…` still redirect. Both copies of the helper (`src/server.py`
19
+ and `src/granular/common.py`) are fixed. Thanks to @Dev-next-gen (#271).
20
+
21
+ ### Tests
22
+
23
+ - `tests/test_granular_safe_dir.py` gains a Linux class covering both copies:
24
+ real temp paths still redirect, sibling names are left alone.
25
+
26
+ ### Validation
27
+
28
+ - Path classification only, decided before any Resolve call; no Resolve
29
+ behavior changed. Live test not required.
30
+
5
31
  ## What's New in v4.8.26 — two dead layout-preset helpers removed
6
32
 
7
33
  ### Removed
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.26-blue.svg)](https://github.com/samuelgursky/davinci-resolve-mcp/releases)
5
+ [![Version](https://img.shields.io/badge/version-4.8.27-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.26-blue.svg)](https://github.com/samuelgursky/davinci-resolve-mcp/releases)
5
+ [![Version](https://img.shields.io/badge/version-4.8.27-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.26 版 README。如与英文原版有出入,以 [英文原版](README.md) 为准。
15
+ > 本翻译对应 v4.8.27 版 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.26"
40
+ VERSION = "4.8.27"
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.26",
3
+ "version": "4.8.27",
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.26"
94
+ VERSION = "4.8.27"
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()}")
@@ -377,7 +377,10 @@ def _resolve_safe_dir(path):
377
377
  # silently into both, same as /var/folders (matches src/server.py).
378
378
  _is_sandbox = path.startswith(("/var/", "/private/var/", "/tmp/", "/private/tmp/")) or path in ("/tmp", "/private/tmp")
379
379
  elif platform.system() == "Linux":
380
- _is_sandbox = path.startswith("/tmp") or path.startswith("/var/tmp")
380
+ # By segment, not by character prefix (matches src/server.py): a sibling
381
+ # of /tmp whose name merely begins with it — /tmpfiles, /tmp-scratch,
382
+ # /var/tmpdata — cleared `startswith("/tmp")` and was redirected.
383
+ _is_sandbox = path.startswith(("/tmp/", "/var/tmp/")) or path in ("/tmp", "/var/tmp")
381
384
  elif platform.system() == "Windows":
382
385
  try:
383
386
  _is_sandbox = os.path.commonpath([os.path.abspath(path), os.path.abspath(system_temp)]) == os.path.abspath(system_temp)
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.26"
14
+ VERSION = "4.8.27"
15
15
 
16
16
  import base64
17
17
  import os
@@ -1421,7 +1421,13 @@ def _resolve_safe_dir(path):
1421
1421
  # silently fails into both (live-verified 2026-07-03), same as /var/folders.
1422
1422
  _is_sandbox = path.startswith(("/var/", "/private/var/", "/tmp/", "/private/tmp/")) or path in ("/tmp", "/private/tmp")
1423
1423
  elif platform.system() == "Linux":
1424
- _is_sandbox = path.startswith("/tmp") or path.startswith("/var/tmp")
1424
+ # By segment, not by character prefix: `startswith("/tmp")` also matched a
1425
+ # sibling of /tmp whose name merely begins with it — /tmpfiles,
1426
+ # /tmp-scratch, /var/tmpdata — so an export the caller aimed at one of
1427
+ # those was redirected away from it. The Darwin branch already compares
1428
+ # this way, and `/tmpfiles/out` is one of the paths
1429
+ # tests/test_granular_safe_dir.py asserts is left alone.
1430
+ _is_sandbox = path.startswith(("/tmp/", "/var/tmp/")) or path in ("/tmp", "/var/tmp")
1425
1431
  elif platform.system() == "Windows":
1426
1432
  # Check if path is under the system temp directory (e.g. AppData\Local\Temp)
1427
1433
  try: