davinci-resolve-mcp 4.8.19 → 4.8.21
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 +77 -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 +1 -1
- package/src/granular/timeline.py +1 -1
- package/src/server.py +157 -157
- package/src/utils/api_truth.py +24 -0
- package/src/utils/dctl_templates.py +4 -2
- package/src/utils/fuse_templates.py +4 -2
- package/src/utils/media_analysis_jobs.py +4 -2
- package/src/utils/multicam.py +5 -3
- package/src/utils/project_properties.py +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,83 @@
|
|
|
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.21 — timeline duration no longer overcounts by one frame
|
|
6
|
+
|
|
7
|
+
### Fixed
|
|
8
|
+
|
|
9
|
+
- **Two timeline-duration readers reported one frame too many.** ([#269](https://github.com/samuelgursky/davinci-resolve-mcp/pull/269), @Dev-next-gen)
|
|
10
|
+
The granular `get_current_timeline` and `get_project_info`'s per-timeline
|
|
11
|
+
`duration` computed `GetEndFrame() - GetStartFrame() + 1`, while the compound
|
|
12
|
+
server, `brain_edits` and `render_stress` all use `GetEndFrame() - GetStartFrame()`
|
|
13
|
+
for the same timeline. `GetEndFrame()` is one past the last frame, so the `+ 1`
|
|
14
|
+
counted a frame that does not exist: a 600-frame timeline read back as 601. Both
|
|
15
|
+
readers now agree with the rest of the server.
|
|
16
|
+
|
|
17
|
+
### Documentation
|
|
18
|
+
|
|
19
|
+
- **`api_truth` records `Timeline.GetEndFrame` as an exclusive bound.** Measured
|
|
20
|
+
live on Studio 19.1.3.7 while reviewing #269: a timeline whose only full-length
|
|
21
|
+
item is a 32742-frame clip reads start 0 / end 32742, and the item's
|
|
22
|
+
`GetEnd()` is also 32742. The entry sits beside the existing
|
|
23
|
+
`AppendToTimeline clipInfo endFrame` entry, which documents the same half-open
|
|
24
|
+
convention on the write side, so the frame-count rule is now findable from
|
|
25
|
+
either direction.
|
|
26
|
+
|
|
27
|
+
### Tests
|
|
28
|
+
|
|
29
|
+
- `tests/test_timeline_duration.py` (from the PR): both readers return
|
|
30
|
+
`end - start` for a stubbed 86400..87000 timeline; fails on v4.8.20 with 601.
|
|
31
|
+
- `tests/test_api_truth.py`: the new ledger entry is findable by `GetEndFrame`,
|
|
32
|
+
carries the `off-by-one` tag, and states the `end - start` rule.
|
|
33
|
+
|
|
34
|
+
## What's New in v4.8.20 — every boolean param honours `"false"`
|
|
35
|
+
|
|
36
|
+
### Fixed
|
|
37
|
+
|
|
38
|
+
- **Boolean tool params read with bare truthiness, file-wide.** The last four
|
|
39
|
+
releases fixed this one key at a time (`background`, `create_missing`, `dry_run`,
|
|
40
|
+
`include_*`). This release sweeps the rest: 126 `p.get("k", True|False)` /
|
|
41
|
+
`bool(p.get(...))` reads and 36 bare `if p.get("k"):` tests of flag params in
|
|
42
|
+
`src/server.py`, plus 9 reads in `src/utils` (multicam setup, Fuse/DCTL template
|
|
43
|
+
options, the batch-analysis `auto_build_index`). A caller sending `"false"` (or
|
|
44
|
+
`"no"`, `"0"`, `"off"`) got the opposite of what they asked for. The cases that
|
|
45
|
+
mattered:
|
|
46
|
+
- `override_governance="false"` skipped AI-governance enforcement in `enforce` mode.
|
|
47
|
+
- `project_manager(action="close", stop_render="false")` stopped a running render
|
|
48
|
+
and closed the project instead of refusing.
|
|
49
|
+
- `timeline_item_color(action="propose_grade", execute="false")` took the execute path.
|
|
50
|
+
- `timeline_markers(action="clear_annotations_by_scope", clear_flags="false" /
|
|
51
|
+
clear_clip_color="false")` cleared them, and `media_pool_item(action="open_in_viewer",
|
|
52
|
+
clear_marks="false")` cleared the clip's mark in/out.
|
|
53
|
+
- `timeline_item_color(action="apply_trace_plan", allow_timeline_mismatch="false")` allowed a mismatched timeline.
|
|
54
|
+
- The extension lifecycle probes installed on `install="false"` and removed the
|
|
55
|
+
install on `cleanup="false"`; `grab_and_export` deleted the grabbed still from the
|
|
56
|
+
Gallery album on `delete_after="false"` and discarded its staging files on
|
|
57
|
+
`cleanup="false"`; the export round-trip deleted the
|
|
58
|
+
imported timeline on `cleanup_imported="false"`.
|
|
59
|
+
Every read keeps its default when the key is omitted, `None`, or an unrecognized
|
|
60
|
+
string. One change for explicit `null`: a key whose default is `True` (e.g.
|
|
61
|
+
`overwrite` in the lifecycle probes, `require_temp_path`) now reads `null` as that
|
|
62
|
+
default instead of as false.
|
|
63
|
+
- **Correction to an earlier claim.** `allow_non_mcp_name="false"` and
|
|
64
|
+
`overwrite="false"` were *not* bypasses: `_require_disposable_project_name`,
|
|
65
|
+
`_extension_safe_name` and the `fuse_plugin`/`dctl` install actions already coerce at
|
|
66
|
+
the point of use. Their handler reads are coerced now for consistency, and tests pin
|
|
67
|
+
that a real `False` reaches the next layer.
|
|
68
|
+
- Left as-is on purpose: `from_preset` (a preset name), `reference_movie` (a path), the
|
|
69
|
+
server-set `_setup_defaults_applied` marker, and `generate_speech`'s
|
|
70
|
+
`AddToTimeline`, which is passed verbatim to Resolve.
|
|
71
|
+
|
|
72
|
+
### Tests
|
|
73
|
+
|
|
74
|
+
- `tests/test_bool_param_coercion.py`: behavioural guards for governance override,
|
|
75
|
+
close-during-render, `propose_grade` execute, annotation clearing, the Fuse probe's
|
|
76
|
+
install/cleanup, Fuse/DCTL template flags, and the `allow_non_mcp_name` /
|
|
77
|
+
`overwrite` contracts. 47 subtests fail on the previous code.
|
|
78
|
+
- Two AST ratchets on `src/server.py`: every `x.get("k", True|False)` sits inside a
|
|
79
|
+
coercer (fallback chains included), and a key coerced anywhere in the file is never
|
|
80
|
+
tested with bare truthiness on caller input.
|
|
81
|
+
|
|
5
82
|
## What's New in v4.8.19 — generated OFX nodes bind their params on Resolve 21.0
|
|
6
83
|
|
|
7
84
|
### 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.8.
|
|
15
|
+
> 本翻译对应 v4.8.21 版 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.
|
|
40
|
+
VERSION = "4.8.21"
|
|
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.8.
|
|
96
|
+
VERSION = "4.8.21"
|
|
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/granular/timeline.py
CHANGED
|
@@ -65,7 +65,7 @@ def get_current_timeline() -> Dict[str, Any]:
|
|
|
65
65
|
"width": current_timeline.GetSetting("timelineResolutionWidth"),
|
|
66
66
|
"height": current_timeline.GetSetting("timelineResolutionHeight")
|
|
67
67
|
},
|
|
68
|
-
"duration": current_timeline.GetEndFrame() - current_timeline.GetStartFrame()
|
|
68
|
+
"duration": current_timeline.GetEndFrame() - current_timeline.GetStartFrame()
|
|
69
69
|
}
|
|
70
70
|
|
|
71
71
|
return result
|