davinci-resolve-mcp 2.91.0 → 2.92.0

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,69 @@
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.92.0
6
+
7
+ Two corrections to advice this project was giving confidently and wrongly, both
8
+ from issues filed by users who hit them.
9
+
10
+ ### Fixed
11
+
12
+ - **`PYTHON3HOME` satisfies the macOS bridge preflight — uv/pixi/conda need no
13
+ `sudo`.** The preflight demanded a *framework* Python and sent everyone else
14
+ to a system-wide python.org install, which managed machines often forbid.
15
+ `uv`, `pixi` and conda-forge ship no `--enable-framework` build at all, so
16
+ their users got the warning no matter what they did. Reported by @rusanivsky
17
+ in #143, who had free Resolve 21.0.4.5 serving the bridge on uv-managed
18
+ CPython 3.12.13 with no python.org Python on the machine.
19
+
20
+ Framework-ness was never the variable. In `fusionscript.so` — read here on
21
+ Studio 19.1.3.7, a January 2025 binary — every `Python.framework` reference is
22
+ Python **2.7**, and there is no `Python.framework/Versions/3` string anywhere.
23
+ Python 3 is found through `PYTHON3HOME`, else `/usr/local/bin/python3`, then
24
+ probed for `sys.prefix` and dlopened as `<prefix>/lib/libpython3.X.dylib`.
25
+ python.org installs work because that installer creates
26
+ `/usr/local/bin/python3` — verified here, where it is a symlink into
27
+ `Python.framework/Versions/3.11`. Homebrew (`/opt/homebrew`), pyenv, uv and
28
+ conda land in neither place, which is the whole of the "framework Pythons
29
+ only" folklore.
30
+
31
+ The preflight now accepts either route and reports both. `PYTHON3HOME` is read
32
+ with `launchctl getenv`, never `os.environ`: Resolve is GUI-launched and
33
+ inherits launchd's environment, so reading our own shell would report a hit in
34
+ exactly the case that does not work. A `PYTHON3HOME` exported in the shell but
35
+ absent from launchd is called out, because it is the natural thing to try. The
36
+ old advice is corrected in the Lua canary, the `BRIDGE_UNAVAILABLE`
37
+ remediation, both READMEs and `docs/SKILL.md`.
38
+
39
+ ### Added
40
+
41
+ - **Domain skills ask the build what it cannot do.** v2.89.0 taught
42
+ `get_version` to report a connected build's missing surfaces, but only the
43
+ session skill ever asked — an agent entering through
44
+ `/timeline_edit_workflow` or `/color_grade_workflow` got identical guidance
45
+ whatever it was attached to. That is the hole @magwa101 fell into on DR 21 in
46
+ #132. `resolve-edit`, `resolve-color`, `resolve-conform` and
47
+ `resolve-media-analysis` now name the gated surfaces in their own domain, with
48
+ the floor and what to do instead, sourced from `resolve_versions.VERSION_GATES`
49
+ rather than prose. Each section also has to say that an empty list means
50
+ nothing *recorded* is missing, that probes use `name in dir(obj)` and never
51
+ bare `hasattr` (which returns `True` for every name on a Resolve object), and
52
+ that *gated* is not *absent* — clip speed is unreachable on every build and no
53
+ upgrade will help.
54
+ - `tests/test_skill_version_gates.py` fails when a skill quotes a floor the
55
+ ledger disagrees with. Confirmed it bites by mis-stating a floor and watching
56
+ it fail, not by trusting a green run.
57
+
58
+ ### Validation
59
+
60
+ - Suite: 2621 passed, 1 skipped. Static checks and drift guards clean.
61
+ - The binary strings and the `/usr/local/bin/python3` mechanism were confirmed
62
+ here on Studio 19.1.3.7. **Not reproduced here:** the live positive on free
63
+ 21.0.4.5 with uv Python — that is the reporter's, and is labelled as such in
64
+ the code comment.
65
+ - No Resolve scripting behavior changed; the bridge change is installer
66
+ preflight and advice text.
67
+
5
68
  ## What's New in v2.91.0
6
69
 
7
70
  A timeline item's source frames are counted in the **media's** frame rate, not
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.91.0-blue.svg)](https://github.com/samuelgursky/davinci-resolve-mcp/releases)
5
+ [![Version](https://img.shields.io/badge/version-2.92.0-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-34%20(353%20full)-blue.svg)](#server-modes)
@@ -59,11 +59,21 @@ transport tried, so a bridge that stops answering reports its own fault rather
59
59
  than quietly falling back to another transport. Use it when the bridge is the
60
60
  path you intend to depend on.
61
61
 
62
- On **macOS**, this requires a **framework Python** (python.org). Resolve
63
- enumerates `.py` scripts only when it finds one — Homebrew, pyenv and conda
64
- interpreters are not detected, and the script silently never appears in the
65
- menu. A Lua canary is installed alongside so you can tell that apart from a
66
- wrong folder.
62
+ On **macOS**, Resolve looks for Python 3 in exactly two places: the
63
+ `PYTHON3HOME` environment variable, then `/usr/local/bin/python3`. Homebrew,
64
+ pyenv, uv and conda land in neither, so the script silently never appears in the
65
+ menu. A python.org install works because its installer creates
66
+ `/usr/local/bin/python3` — but you do not need one: point Resolve at the
67
+ interpreter you already have, no `sudo` required.
68
+
69
+ ```bash
70
+ launchctl setenv PYTHON3HOME "$(python3 -c 'import sys; print(sys.prefix)')"
71
+ ```
72
+
73
+ Use `launchctl setenv`, not `export` — Resolve is launched from the Dock and
74
+ never sees your shell's environment. Restart Resolve afterwards. A Lua canary is
75
+ installed alongside so you can tell "Python not detected" apart from a wrong
76
+ folder.
67
77
 
68
78
  Validated on free 21.0.3.7 and Studio 19.1.3.7, both macOS. The Windows paths
69
79
  added in v2.70.1 (issue #106) shipped unverified; reports on free 21.0.1.11
@@ -72,7 +82,7 @@ installing, listing and serving from **both** `%PROGRAMDATA%` and `%APPDATA%` on
72
82
  Windows 11, so those paths are now confirmed rather than assumed. Linux is
73
83
  confirmed as well: a report on free 20.3.2.9 (issue #129, Fedora 43) shows the
74
84
  bridge installing to `~/.local/share/DaVinciResolve/Fusion/Scripts/Utility`,
75
- listing against the system Python — no framework-Python requirement on Linux
85
+ listing against the system Python — Linux has none of this discovery problem
76
86
  and serving end-to-end. No platform now rests on an assumption: macOS was
77
87
  validated directly, Windows and Linux on user reports.
78
88
 
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.91.0-blue.svg)](https://github.com/samuelgursky/davinci-resolve-mcp/releases)
5
+ [![Version](https://img.shields.io/badge/version-2.92.0-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-34%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.91.0 版 README。如与英文原版有出入,以 [英文原版](README.md) 为准。
15
+ > 本翻译对应 v2.92.0 版 README。如与英文原版有出入,以 [英文原版](README.md) 为准。
16
16
 
17
17
  一个 Model Context Protocol (MCP) 服务器,让 AI 助手通过官方脚本 API 控制 DaVinci Resolve Studio(达芬奇)。它提供完整的 API 覆盖,外加带护栏的工作流助手,涵盖剪辑、媒体池整理、渲染设置、审阅标记、调色、Fusion、Fairlight、项目生命周期任务、扩展开发,以及不碰源媒体的媒体分析。
18
18
 
@@ -53,9 +53,15 @@ python scripts/install_resolve_bridge.py
53
53
  `DAVINCI_RESOLVE_BRIDGE=1` 则是*强制*走桥接:它会成为唯一尝试的传输方式,因此桥接一旦停止响应会
54
54
  直接报错,而不会悄悄回退到其他传输。当你明确要依赖桥接时使用它。
55
55
 
56
- 在 **macOS** 上,这需要 **framework 版 Python**(python.org 官网安装包)。Resolve 只有找到 framework Python 才会枚举 `.py` 脚本——Homebrew、pyenv、conda 的解释器都不被识别,脚本会静默地不出现在菜单里。安装时会顺带装一个 Lua 金丝雀脚本,帮你区分"Python 不对"和"目录放错"。
56
+ 在 **macOS** 上,Resolve 只在两个位置查找 Python 3:环境变量 `PYTHON3HOME`,然后是 `/usr/local/bin/python3`。Homebrew、pyenv、uv、conda 都不装在这两处,因此脚本会静默地不出现在菜单里。python.org 安装包之所以有效,是因为它的安装程序会创建 `/usr/local/bin/python3`——但你并不需要它:直接把 Resolve 指向你已有的解释器即可,无需 `sudo`。
57
57
 
58
- 已在免费版 21.0.3.7 和 Studio 19.1.3.7 上验证(均为 macOS)。v2.70.1(issue #106)加入的 Windows 路径发布时未经验证;后续免费版 21.0.1.11(issue #109)和免费版 21.0.3.7(issue #112)的用户报告证实,Windows 11 上桥接在 `%PROGRAMDATA%` 和 `%APPDATA%` **两处**都能安装、列出并正常服务,这些路径现在是已证实而非假设。Linux 同样已获证实:免费版 20.3.2.9 的用户报告(issue #129,Fedora 43)显示桥接可安装到 `~/.local/share/DaVinciResolve/Fusion/Scripts/Utility`,用系统 Python 就能直接枚举脚本(Linux 不需要 framework 版 Python),并能端到端正常服务。现在没有任何平台停留在假设上:macOS 为本项目直接验证,Windows 和 Linux 来自用户报告。
58
+ ```bash
59
+ launchctl setenv PYTHON3HOME "$(python3 -c 'import sys; print(sys.prefix)')"
60
+ ```
61
+
62
+ 必须用 `launchctl setenv` 而不是 `export`——Resolve 从 Dock 启动,看不到你 shell 的环境变量。之后重启 Resolve。安装时会顺带装一个 Lua 金丝雀脚本,帮你区分"Python 未被检测到"和"目录放错"。
63
+
64
+ 已在免费版 21.0.3.7 和 Studio 19.1.3.7 上验证(均为 macOS)。v2.70.1(issue #106)加入的 Windows 路径发布时未经验证;后续免费版 21.0.1.11(issue #109)和免费版 21.0.3.7(issue #112)的用户报告证实,Windows 11 上桥接在 `%PROGRAMDATA%` 和 `%APPDATA%` **两处**都能安装、列出并正常服务,这些路径现在是已证实而非假设。Linux 同样已获证实:免费版 20.3.2.9 的用户报告(issue #129,Fedora 43)显示桥接可安装到 `~/.local/share/DaVinciResolve/Fusion/Scripts/Utility`,用系统 Python 就能直接枚举脚本(Linux 完全没有这套查找问题),并能端到端正常服务。现在没有任何平台停留在假设上:macOS 为本项目直接验证,Windows 和 Linux 来自用户报告。
59
65
 
60
66
  注意:桥接在服务期间会一直占用端口。v2.70.3 之前,Windows 上的桥接可能在 Resolve 退出后存活,挡住下一个会话的监听器;如果你用的是旧版本且桥接不响应了,检查是否有残留的 `fuscript.exe` 还占着端口。
61
67
 
package/docs/SKILL.md CHANGED
@@ -30,12 +30,17 @@ scripting is unavailable, with no environment variable needed.
30
30
  tried, so its faults surface directly instead of degrading to another path.
31
31
  Existing tool call sites work unchanged. Two things to know when diagnosing it:
32
32
 
33
- - On macOS, Resolve lists `.py` scripts only when it can find a **framework
34
- Python** (python.org). Homebrew/pyenv/conda are not detected and the script
35
- simply never appears, with no error. The installer preflights this and ships a
36
- Lua canary, which always lists, so "Python not detected" is distinguishable
37
- from "wrong folder". The preflight is macOS-only off macOS Resolve finds
38
- Python by other means, and running the check there was a false alarm (#106).
33
+ - On macOS, Resolve finds Python 3 through **`PYTHON3HOME`, then
34
+ `/usr/local/bin/python3`** and nowhere else, so Homebrew/pyenv/uv/conda
35
+ interpreters simply never appear, with no error. python.org installs work
36
+ because that installer creates `/usr/local/bin/python3`; framework-ness itself
37
+ is not the variable (#143). The sudo-free fix is
38
+ `launchctl setenv PYTHON3HOME "$(python3 -c 'import sys; print(sys.prefix)')"`
39
+ — `launchctl`, not `export`, because Resolve is GUI-launched and inherits
40
+ launchd's environment. The installer preflights both routes and ships a Lua
41
+ canary, which always lists, so "Python not detected" is distinguishable from
42
+ "wrong folder". The preflight is macOS-only — off macOS Resolve finds Python
43
+ by other means, and running the check there was a false alarm (#106).
39
44
  - **Windows: both script folders confirmed.** `%PROGRAMDATA%` (#109) and
40
45
  `%APPDATA%` (#112) have each been shown serving the bridge on Windows 11 free
41
46
  builds. If a user reports the menu entry missing on Windows, ask whether the
package/install.py CHANGED
@@ -36,7 +36,7 @@ from src.utils.update_check import (
36
36
 
37
37
  # ─── Version ──────────────────────────────────────────────────────────────────
38
38
 
39
- VERSION = "2.91.0"
39
+ VERSION = "2.92.0"
40
40
  # Only hard floor: mcp[cli] requires Python 3.10+. There is no upper bound —
41
41
  # Resolve's scripting bridge loads into newer interpreters on recent builds
42
42
  # (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.91.0",
3
+ "version": "2.92.0",
4
4
  "description": "NPM bootstrapper for the DaVinci Resolve MCP Server.",
5
5
  "license": "MIT",
6
6
  "author": "Samuel Gursky <samgursky@gmail.com>",
@@ -223,22 +223,69 @@ def stale_container_warning(targets: list[Path]) -> str | None:
223
223
  )
224
224
 
225
225
 
226
- #: Resolve enumerates `.py` scripts in Workspace > Scripts only when it finds a
227
- #: **framework** Python. Homebrew/pyenv/conda interpreters are not detected, and
228
- #: the failure is completely silent: the script sits in the right folder with the
229
- #: right permissions and simply never appears. Lua is embedded, so `.lua` always
230
- #: lists — which is why a Lua canary is installed alongside the probe.
226
+ #: Resolve enumerates `.py` scripts in Workspace > Scripts only when it can find
227
+ #: and load a Python 3, and the failure is completely silent: the script sits in
228
+ #: the right folder with the right permissions and simply never appears. Lua is
229
+ #: embedded, so `.lua` always lists which is why a Lua canary is installed
230
+ #: alongside the probe.
231
+ #:
232
+ #: **What it actually looks for (issue #143, corrected 2026-08-10).** This check
233
+ #: used to require a *framework* build and send everyone else to python.org. That
234
+ #: was the right remedy for the wrong reason, and it turned a one-line fix into a
235
+ #: system-wide `sudo` install that managed machines often forbid. In
236
+ #: `fusionscript.so` — read on Studio 19.1.3.7, a January 2025 binary, matching
237
+ #: what the reporter read on 21.0.4.5 — every `Python.framework` reference is
238
+ #: Python **2.7**:
239
+ #:
240
+ #: /Library/Frameworks/Python.framework/Versions/2.7/
241
+ #: /System/Library/Frameworks/Python.framework/Versions/2.7/
242
+ #:
243
+ #: There is no `Python.framework/Versions/3` string at all. Python 3 is found by
244
+ #: a different mechanism entirely, whose pieces sit adjacent in the binary:
245
+ #:
246
+ #: PYTHON3HOME
247
+ #: /usr/local/bin/python3
248
+ #: python3 -c 'import sys; sys.stdout.write("%s.%s|%s" % (sys.version_info.major, sys.version_info.minor, sys.prefix))'
249
+ #: /libpython
250
+ #:
251
+ #: i.e. resolve `PYTHON3HOME`, else `/usr/local/bin/python3`; probe it for its
252
+ #: version and `sys.prefix`; `dlopen` `<prefix>/lib/libpython3.X.dylib`. The
253
+ #: ordering is inferred from adjacency rather than decompiled control flow, but
254
+ #: the two entry points are not in doubt.
255
+ #:
256
+ #: That explains every observation the old rule was built on. python.org works
257
+ #: because its installer creates `/usr/local/bin/python3` — verified here, where
258
+ #: it is a symlink into `Python.framework/Versions/3.11`. Homebrew on Apple
259
+ #: silicon installs to `/opt/homebrew/bin`, pyenv to `~/.pyenv/shims`, and uv to
260
+ #: `~/.local/share/uv/...`; none of them land `/usr/local/bin/python3`, so none
261
+ #: are found. Framework-ness was never the variable — it was correlated with it.
262
+ #:
263
+ #: So a non-framework interpreter works once Resolve can see it, and `uv`/`pixi`/
264
+ #: conda-forge users are not stuck: they can point `PYTHON3HOME` at their prefix
265
+ #: without touching a system directory. It must be set with `launchctl setenv`,
266
+ #: not `export` — Resolve is GUI-launched and inherits launchd's environment, not
267
+ #: any shell's.
231
268
  _FRAMEWORK_PYTHON_ROOTS = (
232
269
  Path("/Library/Frameworks/Python.framework/Versions"),
233
270
  Path("/System/Library/Frameworks/Python.framework/Versions"),
234
271
  )
235
272
 
273
+ #: The interpreter path baked into fusionscript.so as the fallback when
274
+ #: PYTHON3HOME is unset. This is the one python.org's installer creates.
275
+ _FALLBACK_PYTHON3 = Path("/usr/local/bin/python3")
276
+
236
277
  _LUA_CANARY = """-- Installed by davinci-resolve-mcp as an enumeration canary.
237
278
  -- If THIS appears under Workspace > Scripts but resolve_bridge_probe does not,
238
- -- Resolve is listing Lua and silently skipping Python: it cannot find a
239
- -- framework Python install. Install one from python.org and restart Resolve.
240
- print("Resolve is enumerating scripts. If the Python probe is missing, install a")
241
- print("framework Python from python.org (Homebrew/pyenv are NOT detected).")
279
+ -- Resolve is listing Lua and silently skipping Python: it cannot find a Python 3.
280
+ -- It looks at PYTHON3HOME, then /usr/local/bin/python3 -- and nowhere else, which
281
+ -- is why Homebrew, pyenv, uv and conda interpreters go unseen. Either point it at
282
+ -- the one you have (no sudo):
283
+ -- launchctl setenv PYTHON3HOME "$(python3 -c 'import sys; print(sys.prefix)')"
284
+ -- (launchctl, not export -- Resolve never sees your shell), or install a
285
+ -- python.org build, which creates /usr/local/bin/python3. Restart Resolve after.
286
+ print("Resolve is enumerating scripts. If the Python probe is missing, Resolve")
287
+ print("cannot find a Python 3: set PYTHON3HOME with launchctl setenv, or install")
288
+ print("a python.org build. Homebrew/pyenv/uv/conda are not looked at directly.")
242
289
  """
243
290
 
244
291
 
@@ -258,37 +305,145 @@ def framework_pythons() -> list[str]:
258
305
  return found
259
306
 
260
307
 
308
+ def launchd_env(name: str) -> str | None:
309
+ """A variable's value as a GUI-launched Resolve sees it.
310
+
311
+ Deliberately NOT ``os.environ``. Resolve is started from the Dock or Finder,
312
+ so it inherits launchd's environment; a ``export PYTHON3HOME=...`` in the
313
+ terminal running this installer is invisible to it. Reading our own
314
+ environment would report a hit in precisely the case where the user has done
315
+ the wrong thing and needs to be told so.
316
+ """
317
+ import subprocess
318
+
319
+ try:
320
+ completed = subprocess.run(
321
+ ["launchctl", "getenv", name],
322
+ capture_output=True, text=True, timeout=10, check=False,
323
+ )
324
+ except (OSError, ValueError, subprocess.SubprocessError):
325
+ return None
326
+ value = (completed.stdout or "").strip()
327
+ return value or None
328
+
329
+
330
+ def python3_home_prefix() -> dict:
331
+ """Is PYTHON3HOME set for Resolve, and does it point at a loadable Python 3?
332
+
333
+ "Loadable" means the `lib/libpython3.X.dylib` that fusionscript.so dlopens.
334
+ An interpreter that cannot supply one is reported as set-but-unusable rather
335
+ than counted, because the silent-non-enumeration symptom is identical and the
336
+ remedy is not.
337
+ """
338
+ value = launchd_env("PYTHON3HOME")
339
+ result = {
340
+ "value": value,
341
+ "in_launchd": value is not None,
342
+ "in_this_shell": os.environ.get("PYTHON3HOME") or None,
343
+ "dylib": None,
344
+ "usable": False,
345
+ }
346
+ if not value:
347
+ return result
348
+ try:
349
+ dylibs = sorted(Path(value).glob("lib/libpython3.*.dylib"))
350
+ except OSError:
351
+ dylibs = []
352
+ if dylibs:
353
+ result["dylib"] = str(dylibs[0])
354
+ result["usable"] = True
355
+ return result
356
+
357
+
358
+ def fallback_python3() -> dict:
359
+ """`/usr/local/bin/python3` — the path baked into fusionscript.so.
360
+
361
+ Present for a python.org install (its installer creates it) and absent for
362
+ Homebrew, pyenv, uv and conda, which is the whole of the "framework Pythons
363
+ only" folklore.
364
+ """
365
+ result = {"path": str(_FALLBACK_PYTHON3), "exists": False, "resolves_to": None}
366
+ try:
367
+ if not _FALLBACK_PYTHON3.exists():
368
+ return result
369
+ result["exists"] = True
370
+ result["resolves_to"] = str(_FALLBACK_PYTHON3.resolve())
371
+ except OSError:
372
+ pass
373
+ return result
374
+
375
+
261
376
  def python_preflight() -> dict:
262
377
  """Will Resolve list the Python probe we are about to install?
263
378
 
264
- The framework-Python trap is **macOS-only**: `/Library/Frameworks/...` does
265
- not exist on Windows or Linux, where Resolve finds Python by other means (the
266
- registry, or the system interpreter). Running the macOS check there always
267
- found nothing and emitted the macOS remediation — telling the Windows 11 user
268
- in issue #106, who had a working python.org 3.12, to go install the Python
269
- they already had. Report "no known reason it will not list" off macOS rather
270
- than a false alarm; the Lua canary still ships either way, so a genuine
271
- enumeration problem remains diagnosable.
379
+ The trap is **macOS-only**: `/Library/Frameworks/...` and
380
+ `/usr/local/bin/python3` are not how Resolve finds Python on Windows or
381
+ Linux (the registry, or the system interpreter). Running the macOS check
382
+ there always found nothing and emitted the macOS remediation — telling the
383
+ Windows 11 user in issue #106, who had a working python.org 3.12, to go
384
+ install the Python they already had. Report "no known reason it will not
385
+ list" off macOS rather than a false alarm; the Lua canary still ships either
386
+ way, so a genuine enumeration problem remains diagnosable.
387
+
388
+ On macOS, Resolve is satisfied by EITHER discovery route (see the note on
389
+ `_FRAMEWORK_PYTHON_ROOTS`), so requiring a framework build failed a `uv` or
390
+ `pixi` user who had a perfectly good interpreter and sent them to a
391
+ system-wide `sudo` install they may not be permitted to run — issue #143,
392
+ where free Resolve 21.0.4.5 ran the bridge on uv-managed CPython 3.12.13
393
+ with no python.org Python on the machine at all.
272
394
  """
273
395
  if sys.platform != "darwin":
274
396
  return {
275
397
  "framework_pythons": [],
398
+ "python3_home": None,
399
+ "fallback_python3": None,
276
400
  "resolve_will_list_python_scripts": True,
277
401
  "advice": None,
278
402
  }
279
403
  frameworks = framework_pythons()
404
+ home = python3_home_prefix()
405
+ fallback = fallback_python3()
406
+ # Either route is sufficient. PYTHON3HOME wins when both are present: that is
407
+ # the order the binary's strings imply, and it is the one the user chose.
408
+ found = home["usable"] or fallback["exists"] or bool(frameworks)
409
+ advice = None
410
+ if not found:
411
+ advice = (
412
+ "Resolve cannot find a Python 3, so it will silently ignore every "
413
+ ".py script in its Scripts folders — they will simply not appear in "
414
+ "Workspace > Scripts, with no error. It looks in exactly two places: "
415
+ "the PYTHON3HOME environment variable, then /usr/local/bin/python3. "
416
+ "Homebrew (/opt/homebrew/bin), pyenv, uv and conda land in neither, "
417
+ "which is why they appear 'unsupported'.\n"
418
+ "Fix it either way:\n"
419
+ " 1. Point Resolve at the interpreter you already have, no sudo:\n"
420
+ " launchctl setenv PYTHON3HOME \"$(python3 -c 'import sys; "
421
+ "print(sys.prefix)')\"\n"
422
+ " Use launchctl, NOT export — Resolve is launched from the Dock "
423
+ "and never sees your shell's environment. The prefix must contain "
424
+ "lib/libpython3.X.dylib.\n"
425
+ " 2. Or install a python.org build, which creates "
426
+ "/usr/local/bin/python3 for you.\n"
427
+ "Restart Resolve either way, then re-check. The Lua canary installed "
428
+ "alongside will list regardless, so you can tell 'Python not "
429
+ "detected' apart from 'wrong folder'."
430
+ )
431
+ elif home["in_this_shell"] and not home["in_launchd"]:
432
+ # Found by another route, but the user has clearly tried this one and it
433
+ # will not survive into Resolve. Say so before they conclude it worked.
434
+ advice = (
435
+ "PYTHON3HOME is set in this shell but not in launchd, so Resolve "
436
+ "will not see it — Resolve is GUI-launched and inherits launchd's "
437
+ "environment, not your shell's. Python will still be found via "
438
+ "another route this time. To make PYTHON3HOME the one that counts: "
439
+ "launchctl setenv PYTHON3HOME \"$PYTHON3HOME\", then restart Resolve."
440
+ )
280
441
  return {
281
442
  "framework_pythons": frameworks,
282
- "resolve_will_list_python_scripts": bool(frameworks),
283
- "advice": None if frameworks else (
284
- "No framework Python found. Resolve will silently ignore every .py "
285
- "script in its Scripts folders — they will simply not appear in "
286
- "Workspace > Scripts, with no error. Homebrew, pyenv and conda "
287
- "interpreters are NOT detected. Install a framework build from "
288
- "python.org (any recent 3.x), restart Resolve, and re-check. The "
289
- "Lua canary installed alongside will list either way, so you can "
290
- "tell 'Python not detected' apart from 'wrong folder'."
291
- ),
443
+ "python3_home": home,
444
+ "fallback_python3": fallback,
445
+ "resolve_will_list_python_scripts": found,
446
+ "advice": advice,
292
447
  }
293
448
 
294
449
 
@@ -87,7 +87,7 @@ if not logging.getLogger().handlers:
87
87
  handlers=[logging.StreamHandler()],
88
88
  )
89
89
 
90
- VERSION = "2.91.0"
90
+ VERSION = "2.92.0"
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.91.0"
14
+ VERSION = "2.92.0"
15
15
 
16
16
  import base64
17
17
  import os
@@ -980,8 +980,10 @@ def _not_connected_error():
980
980
  reason="DAVINCI_RESOLVE_BRIDGE is set, so no other transport is tried.",
981
981
  remediation="In Resolve, run Workspace > Scripts > resolve_bridge. If it is not in "
982
982
  "that menu, run `python scripts/install_resolve_bridge.py` and restart "
983
- "Resolve; a framework Python from python.org is required for Resolve to "
984
- "list .py scripts at all.",
983
+ "Resolve. On macOS, Resolve lists .py scripts only if it can find a "
984
+ "Python 3 via PYTHON3HOME or /usr/local/bin/python3; if neither exists, "
985
+ "run `launchctl setenv PYTHON3HOME \"$(python3 -c 'import sys; "
986
+ "print(sys.prefix)')\"` (launchctl, not export) and restart Resolve.",
985
987
  state={"resolve_running": running, "bridge_enabled": True},
986
988
  )
987
989
  if running: