davinci-resolve-mcp 4.7.5 → 4.7.7
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 +39 -0
- package/README.md +1 -1
- package/README.zh-CN.md +2 -2
- package/install.py +1 -1
- package/package.json +1 -1
- package/src/granular/common.py +3 -1
- package/src/server.py +3 -1
- package/src/utils/mcp_import_stubs.py +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,45 @@
|
|
|
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.7 — the offline test bootstrap holds under `unittest discover` too
|
|
6
|
+
|
|
7
|
+
Test-harness fix only. No tool, action, or Resolve behaviour changed.
|
|
8
|
+
|
|
9
|
+
### Fixed
|
|
10
|
+
|
|
11
|
+
- **`python -m unittest discover -s tests` ran the suite with no offline guard and
|
|
12
|
+
with the root logger pointed at the operator's real `logs/server.log`.**
|
|
13
|
+
([#245](https://github.com/samuelgursky/davinci-resolve-mcp/pull/245), @Adi202001)
|
|
14
|
+
`tests/__init__.py` sets `RESOLVE_MCP_LOG_FILE` and installs `offline_guard`, and
|
|
15
|
+
its docstring claimed both unittest forms import it first. Only the dotted form
|
|
16
|
+
(`python -m unittest tests.test_x`) does: `discover` given a path leaves
|
|
17
|
+
`top_level_dir` at that path and imports every module under its bare name, so the
|
|
18
|
+
package `__init__` never executes. Reproduced on `main` before merging: the
|
|
19
|
+
`test_log_isolation` tripwire fails, the guard is absent for the whole run, and
|
|
20
|
+
`logs/server.log` grows — meaning that invocation could connect to, or launch, a
|
|
21
|
+
live Resolve. (`discover -s tests -t .` was never affected, which is why the
|
|
22
|
+
maintainer's own runs did not see it.) New `tests/test_0000_offline_bootstrap.py`
|
|
23
|
+
sorts first in discovery order, imports the `tests` package for its side effects,
|
|
24
|
+
asserts the redirect and the guard are in place, and asserts it still sorts first so
|
|
25
|
+
a future file cannot silently restore the bug. The package docstring now states what
|
|
26
|
+
holds on each runner.
|
|
27
|
+
|
|
28
|
+
## What's New in v4.7.6 — `serverInfo.version` reports this project's version
|
|
29
|
+
|
|
30
|
+
### Fixed
|
|
31
|
+
|
|
32
|
+
- **The MCP `initialize` handshake advertised the installed SDK's version (1.30.0)
|
|
33
|
+
as the server's, not the project's.** ([#243](https://github.com/samuelgursky/davinci-resolve-mcp/issues/243) reported with the diagnosis by @Eniot666; fixed in [#244](https://github.com/samuelgursky/davinci-resolve-mcp/pull/244) by @DYNOSuprovo)
|
|
34
|
+
`FastMCP.__init__` in the 1.x SDK has no `version` parameter, so it builds the
|
|
35
|
+
low-level `Server` without one and `create_initialization_options()` falls back to
|
|
36
|
+
`pkg_version("mcp")`. Every client displayed the SDK's number, so the version a user
|
|
37
|
+
quoted in a bug report was not this project's. Both FastMCP instances (compound and
|
|
38
|
+
granular) now set `_mcp_server.version = VERSION` right after construction, and the
|
|
39
|
+
test-mode stub carries the attribute. This reaches through a private SDK attribute
|
|
40
|
+
on purpose — the SDK exposes no public route — and
|
|
41
|
+
`tests/test_server_info_version.py` pins `create_initialization_options().server_version`
|
|
42
|
+
on both servers so a future SDK that adds the parameter can replace it cleanly.
|
|
43
|
+
|
|
5
44
|
## What's New in v4.7.5 — the control panel serves on the `::1` loopback it accepts
|
|
6
45
|
|
|
7
46
|
### Fixed
|
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
English | [简体中文](README.zh-CN.md)
|
|
4
4
|
|
|
5
|
-
[](https://github.com/samuelgursky/davinci-resolve-mcp/releases)
|
|
6
6
|
[](https://www.npmjs.com/package/davinci-resolve-mcp)
|
|
7
7
|
[](docs/reference/api-coverage.md)
|
|
8
8
|
[-blue.svg)](#server-modes)
|
package/README.zh-CN.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
[English](README.md) | 简体中文
|
|
4
4
|
|
|
5
|
-
[](https://github.com/samuelgursky/davinci-resolve-mcp/releases)
|
|
6
6
|
[](https://www.npmjs.com/package/davinci-resolve-mcp)
|
|
7
7
|
[](docs/reference/api-coverage.md)
|
|
8
8
|
[-blue.svg)](#服务器模式)
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
[](https://www.python.org/downloads/)
|
|
13
13
|
[](https://opensource.org/licenses/MIT)
|
|
14
14
|
|
|
15
|
-
> 本翻译对应 v4.7.
|
|
15
|
+
> 本翻译对应 v4.7.7 版 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.
|
|
40
|
+
VERSION = "4.7.7"
|
|
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
package/src/granular/common.py
CHANGED
|
@@ -93,7 +93,7 @@ if not logging.getLogger().handlers:
|
|
|
93
93
|
handlers=[logging.StreamHandler()],
|
|
94
94
|
)
|
|
95
95
|
|
|
96
|
-
VERSION = "4.7.
|
|
96
|
+
VERSION = "4.7.7"
|
|
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()}")
|
|
@@ -101,6 +101,8 @@ logger.info(f"Using Resolve API path: {RESOLVE_API_PATH}")
|
|
|
101
101
|
logger.info(f"Using Resolve library path: {RESOLVE_LIB_PATH}")
|
|
102
102
|
|
|
103
103
|
mcp = FastMCP("DaVinciResolveMCP")
|
|
104
|
+
if hasattr(mcp, "_mcp_server"):
|
|
105
|
+
mcp._mcp_server.version = VERSION
|
|
104
106
|
|
|
105
107
|
READ_ONLY_TOOL = ToolAnnotations(
|
|
106
108
|
readOnlyHint=True,
|
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.
|
|
14
|
+
VERSION = "4.7.7"
|
|
15
15
|
|
|
16
16
|
import base64
|
|
17
17
|
import os
|
|
@@ -263,6 +263,8 @@ mcp = FastMCP(
|
|
|
263
263
|
"issue link for the user to review and submit; nothing is filed for them."
|
|
264
264
|
),
|
|
265
265
|
)
|
|
266
|
+
if hasattr(mcp, "_mcp_server"):
|
|
267
|
+
mcp._mcp_server.version = VERSION
|
|
266
268
|
|
|
267
269
|
READ_ONLY_TOOL = mcp_types.ToolAnnotations(
|
|
268
270
|
readOnlyHint=True,
|
|
@@ -51,7 +51,7 @@ def _real_mcp_is_importable() -> bool:
|
|
|
51
51
|
def _build_stub_modules(*, stdio_note: str) -> Dict[str, types.ModuleType]:
|
|
52
52
|
class FastMCP:
|
|
53
53
|
def __init__(self, *args, **kwargs):
|
|
54
|
-
|
|
54
|
+
self._mcp_server = types.SimpleNamespace(version=None)
|
|
55
55
|
|
|
56
56
|
def _decorator(self, *args, **kwargs):
|
|
57
57
|
def decorate(func):
|