davinci-resolve-mcp 2.205.1 → 2.205.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 CHANGED
@@ -2,6 +2,23 @@
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.205.2 — #184: background analysis actually starts
6
+
7
+ ### Fixed
8
+
9
+ - **`background=true` / `async_job=true` silently never ran.**
10
+ `start_batch_job` derived the runner's project root with
11
+ `str(plan["output_root"])`, but that field holds the *mapping*
12
+ `resolve_output_root()` returns, not a path. `str()` on it produced a dict
13
+ repr — and because that repr is a **non-empty** string it satisfied the
14
+ `if wants_runner and job_id and project_root` guard, so the runner was handed
15
+ a "directory" naming nothing on disk. It found no job store, returned
16
+ `job_not_found`, and the caller was told to go debug a job that existed and
17
+ was perfectly healthy. Reported and fixed in #184 by @turapins, who also
18
+ established that `batch_cli` and the analysis dashboard already read the
19
+ field as a mapping — `server.py` was the single consumer out of step, so the
20
+ fix belonged there rather than in the mapping's shape.
21
+
5
22
  ## What's New in v2.205.1 — #182: the bridge preflight checks both halves of Resolve's Python lookup
6
23
 
7
24
  ### Fixed
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.205.1-blue.svg)](https://github.com/samuelgursky/davinci-resolve-mcp/releases)
5
+ [![Version](https://img.shields.io/badge/version-2.205.2-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.205.1-blue.svg)](https://github.com/samuelgursky/davinci-resolve-mcp/releases)
5
+ [![Version](https://img.shields.io/badge/version-2.205.2-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.205.1 版 README。如与英文原版有出入,以 [英文原版](README.md) 为准。
15
+ > 本翻译对应 v2.205.2 版 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 = "2.205.1"
40
+ VERSION = "2.205.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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "davinci-resolve-mcp",
3
- "version": "2.205.1",
3
+ "version": "2.205.2",
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.205.1"
90
+ VERSION = "2.205.2"
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.205.1"
14
+ VERSION = "2.205.2"
15
15
 
16
16
  import base64
17
17
  import os
@@ -9733,6 +9733,20 @@ def _media_analysis_bool(value: Any, default: bool = False) -> bool:
9733
9733
  return bool(value)
9734
9734
 
9735
9735
 
9736
+ def _media_analysis_plan_project_root(created: Any) -> str:
9737
+ """Extract the project root path from a created batch job.
9738
+
9739
+ `plan["output_root"]` holds the mapping `resolve_output_root()` returns
9740
+ ({"success", "base_root", "project_root", "project_directory", ...}), not a
9741
+ path. `str()` on it yields a dict repr, which is a non-empty string and so
9742
+ passes a truthiness guard while naming no directory that exists.
9743
+ """
9744
+ output_root = (created.get("plan") or {}).get("output_root") or ""
9745
+ if isinstance(output_root, dict):
9746
+ output_root = output_root.get("project_root") or ""
9747
+ return str(output_root)
9748
+
9749
+
9736
9750
  MEDIA_ANALYSIS_ASYNC_QUEUED = "queued"
9737
9751
  MEDIA_ANALYSIS_ASYNC_RUNNING = "running"
9738
9752
 
@@ -22310,7 +22324,7 @@ async def media_analysis(action: str, params: Optional[Dict[str, Any]] = None, c
22310
22324
  # get a runner. Reached either by the analyze_* divert (which sets
22311
22325
  # _async_mode) or by calling start_batch_job with background=true.
22312
22326
  job_id = str((created.get("job") or {}).get("job_id") or "")
22313
- project_root = str((created.get("plan") or {}).get("output_root") or "")
22327
+ project_root = _media_analysis_plan_project_root(created)
22314
22328
  wants_runner = p.get("_async_mode") == MEDIA_ANALYSIS_ASYNC_RUNNING or (
22315
22329
  _media_analysis_bool(p.get("background"), False)
22316
22330
  or _media_analysis_bool(p.get("async_job"), False)