davinci-resolve-mcp 2.145.1 → 2.145.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,20 @@
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.145.2 — launcher metadata before dependencies
6
+
7
+ ### Fixed
8
+
9
+ - **`davinci-resolve-advanced-mcp --help`/`--version` now work in fresh
10
+ source checkouts** (before `npm install`) — adapted from
11
+ [PR #178](https://github.com/samuelgursky/davinci-resolve-mcp/pull/178) by
12
+ @Rohitkanithi: metadata flags are handled before the stdio server import
13
+ (and before the Node-floor refusal — help is harmless on any Node), where
14
+ previously even `--help` died with `ERR_MODULE_NOT_FOUND`.
15
+ - **The installer banner's tool counts were stale** (32/329 vs the real
16
+ 36/353) — fixed and wired into the `test_doc_tool_counts` drift guard so
17
+ the banner can never drift independently again.
18
+
5
19
  ## What's New in v2.145.1 — bridge config override, honored end to end
6
20
 
7
21
  ### 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.145.1-blue.svg)](https://github.com/samuelgursky/davinci-resolve-mcp/releases)
5
+ [![Version](https://img.shields.io/badge/version-2.145.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.145.1-blue.svg)](https://github.com/samuelgursky/davinci-resolve-mcp/releases)
5
+ [![Version](https://img.shields.io/badge/version-2.145.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.145.1 版 README。如与英文原版有出入,以 [英文原版](README.md) 为准。
15
+ > 本翻译对应 v2.145.2 版 README。如与英文原版有出入,以 [英文原版](README.md) 为准。
16
16
 
17
17
  一个 Model Context Protocol (MCP) 服务器,让 AI 助手通过官方脚本 API 控制 DaVinci Resolve Studio(达芬奇)。它提供完整的 API 覆盖,外加带护栏的工作流助手,涵盖剪辑、媒体池整理、渲染设置、审阅标记、调色、Fusion、Fairlight、项目生命周期任务、扩展开发,以及不碰源媒体的媒体分析。
18
18
 
@@ -11,8 +11,36 @@
11
11
  */
12
12
 
13
13
  import { fileURLToPath, pathToFileURL } from 'node:url';
14
+ import fs from 'node:fs';
14
15
  import path from 'node:path';
15
16
 
17
+ const __dirname = path.dirname(fileURLToPath(import.meta.url));
18
+ const packageRoot = path.resolve(__dirname, '..');
19
+ const packageJson = JSON.parse(fs.readFileSync(path.join(packageRoot, 'package.json'), 'utf8'));
20
+ const version = packageJson.version || '0.0.0-dev';
21
+
22
+ function usage() {
23
+ return `DaVinci Resolve Advanced MCP ${version}
24
+
25
+ Usage:
26
+ davinci-resolve-advanced-mcp
27
+ davinci-resolve-advanced-mcp --version
28
+ davinci-resolve-advanced-mcp --help
29
+
30
+ Starts the offline DaVinci Resolve advanced MCP server over stdio.
31
+ `;
32
+ }
33
+
34
+ const command = process.argv[2];
35
+ if (command === '--help' || command === '-h' || command === 'help') {
36
+ process.stdout.write(usage());
37
+ process.exit(0);
38
+ }
39
+ if (command === '--version' || command === '-v' || command === 'version') {
40
+ process.stdout.write(`${version}\n`);
41
+ process.exit(0);
42
+ }
43
+
16
44
  // Node floor (package.json engines: >=20.9), enforced at STARTUP rather than
17
45
  // discovered per-feature: under an old Node the pure-JS tools limp along
18
46
  // while native-dep paths (better-sqlite3: project_read, fairlight DB actions,
@@ -34,7 +62,6 @@ if (major < 20 || (major === 20 && minor < 9)) {
34
62
  process.exit(1);
35
63
  }
36
64
 
37
- const __dirname = path.dirname(fileURLToPath(import.meta.url));
38
65
  const serverEntry = path.resolve(__dirname, '..', 'resolve-advanced', 'server', 'index.mjs');
39
66
 
40
67
  const { startServer } = await import(pathToFileURL(serverEntry).href);
package/install.py CHANGED
@@ -37,7 +37,7 @@ from src.utils.update_check import (
37
37
 
38
38
  # ─── Version ──────────────────────────────────────────────────────────────────
39
39
 
40
- VERSION = "2.145.1"
40
+ VERSION = "2.145.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
@@ -1474,7 +1474,7 @@ def verify_resolve_connection(python_path, api_path, lib_path):
1474
1474
 
1475
1475
  def print_banner():
1476
1476
  title = f"DaVinci Resolve MCP Server — Installer v{VERSION}"
1477
- subtitle = "32 compound · 329 full · 3 platforms"
1477
+ subtitle = "36 compound · 353 full · 3 platforms"
1478
1478
  print()
1479
1479
  print(bold(" ╔══════════════════════════════════════════════════════╗"))
1480
1480
  print(bold(f" ║{title:^54}║"))
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "davinci-resolve-mcp",
3
- "version": "2.145.1",
3
+ "version": "2.145.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.145.1"
90
+ VERSION = "2.145.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.145.1"
14
+ VERSION = "2.145.2"
15
15
 
16
16
  import base64
17
17
  import os