davinci-resolve-mcp 2.210.0 → 2.210.1

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,36 @@
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 v2.210.1 — frame capture and verify_output no longer read JobStatus in English
6
+
7
+ ### Fixed
8
+
9
+ - **Single-frame capture failed with `RENDER_FAILED` on every non-English Resolve (issue #191).**
10
+ `GetRenderJobStatus()["JobStatus"]` is a localized display string — `"Concluso"`
11
+ on an Italian install — and the capture gate compared it to the English word,
12
+ so a finished render with the file already on disk reported "Render did not
13
+ complete". Completion is now decided by `_render_job_completed()` on
14
+ `CompletionPercentage` and `Error`, which are locale-independent, with the
15
+ file-written check as the real proof. `render.verify_output` carried the same
16
+ comparison in its "not Complete" warning and its missing-file warning; both
17
+ use the same rule now, so a localized finished job verifies and a localized
18
+ failed job still does not. Reported with an exact API readback by
19
+ @gabrieleleonardi-sya.
20
+
21
+ ### Documentation
22
+
23
+ - New API truth entry for the localized `JobStatus` field, submitted to the
24
+ Blackmagic-facing report as a missing locale-independent status code, and a
25
+ regenerated `docs/reference/api-limitations.md`.
26
+
27
+ ### Validation
28
+
29
+ - Unit tests cover the reporter's readback (`Concluso` at 100%), a localized
30
+ failed job carrying `Error`, and a localized incomplete job without one; the
31
+ English fast path is unchanged. No localized Resolve is available on the
32
+ release machine, so the live evidence is the reporter's session on Studio
33
+ 21.0.2.4.
34
+
5
35
  ## What's New in v2.210.0 — every destructive action now carries a real risk rating
6
36
 
7
37
  ### 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-2.210.0-blue.svg)](https://github.com/samuelgursky/davinci-resolve-mcp/releases)
5
+ [![Version](https://img.shields.io/badge/version-2.210.1-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-36%20(353%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-2.210.0-blue.svg)](https://github.com/samuelgursky/davinci-resolve-mcp/releases)
5
+ [![Version](https://img.shields.io/badge/version-2.210.1-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-36%20(353%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
- > 本翻译对应 v2.210.0 版 README。如与英文原版有出入,以 [英文原版](README.md) 为准。
15
+ > 本翻译对应 v2.210.1 版 README。如与英文原版有出入,以 [英文原版](README.md) 为准。
16
16
 
17
17
  一个 Model Context Protocol (MCP) 服务器,让 AI 助手通过官方脚本 API 控制 DaVinci Resolve Studio(达芬奇)。它提供完整的 API 覆盖,外加带护栏的工作流助手,涵盖剪辑、媒体池整理、渲染设置、审阅标记、调色、Fusion、Fairlight、项目生命周期任务、扩展开发,以及不碰源媒体的媒体分析。
18
18
 
@@ -12,7 +12,7 @@ that none exists).
12
12
 
13
13
  **Verified on:** DaVinci Resolve Studio 21.0.2
14
14
 
15
- **Totals:** 41 missing capabilities, 50 bugs / unreliable behaviors.
15
+ **Totals:** 42 missing capabilities, 50 bugs / unreliable behaviors.
16
16
 
17
17
  The authoritative source is the runtime-queryable `api_truth` ledger
18
18
  (`resolve_control api_truth "<query>"`); this document is generated from
@@ -228,6 +228,15 @@ equivalent, blocking full automation.
228
228
  - **Workaround / current handling:** capture_media_template harvests mediaStartTime and the native clip elements; drt.assemble clones the source's own captured clip per cut (render-verified: the TC-bearing source plays picture and audio, and the full AAF route renders frame-accurately). Re-capture templates for TC-bearing media. The assemble bridge merges identical audio channel legs (report.audioChannelLegsMerged) instead of refusing them as a same-track overlap.
229
229
  - **Tags:** timecode, aaf, audio, drt, silent-failure
230
230
 
231
+ ### Project.GetRenderJobStatus JobStatus (localized display string)
232
+
233
+ - **Object:** `Project`
234
+ - **Signature:** `(jobId) -> {JobStatus, CompletionPercentage, TimeTakenToRenderInMs, Error?}`
235
+ - **Behavior:** JobStatus is a display string that follows the application language, not an enum. An English install reports "Complete"; an Italian install reports "Concluso" for the same finished job — read back as {JobStatus: "Concluso", CompletionPercentage: 100, TimeTakenToRenderInMs: 1225} on Studio 21.0.2.4 / macOS 15 with the output file complete on disk (issue #191, reporter's session). Any code that compares the field to the English word fails every non-English Resolve with an error that says the opposite of what happened; this server's single-frame capture did exactly that until v2.210.1. CompletionPercentage is numeric and locale-independent, and Error is populated on a failed job in every language.
236
+ - **Workaround / current handling:** Never gate on the JobStatus string. Treat a job as finished when CompletionPercentage reaches 100 and Error is empty, then confirm the output file exists — the file is the real proof either way (see the recordFrame entry above for a Complete job that wrote a stub). Report JobStatus verbatim for humans only. This server's _render_job_completed() applies the rule to frame capture and render.verify_output.
237
+ - **Reference:** [issue #191](https://github.com/samuelgursky/davinci-resolve-mcp/issues/191)
238
+ - **Tags:** render, localization, silent-failure
239
+
231
240
  ### MediaPool.ImportMedia (current-folder destination only)
232
241
 
233
242
  - **Object:** `MediaPool`
package/install.py CHANGED
@@ -37,7 +37,7 @@ from src.utils.update_check import (
37
37
 
38
38
  # ─── Version ──────────────────────────────────────────────────────────────────
39
39
 
40
- VERSION = "2.210.0"
40
+ VERSION = "2.210.1"
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": "2.210.0",
3
+ "version": "2.210.1",
4
4
  "description": "NPM bootstrapper for the DaVinci Resolve MCP Server.",
5
5
  "license": "MIT",
6
6
  "author": "Samuel Gursky <samgursky@gmail.com>",
@@ -87,7 +87,7 @@ if not logging.getLogger().handlers:
87
87
  handlers=[logging.StreamHandler()],
88
88
  )
89
89
 
90
- VERSION = "2.210.0"
90
+ VERSION = "2.210.1"
91
91
  logger = logging.getLogger("davinci-resolve-mcp")
92
92
  logger.info(f"Starting DaVinci Resolve MCP Server v{VERSION}")
93
93
  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 353-tool granular server instead
12
12
  """
13
13
 
14
- VERSION = "2.210.0"
14
+ VERSION = "2.210.1"
15
15
 
16
16
  import base64
17
17
  import os
@@ -14823,6 +14823,28 @@ def _playhead_frame_preview(tl, p: Dict[str, Any]):
14823
14823
  _restore_playhead(tl, original_tc, what="the thumbnail capture")
14824
14824
 
14825
14825
 
14826
+ def _render_job_completed(status: Optional[Dict[str, Any]]) -> bool:
14827
+ """Whether GetRenderJobStatus says the job finished — without reading English.
14828
+
14829
+ JobStatus is a localized display string that follows the application
14830
+ language: "Complete" on an English install, "Concluso" on an Italian one
14831
+ (issue #191). Comparing it to the English literal fails every non-English
14832
+ Resolve with an error that says the opposite of what happened. The
14833
+ locale-independent signals are CompletionPercentage (numeric) and Error
14834
+ (populated on a failed job), so those decide; the English literal is kept
14835
+ only as a fast path for the common case.
14836
+ """
14837
+ status = status or {}
14838
+ if str(status.get("JobStatus") or "") == "Complete":
14839
+ return True
14840
+ if status.get("Error"):
14841
+ return False
14842
+ try:
14843
+ return float(status.get("CompletionPercentage")) >= 100
14844
+ except (TypeError, ValueError):
14845
+ return False
14846
+
14847
+
14826
14848
  def _playhead_frame_render(proj, tl, p: Dict[str, Any]):
14827
14849
  """Render exactly one frame — the only frame-accurate capture route.
14828
14850
 
@@ -14944,9 +14966,14 @@ def _playhead_frame_render(proj, tl, p: Dict[str, Any]):
14944
14966
  time.sleep(0.25)
14945
14967
  waited += 0.25
14946
14968
  status = _ser(proj.GetRenderJobStatus(job)) or {}
14947
- if status.get("JobStatus") != "Complete":
14969
+ # Localized JobStatus ("Concluso" on an Italian install, issue #191)
14970
+ # cannot be compared to the English word; the file check below is the
14971
+ # real proof anyway.
14972
+ if not _render_job_completed(status):
14948
14973
  return _err(
14949
- f"Render did not complete: {status.get('JobStatus')}",
14974
+ f"Render did not complete: JobStatus {status.get('JobStatus')!r} "
14975
+ f"at {status.get('CompletionPercentage')}%"
14976
+ + (f" — {status.get('Error')}" if status.get("Error") else ""),
14950
14977
  code="RENDER_FAILED", category="api_error",
14951
14978
  state={"status": status, "frame": frame},
14952
14979
  )
@@ -20350,16 +20377,19 @@ def render(action: str, params: Optional[Dict[str, Any]] = None) -> Dict[str, An
20350
20377
  "issue #164)."
20351
20378
  )
20352
20379
  else:
20353
- if status.get("JobStatus") == "Complete":
20380
+ if _render_job_completed(status):
20354
20381
  warnings.append(
20355
- "JobStatus is Complete but the output file does not exist."
20382
+ f"JobStatus is {job_status!r} (complete) but the output "
20383
+ "file does not exist."
20356
20384
  )
20357
- if job_status and job_status != "Complete":
20385
+ if job_status and not _render_job_completed(status):
20358
20386
  # Spotted live: a Failed job that wrote a stub file otherwise
20359
20387
  # produced verified:true — a duration ratio means nothing when
20360
- # Resolve itself says the job did not complete.
20388
+ # Resolve itself says the job did not complete. Decided on the
20389
+ # locale-independent fields, not the JobStatus word (issue #191).
20361
20390
  warnings.append(
20362
- f"JobStatus is {job_status!r}, not Complete"
20391
+ f"JobStatus is {job_status!r} at "
20392
+ f"{status.get('CompletionPercentage')}%, not complete"
20363
20393
  + (f": {status.get('Error')}" if status.get("Error") else "")
20364
20394
  )
20365
20395
  result["warnings"] = warnings
@@ -2182,6 +2182,37 @@ API_TRUTH: List[Dict[str, Any]] = [
2182
2182
  "tags": ["timeline", "edit", "render", "silent-failure", "media-pool"],
2183
2183
  "issue": 164,
2184
2184
  },
2185
+ {
2186
+ "symbol": "Project.GetRenderJobStatus JobStatus (localized display string)",
2187
+ "object": "Project",
2188
+ "signature": "(jobId) -> {JobStatus, CompletionPercentage, "
2189
+ "TimeTakenToRenderInMs, Error?}",
2190
+ "reality": "JobStatus is a display string that follows the application "
2191
+ "language, not an enum. An English install reports "
2192
+ "\"Complete\"; an Italian install reports \"Concluso\" for "
2193
+ "the same finished job — read back as {JobStatus: "
2194
+ "\"Concluso\", CompletionPercentage: 100, "
2195
+ "TimeTakenToRenderInMs: 1225} on Studio 21.0.2.4 / macOS 15 "
2196
+ "with the output file complete on disk (issue #191, "
2197
+ "reporter's session). Any code that compares the field to "
2198
+ "the English word fails every non-English Resolve with an "
2199
+ "error that says the opposite of what happened; this "
2200
+ "server's single-frame capture did exactly that until "
2201
+ "v2.210.1. CompletionPercentage is numeric and "
2202
+ "locale-independent, and Error is populated on a failed "
2203
+ "job in every language.",
2204
+ "recommended": "Never gate on the JobStatus string. Treat a job as "
2205
+ "finished when CompletionPercentage reaches 100 and "
2206
+ "Error is empty, then confirm the output file exists — "
2207
+ "the file is the real proof either way (see the "
2208
+ "recordFrame entry above for a Complete job that wrote "
2209
+ "a stub). Report JobStatus verbatim for humans only. "
2210
+ "This server's _render_job_completed() applies the rule "
2211
+ "to frame capture and render.verify_output.",
2212
+ "tags": ["render", "localization", "silent-failure"],
2213
+ "submit": "missing",
2214
+ "issue": 191,
2215
+ },
2185
2216
  {
2186
2217
  "symbol": "Timeline.DeleteClips (requires the Edit page; flaky first attempt)",
2187
2218
  "object": "Timeline",