davinci-resolve-mcp 5.2.0 → 5.2.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 +29 -0
- package/README.md +4 -4
- package/README.zh-CN.md +5 -5
- package/docs/reference/api-coverage.md +26 -33
- package/install.py +1 -1
- package/package.json +1 -1
- package/src/granular/common.py +1 -1
- package/src/server.py +1 -1
- package/src/utils/captions.py +9 -1
- package/src/utils/resolve_versions.py +10 -7
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,35 @@
|
|
|
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 v5.2.2 — Long words in captions are no longer cut off
|
|
6
|
+
|
|
7
|
+
From #360 by @goranai.
|
|
8
|
+
|
|
9
|
+
### Fixed
|
|
10
|
+
|
|
11
|
+
- **`edit_engine` `generate_captions` dropped the end of any word too long for one caption line.** A URL was the usual case: everything after the first `max_chars_per_line` characters was missing from the SRT and WebVTT text. The word is now cut into line-length pieces and wrapped like other text, so nothing is dropped and every line stays within the character limit. The same fix covers one transcript word with an inner no-break space that did not fit `max_lines`.
|
|
12
|
+
|
|
13
|
+
### Changed
|
|
14
|
+
|
|
15
|
+
- A caption block that contains such a word can now have more lines than `max_lines` (an 85-character word gives three lines). The block keeps its original timing; captions never invent timings inside a word. Blocks without an over-long word are unchanged.
|
|
16
|
+
|
|
17
|
+
## What's New in v5.2.1 — Resolve 21.0.4 calls live-tested
|
|
18
|
+
|
|
19
|
+
From #359 by @Ghoul0718. The twelve Resolve 21.0.4 scripting additions were guarded and unit-tested but had never been run live here, for want of a 21.0.4 build. This release records a live run on free 21.0.4.5 through the in-app bridge. No server behaviour changes.
|
|
20
|
+
|
|
21
|
+
### Added
|
|
22
|
+
|
|
23
|
+
- **`tests/live_resolve2104_validation.py`**, a live harness for the 21.0.4 additions (in-app bridge by default, `--native` for Studio, `--read-only` to list only). It refuses to start if a render is running or a previous run left anything behind, uses `ZZ_r2104_` names for every preset and project it creates, restores the preset list, and deletes its disposable project after switching back to the original. `LoadUserPreferencesPreset` is never called.
|
|
24
|
+
|
|
25
|
+
### Changed
|
|
26
|
+
|
|
27
|
+
- **API coverage:** ten 21.0.4 methods are now ✅ live-tested and `DeleteBurnInPreset` is ⚠️, tested on a missing name only, since no scripting call creates a burn-in preset to delete. Live-tested methods go from 338 to 349 of 361. `LoadUserPreferencesPreset` stays untested by design: it swaps the user's global preferences for the session.
|
|
28
|
+
- **`Timeline.GetSelectedClips` and `MediaPoolItem.GetTimeline`** move from `reported` to `measured` in the version-evidence table. The note saying `GetTimeline` was not reachable through this server is gone; `get_clip_timeline` has wired it since an earlier release.
|
|
29
|
+
|
|
30
|
+
### Not verified here
|
|
31
|
+
|
|
32
|
+
- The live results are the contributor's, from free 21.0.4.5 on macOS. This maintainer machine runs Studio 19.1.3.7 and could not rerun the harness. They agree with the earlier contributor reports from Studio 21.0.4.5 (#131, #135–#138, #139).
|
|
33
|
+
|
|
5
34
|
## What's New in v5.2.0 — Film scoring handoff and stem return
|
|
6
35
|
|
|
7
36
|
From #358 by @veridian69. A read-mostly workflow for handing picture to a composer and checking what comes back. Guides: `docs/guides/film-workflow.md`, `docs/guides/film-cues.md`, `docs/guides/film-picture-changes.md`.
|
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)
|
|
@@ -419,9 +419,9 @@ The default server is a local stdio process launched by your MCP client; it does
|
|
|
419
419
|
| Advanced (offline) tools | **18** — .drp/.drt/.drx + DB authoring, no Resolve running |
|
|
420
420
|
| Kernel Actions | **136** guarded workflow actions across 9 compound tools |
|
|
421
421
|
| API Methods Covered | **361/361** (100%) |
|
|
422
|
-
| Methods Live Tested | **
|
|
423
|
-
| Live Test Pass Rate | **
|
|
424
|
-
| Tested Against | DaVinci Resolve 19.1.3 Studio + Resolve 20.3.2 Studio + Resolve 21.0.2 Studio + Resolve 21.0.3 **free** (via the in-app bridge) |
|
|
422
|
+
| Methods Live Tested | **349/361** (96.7%) |
|
|
423
|
+
| Live Test Pass Rate | **349/349** (100%) |
|
|
424
|
+
| Tested Against | DaVinci Resolve 19.1.3 Studio + Resolve 20.3.2 Studio + Resolve 21.0.2 Studio + Resolve 21.0.3 and 21.0.4 **free** (via the in-app bridge) |
|
|
425
425
|
|
|
426
426
|
For method-by-method status, see [API Coverage and Test Results](docs/reference/api-coverage.md). For current workflow support, see [Kernel Action Coverage](docs/kernels/README.md).
|
|
427
427
|
|
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
|
-
> 本翻译对应 v5.2.
|
|
15
|
+
> 本翻译对应 v5.2.2 版 README。如与英文原版有出入,以 [英文原版](README.md) 为准。
|
|
16
16
|
|
|
17
17
|
一个 Model Context Protocol (MCP) 服务器,让 AI 助手通过官方脚本 API 控制 DaVinci Resolve Studio(达芬奇)。它提供完整的 API 覆盖,外加带护栏的工作流助手,涵盖剪辑、媒体池整理、渲染设置、审阅标记、调色、Fusion、Fairlight、项目生命周期任务、扩展开发,以及不碰源媒体的媒体分析。
|
|
18
18
|
|
|
@@ -234,9 +234,9 @@ DRX 调色写入**针对 Resolve Studio 做过实机校准**:调色参数默
|
|
|
234
234
|
| Advanced(离线)工具 | **18**——.drp/.drt/.drx + 数据库创作,无需 Resolve 运行 |
|
|
235
235
|
| 内核 action | 9 个复合工具下 **136** 个带护栏的工作流 action |
|
|
236
236
|
| API 方法覆盖 | **361/361**(100%) |
|
|
237
|
-
| 实机测试方法数 | **
|
|
238
|
-
| 实机测试通过率 | **
|
|
239
|
-
| 测试环境 | DaVinci Resolve 19.1.3 Studio + 20.3.2 Studio + 21.0.2 Studio + 21.0.3 **免费版**(经内置桥接) |
|
|
237
|
+
| 实机测试方法数 | **349/361**(96.7%) |
|
|
238
|
+
| 实机测试通过率 | **349/349**(100%) |
|
|
239
|
+
| 测试环境 | DaVinci Resolve 19.1.3 Studio + 20.3.2 Studio + 21.0.2 Studio + 21.0.3 与 21.0.4 **免费版**(经内置桥接) |
|
|
240
240
|
|
|
241
241
|
逐方法状态见 [API 覆盖与测试结果](docs/reference/api-coverage.md)。当前工作流支持见 [内核 action 覆盖](docs/kernels/README.md)。
|
|
242
242
|
|
|
@@ -13,11 +13,11 @@ additions are tracked separately in the section below.
|
|
|
13
13
|
| MCP Tools | **36** compound (default) / **365** granular |
|
|
14
14
|
| Kernel Actions | **136** guarded MCP workflow actions across 9 compound tools |
|
|
15
15
|
| API Methods Covered | **361/361** (100%) |
|
|
16
|
-
| Methods Live Tested | **
|
|
17
|
-
| Live Test Pass Rate | **
|
|
16
|
+
| Methods Live Tested | **349/361** (96.7%) |
|
|
17
|
+
| Live Test Pass Rate | **349/349** (100%) |
|
|
18
18
|
| API Object Classes | 13 |
|
|
19
|
-
| Tested Against | DaVinci Resolve 19.1.3 Studio + Resolve 20.3.2 Studio + Resolve 21.0.2 Studio + Resolve 21.0.3 **free** (via the in-app bridge) |
|
|
20
|
-
| Compatibility Note | Resolve 19.1.3 remains the compatibility baseline; Resolve 20.x scripting calls are additive, version-guarded, and live-tested on 20.3.2; Resolve 21.0 additions are version-guarded and live-tested on 21.0.2 (see the Resolve 21 delta row below — five wrappers need AI Extras packs and stay untested without one, and one is deliberately not executed). The Resolve 21.0.4 additions are version-guarded
|
|
19
|
+
| Tested Against | DaVinci Resolve 19.1.3 Studio + Resolve 20.3.2 Studio + Resolve 21.0.2 Studio + Resolve 21.0.3 and 21.0.4 **free** (via the in-app bridge) |
|
|
20
|
+
| Compatibility Note | Resolve 19.1.3 remains the compatibility baseline; Resolve 20.x scripting calls are additive, version-guarded, and live-tested on 20.3.2; Resolve 21.0 additions are version-guarded and live-tested on 21.0.2 (see the Resolve 21 delta row below — five wrappers need AI Extras packs and stay untested without one, and one is deliberately not executed). The Resolve 21.0.4 additions are version-guarded, unit-tested, and live-tested on free 21.0.4.5 through the in-app bridge (see the Resolve 21.0.4 delta row; `LoadUserPreferencesPreset` is deliberately not executed). Note the free build is reachable only through the in-app bridge, since the free edition refuses external scripting |
|
|
21
21
|
|
|
22
22
|
## API Coverage
|
|
23
23
|
|
|
@@ -139,7 +139,8 @@ source, these summaries are downstream of it:
|
|
|
139
139
|
| Phase 5 | 6/6 | 100% | Scene cuts, subtitles from audio, graph node cache/tools/enable |
|
|
140
140
|
| Resolve 20 delta | 12/12 | 100% | Resolve 20.0-20.2.2 scripting additions live-tested on 20.3.2 |
|
|
141
141
|
| Resolve 21 delta | 7/7 | 100% | Resolve 21.0 additions that could be executed, live-tested on Studio 21.0.2.4 (`tests/live_resolve21_validation.py`). The other 6 need an AI Extras pack or are unsafe to run — counted as untested, not as passes |
|
|
142
|
-
|
|
|
142
|
+
| Resolve 21.0.4 delta | 11/11 | 100% | Resolve 21.0.4 additions live-tested on free 21.0.4.5 through the in-app bridge (`tests/live_resolve2104_validation.py`). `DeleteBurnInPreset` is tested on a missing name only (⚠️). `LoadUserPreferencesPreset` swaps the user's global preferences, so it is not executed and stays untested |
|
|
143
|
+
| **Total** | **349/349** | **100%** | **96.7% of the 361 covered methods tested live** |
|
|
143
144
|
|
|
144
145
|
#### Resolve 21 delta detail
|
|
145
146
|
|
|
@@ -160,7 +161,7 @@ marked 🔬 rather than ⚠️.
|
|
|
160
161
|
| `Project.GenerateSpeech` | 🔬 | Requires AI Speech Generator; returned an error **string**, not a MediaPoolItem |
|
|
161
162
|
| `Resolve.DisableBackgroundTasksForCurrentResolveSession` | 🔬 | Present in `dir()`; **not executed** — session-wide, returns None, and has no `Enable...` counterpart, so there is no undo short of restarting Resolve |
|
|
162
163
|
|
|
163
|
-
### Untested Methods (
|
|
164
|
+
### Untested Methods (12 of 361)
|
|
164
165
|
|
|
165
166
|
Every ☁️ and 🔬 row from the reference tables, listed here so the count is
|
|
166
167
|
checkable rather than asserted.
|
|
@@ -178,26 +179,18 @@ checkable rather than asserted.
|
|
|
178
179
|
| `MPI.AnalyzeForSlate` | Requires the AI Slate ID Extra | Yes |
|
|
179
180
|
| `Project.GenerateSpeech` | Requires the AI Speech Generator Extra | Yes |
|
|
180
181
|
| `Resolve.DisableBackgroundTasksForCurrentResolveSession` | Deliberately not executed: session-wide, returns `None`, and has no `Enable...` counterpart, so there is no undo short of restarting Resolve | No |
|
|
181
|
-
| `MPI.GetTimeline` | Requires a Resolve 21.0.4 build; the validation machine runs Studio 19.1.3 and free 21.0.3 | Yes |
|
|
182
|
-
| `TL.GetSelectedClips` | Requires a Resolve 21.0.4 build; the validation machine runs 19.1.3 | Yes |
|
|
183
|
-
| `Resolve.GetLayoutPresetList` | Requires a Resolve 21.0.4 build; the validation machine runs Studio 19.1.3 and free 21.0.3 | Yes |
|
|
184
|
-
| `Resolve.GetBurnInPresetList` | Requires a Resolve 21.0.4 build; the validation machine runs Studio 19.1.3 and free 21.0.3 | Yes |
|
|
185
|
-
| `Resolve.DeleteBurnInPreset` | Requires a Resolve 21.0.4 build; also, no scripting API creates a burn-in preset to round-trip against | Yes |
|
|
186
|
-
| `Resolve.GetUserPreferencesPresetList` | Requires a Resolve 21.0.4 build; the validation machine runs Studio 19.1.3 and free 21.0.3 | Yes |
|
|
187
|
-
| `Resolve.SaveUserPreferencesPreset` | Requires a Resolve 21.0.4 build; the validation machine runs Studio 19.1.3 and free 21.0.3 | Yes |
|
|
188
182
|
| `Resolve.LoadUserPreferencesPreset` | Deliberately not executed even by the reporter: swaps the user's global preferences session-wide | No |
|
|
189
|
-
| `Resolve.DeleteUserPreferencesPreset` | Requires a Resolve 21.0.4 build; the validation machine runs Studio 19.1.3 and free 21.0.3 | Yes |
|
|
190
|
-
| `Resolve.ImportUserPreferencesPreset` | Requires a Resolve 21.0.4 build; round-tripped by the reporter on 21.0.4.5 in both call shapes (PR #139), not here | Yes |
|
|
191
|
-
| `Resolve.ExportUserPreferencesPreset` | Requires a Resolve 21.0.4 build; the validation machine runs Studio 19.1.3 and free 21.0.3 | Yes |
|
|
192
|
-
| `PM.GetProjectAttributesInCurrentFolder` | Requires a Resolve 21.0.4 build; the validation machine runs Studio 19.1.3 and free 21.0.3 | Yes |
|
|
193
183
|
|
|
194
184
|
The five AI Extras rows are untested for want of a downloadable pack, not because
|
|
195
185
|
the wrappers are suspect — a report from anyone who has the packs installed would
|
|
196
|
-
close them.
|
|
197
|
-
|
|
198
|
-
contributor
|
|
199
|
-
|
|
200
|
-
|
|
186
|
+
close them. Eleven of the twelve 21.0.4 rows are now live-tested on free 21.0.4.5
|
|
187
|
+
through the in-app bridge (`tests/live_resolve2104_validation.py`); they had
|
|
188
|
+
carried contributor reports from Studio 21.0.4.5 (issue #131, issues #135–#138,
|
|
189
|
+
PR #139), and the live run agrees with them. `DeleteBurnInPreset` is tested on a
|
|
190
|
+
missing name only, because no scripting API creates a burn-in preset to delete.
|
|
191
|
+
`LoadUserPreferencesPreset` stays untested: it swaps the user's global
|
|
192
|
+
preferences for the session, so it is not executed. Likewise
|
|
193
|
+
`DisableBackgroundTasksForCurrentResolveSession` is a
|
|
201
194
|
decision rather than a gap: it is reachable, and
|
|
202
195
|
running it during a validation sweep would disable background tasks for every
|
|
203
196
|
project open in that Resolve instance.
|
|
@@ -241,15 +234,15 @@ Every method in the DaVinci Resolve Scripting API and its test status. Methods a
|
|
|
241
234
|
| 21 | `SetKeyframeMode(keyframeMode)` | ⚠️ | API accepts; mode must match valid enum |
|
|
242
235
|
| 22 | `GetFairlightPresets()` | ✅ | Returns a preset map. Live on 20.3.2 Studio and 21.0.3 free; **absent below 20.2.2** — confirmed missing on 19.1.3, so the version floor is verified from both sides |
|
|
243
236
|
| 23 | `DisableBackgroundTasksForCurrentResolveSession()` | 🔬 | Resolve 21.0. Present in `dir()`; **not executed** — session-wide, returns `None`, no `Enable...` counterpart, so no undo short of restarting Resolve |
|
|
244
|
-
| 24 | `GetLayoutPresetList()` |
|
|
245
|
-
| 25 | `GetBurnInPresetList()` |
|
|
246
|
-
| 26 | `DeleteBurnInPreset(presetName)` |
|
|
247
|
-
| 27 | `GetUserPreferencesPresetList()` |
|
|
248
|
-
| 28 | `SaveUserPreferencesPreset(presetName)` |
|
|
237
|
+
| 24 | `GetLayoutPresetList()` | ✅ | Resolve 21.0.4. Returns a list (live-tested on free 21.0.4.5 through the in-app bridge (`tests/live_resolve2104_validation.py`)); also reported via a save→list→delete round-trip on Studio 21.0.4.5 in issue #137 |
|
|
238
|
+
| 25 | `GetBurnInPresetList()` | ✅ | Resolve 21.0.4. Returns a list (live-tested on free 21.0.4.5 through the in-app bridge (`tests/live_resolve2104_validation.py`)); reported returning a list on Studio 21.0.4.5 in issue #136 |
|
|
239
|
+
| 26 | `DeleteBurnInPreset(presetName)` | ⚠️ | Resolve 21.0.4. Returns `False` for a name that does not exist and leaves the list unchanged (live-tested on free 21.0.4.5 through the in-app bridge (`tests/live_resolve2104_validation.py`)). A real delete is not exercised: no scripting API creates a burn-in preset to delete |
|
|
240
|
+
| 27 | `GetUserPreferencesPresetList()` | ✅ | Resolve 21.0.4. Returns a list of names; a saved preset appears and a deleted one disappears (live-tested on free 21.0.4.5 through the in-app bridge (`tests/live_resolve2104_validation.py`)); also issue #138 on Studio 21.0.4.5 |
|
|
241
|
+
| 28 | `SaveUserPreferencesPreset(presetName)` | ✅ | Resolve 21.0.4. Returns `True` and the preset is listed (live-tested on free 21.0.4.5 through the in-app bridge (`tests/live_resolve2104_validation.py`)) |
|
|
249
242
|
| 29 | `LoadUserPreferencesPreset(presetName)` | 🔬 | Resolve 21.0.4. `dir()`-present on 21.0.4.5; **not executed** even by the reporter — swaps the user's global preferences session-wide (issue #138) |
|
|
250
|
-
| 30 | `DeleteUserPreferencesPreset(presetName)` |
|
|
251
|
-
| 31 | `ImportUserPreferencesPreset(presetFilePath, presetName)` |
|
|
252
|
-
| 32 | `ExportUserPreferencesPreset(presetName, exportPath)` |
|
|
243
|
+
| 30 | `DeleteUserPreferencesPreset(presetName)` | ✅ | Resolve 21.0.4. Returns `True` and the preset leaves the list (live-tested on free 21.0.4.5 through the in-app bridge (`tests/live_resolve2104_validation.py`)) |
|
|
244
|
+
| 31 | `ImportUserPreferencesPreset(presetFilePath, presetName)` | ✅ | Resolve 21.0.4. Both call shapes return `True` (live-tested on free 21.0.4.5 through the in-app bridge (`tests/live_resolve2104_validation.py`)): the two-arg form lists the preset under the given name; the single-arg form names it after the file (as in the reporter's round-trip, PR #139). Per the shipped README the imported preset is not auto-loaded; the harness never loads it |
|
|
245
|
+
| 32 | `ExportUserPreferencesPreset(presetName, exportPath)` | ✅ | Resolve 21.0.4. Returns `True` and writes one file at exactly the given path, no extension appended (live-tested on free 21.0.4.5 through the in-app bridge (`tests/live_resolve2104_validation.py`); also PR #139) |
|
|
253
246
|
|
|
254
247
|
### ProjectManager
|
|
255
248
|
|
|
@@ -280,7 +273,7 @@ Every method in the DaVinci Resolve Scripting API and its test status. Methods a
|
|
|
280
273
|
| 23 | `LoadCloudProject({cloudSettings})` | ☁️ | Requires cloud infrastructure |
|
|
281
274
|
| 24 | `ImportCloudProject(filePath, {cloudSettings})` | ☁️ | Requires cloud infrastructure |
|
|
282
275
|
| 25 | `RestoreCloudProject(folderPath, {cloudSettings})` | ☁️ | Requires cloud infrastructure |
|
|
283
|
-
| 26 | `GetProjectAttributesInCurrentFolder()` |
|
|
276
|
+
| 26 | `GetProjectAttributesInCurrentFolder()` | ✅ | Resolve 21.0.4. Returns a dict keyed by project name, each with `lastModifiedDate` / `creationDate` / `notes` / `liveCollaborationMode`, for every project in the current folder (live-tested on free 21.0.4.5 through the in-app bridge (`tests/live_resolve2104_validation.py`); also issue #135 on Studio 21.0.4.5) |
|
|
284
277
|
|
|
285
278
|
### Project
|
|
286
279
|
|
|
@@ -439,7 +432,7 @@ Every method in the DaVinci Resolve Scripting API and its test status. Methods a
|
|
|
439
432
|
| 39 | `AnalyzeForIntellisearch(identifyFaces, isBetterMode)` | 🔬 | Resolve 21.0. Requires the AI IntelliSearch Extra; without it returns an error **string**, not `False` |
|
|
440
433
|
| 40 | `AnalyzeForSlate(markerColor)` | 🔬 | Resolve 21.0. Requires the AI Slate ID Extra. Documented `resolve.MARKER_*` constants do not exist on the handle |
|
|
441
434
|
| 41 | `RemoveMotionBlur({deblurOption})` | ✅ | Resolve 21.0.2 live test returns the new MediaPoolItem; source media path unchanged. Requires the AI Motion Deblur Extra |
|
|
442
|
-
| 42 | `GetTimeline()` |
|
|
435
|
+
| 42 | `GetTimeline()` | ✅ | Resolve 21.0.4. On a timeline's media pool item returns that timeline (same unique id); on a plain media clip returns `None` (live-tested on free 21.0.4.5 through the in-app bridge (`tests/live_resolve2104_validation.py`); also issue #131) |
|
|
443
436
|
|
|
444
437
|
### Timeline
|
|
445
438
|
|
|
@@ -503,7 +496,7 @@ Every method in the DaVinci Resolve Scripting API and its test status. Methods a
|
|
|
503
496
|
| 56 | `ClearMarkInOut(type)` | ✅ | Clears mark in/out |
|
|
504
497
|
| 57 | `GetVoiceIsolationState(trackIndex)` | ✅ | Resolve 20.3.2 live test returns voice isolation state |
|
|
505
498
|
| 58 | `SetVoiceIsolationState(trackIndex, {state})` | ✅ | Resolve 20.3.2 live test sets voice isolation state |
|
|
506
|
-
| 59 | `GetSelectedClips()` |
|
|
499
|
+
| 59 | `GetSelectedClips()` | ✅ | Resolve 21.0.4. Returns `[]` with nothing selected, and the clicked timeline item (its media pool item matches the test clip) after a click in the timeline (live-tested on free 21.0.4.5 through the in-app bridge (`tests/live_resolve2104_validation.py`); also issue #131). First name tried by the selection probe |
|
|
507
500
|
|
|
508
501
|
### TimelineItem
|
|
509
502
|
|
package/install.py
CHANGED
|
@@ -37,7 +37,7 @@ from src.utils.update_check import (
|
|
|
37
37
|
|
|
38
38
|
# ─── Version ──────────────────────────────────────────────────────────────────
|
|
39
39
|
|
|
40
|
-
VERSION = "5.2.
|
|
40
|
+
VERSION = "5.2.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
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 = "5.2.
|
|
96
|
+
VERSION = "5.2.2"
|
|
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
package/src/utils/captions.py
CHANGED
|
@@ -146,7 +146,15 @@ def build_blocks(
|
|
|
146
146
|
text = " ".join(_clean(w) for w in current)
|
|
147
147
|
lines = _wrap(text, max_chars_per_line, max_lines)
|
|
148
148
|
if lines is None:
|
|
149
|
-
|
|
149
|
+
# One word that will not fit: longer than the line cap (a URL,
|
|
150
|
+
# say) or more lines than max_lines. Split it into line-cap pieces
|
|
151
|
+
# rather than cutting it off.
|
|
152
|
+
pieces = [
|
|
153
|
+
token[i:i + max_chars_per_line]
|
|
154
|
+
for token in text.split()
|
|
155
|
+
for i in range(0, len(token), max_chars_per_line)
|
|
156
|
+
]
|
|
157
|
+
lines = _wrap(" ".join(pieces), max_chars_per_line, len(pieces))
|
|
150
158
|
blocks.append({
|
|
151
159
|
"start_seconds": _word_time(current[0], "start_seconds", "start"),
|
|
152
160
|
"end_seconds": (
|
|
@@ -151,18 +151,21 @@ _EVIDENCE_GATES: List[Dict[str, Any]] = [
|
|
|
151
151
|
{
|
|
152
152
|
"symbol": "Timeline.GetSelectedClips",
|
|
153
153
|
"introduced_in": "21.0.4",
|
|
154
|
-
"source": "
|
|
155
|
-
"note": "
|
|
156
|
-
"
|
|
157
|
-
"
|
|
158
|
-
"
|
|
154
|
+
"source": "measured",
|
|
155
|
+
"note": "Measured on free 21.0.4.5 through the in-app bridge "
|
|
156
|
+
"(tests/live_resolve2104_validation.py): [] with nothing selected, "
|
|
157
|
+
"the clicked timeline item after a click. First reported against 21.0.4.5 "
|
|
158
|
+
"and listed in the shipped scripting README.",
|
|
159
159
|
"issue": 131,
|
|
160
160
|
},
|
|
161
161
|
{
|
|
162
162
|
"symbol": "MediaPoolItem.GetTimeline",
|
|
163
163
|
"introduced_in": "21.0.4",
|
|
164
|
-
"source": "
|
|
165
|
-
"note": "
|
|
164
|
+
"source": "measured",
|
|
165
|
+
"note": "Measured on free 21.0.4.5 through the in-app bridge "
|
|
166
|
+
"(tests/live_resolve2104_validation.py): returns the timeline for a "
|
|
167
|
+
"timeline item and None for a plain clip. First reported against "
|
|
168
|
+
"21.0.4.5.",
|
|
166
169
|
"issue": 131,
|
|
167
170
|
},
|
|
168
171
|
{
|