davinci-resolve-mcp 4.9.1 → 4.9.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,49 @@
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.9.2 — the source-media guard recognises Windows temp space
6
+
7
+ ### Fixed
8
+
9
+ - **On Windows the source-media guard denied every write into temp space.**
10
+ `is_scratch()` compared the normalized path against `SCRATCH_ROOTS`
11
+ (`/tmp`, `/private/tmp`, `/var/folders`) without normalizing the roots, so
12
+ on Windows `/tmp/out.mp4` normalized to `c:\tmp\out.mp4` and never matched
13
+ `/tmp`; and Windows' real temp directory (`%TEMP%`) was not a root at all.
14
+ `ffmpeg … /tmp/out.mp4`, `rm /tmp/work/proxy.mp4` and writes under
15
+ `%TEMP%` were all refused. The roots are now normalized the same way as the
16
+ path, and on Windows `%TEMP%` is a scratch root. Found and fixed by
17
+ @AllastorV (#277).
18
+
19
+ ### Changed on landing
20
+
21
+ - **The temp directory is trusted only on Windows, and only when narrow.**
22
+ `tempfile.gettempdir()` follows `TMPDIR` / `TEMP` / `TMP`, which are set
23
+ for reasons unrelated to this guard; in post they often point at the media
24
+ drive. Measured on macOS with the change as submitted: with `TMPDIR` set to
25
+ the home directory, `ffmpeg -y` overwrites and `rm` under `~/Movies` were
26
+ allowed, where v4.9.1 denied them. So the temp directory is added only on
27
+ Windows (on Linux and macOS the default temp dir is already under
28
+ `SCRATCH_ROOTS`), and it is refused when it is a drive or filesystem root,
29
+ the user profile or an ancestor of it, or the working directory, which
30
+ `gettempdir()` falls back to when nothing else is writable.
31
+
32
+ ### Tests
33
+
34
+ - `tests/test_source_media_guard.py`: a write into the platform temp dir is
35
+ allowed; with `TMPDIR`/`TEMP`/`TMP` set to the home directory, an overwrite
36
+ and a delete there are still denied (both fail on the change as
37
+ submitted); and `platform_temp_root` refuses a filesystem root, the profile
38
+ and its ancestors, and the working directory, accepts a narrow temp folder
39
+ even on a media drive, and never trusts the variable off Windows.
40
+
41
+ ### Validation
42
+
43
+ - Guard-only change; no Resolve scripting call changed. The Windows path
44
+ normalization was verified by the contributor on Windows 11; the
45
+ Windows-only branch is unit-tested here with injected values, since this
46
+ project has no Windows host.
47
+
5
48
  ## What's New in v4.9.1 — a rejected audio level write now says why, and what to do instead
6
49
 
7
50
  ### Changed
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.9.1-blue.svg)](https://github.com/samuelgursky/davinci-resolve-mcp/releases)
5
+ [![Version](https://img.shields.io/badge/version-4.9.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(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.9.1-blue.svg)](https://github.com/samuelgursky/davinci-resolve-mcp/releases)
5
+ [![Version](https://img.shields.io/badge/version-4.9.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(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.9.1 版 README。如与英文原版有出入,以 [英文原版](README.md) 为准。
15
+ > 本翻译对应 v4.9.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.9.1"
40
+ VERSION = "4.9.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.9.1",
3
+ "version": "4.9.2",
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.9.1"
94
+ VERSION = "4.9.2"
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()}")
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.9.1"
14
+ VERSION = "4.9.2"
15
15
 
16
16
  import base64
17
17
  import os