davinci-resolve-mcp 4.7.7 → 4.7.8

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,28 @@
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.7.8 — `allow_non_mcp_name="false"` no longer lifts the `_mcp_` name guard
6
+
7
+ ### Fixed
8
+
9
+ - **The opt-in that lifts the `_mcp_` name guard was read with bare truthiness inside
10
+ both guard helpers, so a stringified `"false"` stood the guard down.** ([#246](https://github.com/samuelgursky/davinci-resolve-mcp/pull/246), @Dev-next-gen)
11
+ `_require_disposable_project_name` and `_extension_safe_name` both opened with
12
+ `if allow_non_mcp_name:`, and the eight call sites pass the raw value through, which
13
+ is why the #240 search for `not p.get("<flag>")` at the guard missed it. From a client
14
+ that stringifies its JSON scalars, `safe_project_delete` with
15
+ `allow_non_mcp_name="false"` called `DeleteProject` on a project the MCP never
16
+ created (as long as it was not the open one), and `safe_install_extension` /
17
+ `safe_remove_extension` accepted a user-owned Fuse, DCTL or script name; the same
18
+ reading covered `safe_project_create`, `_export`, `_import`, `_archive` and
19
+ `_restore`. Both helpers now read the flag through `coerce_bool`. Real booleans and
20
+ the true spellings are unchanged; a false or unrecognised string keeps the guard up
21
+ and returns the refusal that already existed. Guard test:
22
+ `tests/test_allow_non_mcp_name_string_false.py` — both helpers over six false and six
23
+ true spellings, `safe_project_delete` against a stub asserting `DeleteProject` never
24
+ ran, and `safe_install_extension` in `dry_run`; 24 of 24 false-spelling subtests
25
+ fail on the previous code.
26
+
5
27
  ## What's New in v4.7.7 — the offline test bootstrap holds under `unittest discover` too
6
28
 
7
29
  Test-harness fix only. No tool, action, or Resolve behaviour 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.7.7-blue.svg)](https://github.com/samuelgursky/davinci-resolve-mcp/releases)
5
+ [![Version](https://img.shields.io/badge/version-4.7.8-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.7.7-blue.svg)](https://github.com/samuelgursky/davinci-resolve-mcp/releases)
5
+ [![Version](https://img.shields.io/badge/version-4.7.8-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.7.7 版 README。如与英文原版有出入,以 [英文原版](README.md) 为准。
15
+ > 本翻译对应 v4.7.8 版 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.7.7"
40
+ VERSION = "4.7.8"
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.7.7",
3
+ "version": "4.7.8",
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.7.7"
96
+ VERSION = "4.7.8"
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.7.7"
14
+ VERSION = "4.7.8"
15
15
 
16
16
  import base64
17
17
  import os
@@ -18251,9 +18251,9 @@ def _require_disposable_project_name(
18251
18251
  name: Any,
18252
18252
  *,
18253
18253
  field: str = "name",
18254
- allow_non_mcp_name: bool = False,
18254
+ allow_non_mcp_name: Any = False,
18255
18255
  ) -> Optional[Dict[str, Any]]:
18256
- if allow_non_mcp_name:
18256
+ if _coerce_bool(allow_non_mcp_name):
18257
18257
  if isinstance(name, str) and name:
18258
18258
  return None
18259
18259
  return _err(f"{field} must be a non-empty string")
@@ -31640,8 +31640,8 @@ _EXTENSION_KERNEL_ACTIONS = [
31640
31640
  _EXTENSION_TYPES = ("fuse", "dctl", "script")
31641
31641
 
31642
31642
 
31643
- def _extension_safe_name(name: Any, *, allow_non_mcp_name: bool = False) -> Optional[Dict[str, Any]]:
31644
- if allow_non_mcp_name:
31643
+ def _extension_safe_name(name: Any, *, allow_non_mcp_name: Any = False) -> Optional[Dict[str, Any]]:
31644
+ if _coerce_bool(allow_non_mcp_name):
31645
31645
  if isinstance(name, str) and name:
31646
31646
  return None
31647
31647
  return _err("name must be a non-empty string")