davinci-resolve-mcp 2.97.3 → 2.97.4
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 +47 -0
- package/README.md +1 -1
- package/README.zh-CN.md +2 -2
- package/docs/README.md +53 -9
- package/install.py +1 -1
- package/package.json +1 -1
- package/src/granular/common.py +1 -1
- package/src/server.py +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,53 @@
|
|
|
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.97.4
|
|
6
|
+
|
|
7
|
+
**Drift is caught at the edit, not at publish time.** Tooling and docs only —
|
|
8
|
+
no server behavior changed, and no Resolve live run was required or performed.
|
|
9
|
+
|
|
10
|
+
### Added
|
|
11
|
+
|
|
12
|
+
- **Two opt-in `PostToolUse` hooks** in `.claude/hooks/`. Like the two existing
|
|
13
|
+
`PreToolUse` guards, they ship as scripts and are **not** wired up by default;
|
|
14
|
+
opt in via your own gitignored `.claude/settings.local.json` (the block is in
|
|
15
|
+
[docs/README.md](docs/README.md)).
|
|
16
|
+
- `agent_rules_drift_check.py` runs `node scripts/agent-rules/generate.mjs
|
|
17
|
+
--check` after an edit to anything the generator actually reads
|
|
18
|
+
(`docs/SKILL.md`, `docs/kernels/README.md`, `resolve-advanced/README.md`,
|
|
19
|
+
and `generate.mjs` itself, which carries the DOMAINS manifest inline) or to
|
|
20
|
+
`AGENTS.md`, which it writes. It separates the generator's two exit-1
|
|
21
|
+
paths: real staleness always prints `N agent-rule file(s) are stale`, a
|
|
22
|
+
throw never does — and telling a session to regenerate when the generator
|
|
23
|
+
is the thing that crashed sends it in a circle. Watching outputs but not
|
|
24
|
+
inputs was the original bug: bumping the compound tool count in
|
|
25
|
+
`docs/SKILL.md` left five generated files stale and the hook said nothing.
|
|
26
|
+
**A new generator input has to be added to `SOURCE_PATHS` or the hook goes
|
|
27
|
+
silent on exactly the edit it exists for.**
|
|
28
|
+
- `run_matching_test.py` runs the matching `tests/test_<module>.py` after an
|
|
29
|
+
edit under `src/`, resolving the project venv (`venv/bin/python`) before
|
|
30
|
+
`python3` so `pytest` is importable rather than reporting a false failure.
|
|
31
|
+
A fast partial net, not coverage: 72 of the 126 modules under `src/` follow
|
|
32
|
+
the convention, densely in `src/utils/` and not at all for `src/server.py`,
|
|
33
|
+
`src/granular/common.py`, or `src/control_panel.py`. Silence means "no
|
|
34
|
+
matching test file", not "this edit is fine".
|
|
35
|
+
- **`drift-guard-reviewer` subagent** (`.claude/agents/`) — runs the drift-guard
|
|
36
|
+
test family plus the adjacent checks `npm-publish.yml` runs before every
|
|
37
|
+
publish, on demand and in its own context. It reports what is stale and which
|
|
38
|
+
regeneration command fixes it; it does not fix anything.
|
|
39
|
+
- **`release-check` skill** (`/release-check`) — a thin wrapper that reads and
|
|
40
|
+
follows [docs/process/release-process.md](docs/process/release-process.md)
|
|
41
|
+
from disk. It deliberately does not restate the checklist: a second copy can
|
|
42
|
+
drift from the original, which `CLAUDE.md` prohibits.
|
|
43
|
+
|
|
44
|
+
### Changed
|
|
45
|
+
|
|
46
|
+
- `docs/README.md` documents all four hooks, all three subagents, and the new
|
|
47
|
+
skill in place, including the opt-in JSON block.
|
|
48
|
+
|
|
49
|
+
Contributed by [@Grimthereapper](https://github.com/Grimthereapper) in
|
|
50
|
+
[#149](https://github.com/samuelgursky/davinci-resolve-mcp/pull/149).
|
|
51
|
+
|
|
5
52
|
## What's New in v2.97.3
|
|
6
53
|
|
|
7
54
|
**`source_end` no longer has the start timecode baked into it.** Reported by
|
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)
|
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
|
-
> 本翻译对应 v2.97.
|
|
15
|
+
> 本翻译对应 v2.97.4 版 README。如与英文原版有出入,以 [英文原版](README.md) 为准。
|
|
16
16
|
|
|
17
17
|
一个 Model Context Protocol (MCP) 服务器,让 AI 助手通过官方脚本 API 控制 DaVinci Resolve Studio(达芬奇)。它提供完整的 API 覆盖,外加带护栏的工作流助手,涵盖剪辑、媒体池整理、渲染设置、审阅标记、调色、Fusion、Fairlight、项目生命周期任务、扩展开发,以及不碰源媒体的媒体分析。
|
|
18
18
|
|
package/docs/README.md
CHANGED
|
@@ -69,23 +69,29 @@ skill routes, these two walk a whole job:
|
|
|
69
69
|
- `resolve-tighten-recording` (`.claude/skills/resolve-tighten-recording/SKILL.md`)
|
|
70
70
|
— **subtractive**: remove dead air from one long single-take recording.
|
|
71
71
|
|
|
72
|
-
|
|
72
|
+
Three more sit outside the domain routing:
|
|
73
73
|
|
|
74
74
|
- `house-style` (`.claude/skills/house-style/SKILL.md`) — accumulated editorial
|
|
75
75
|
corrections, so the same note is not given twice. Claude-only; append to it
|
|
76
76
|
when an editorial decision is corrected.
|
|
77
77
|
- `resolve-session` (`.claude/skills/resolve-session/SKILL.md`) — `/resolve-session`
|
|
78
78
|
connects, confirms edition and bridge, and reports project/timeline/pool state.
|
|
79
|
+
- `release-check` (`.claude/skills/release-check/SKILL.md`) — `/release-check`
|
|
80
|
+
walks a version bump using [docs/process/release-process.md](process/release-process.md)
|
|
81
|
+
as the sole source; the skill wraps that doc, it does not duplicate it.
|
|
79
82
|
|
|
80
83
|
The offline half of every one is the advanced server; see
|
|
81
84
|
[Advanced Server](../resolve-advanced/README.md).
|
|
82
85
|
|
|
83
86
|
## Claude Code Hooks and Subagents
|
|
84
87
|
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
88
|
+
Four hooks live in `.claude/hooks/` — two `PreToolUse` guards enforcing rules
|
|
89
|
+
`AGENTS.md` states in prose, and two `PostToolUse` checks that surface
|
|
90
|
+
engineering drift right after the edit that caused it instead of at the next
|
|
91
|
+
test run. All four ship as scripts but are **not** wired up by default — the
|
|
92
|
+
repository does not enable hooks on your behalf. Opt in by adding the block
|
|
93
|
+
below to your own `.claude/settings.local.json` (gitignored, so it stays
|
|
94
|
+
yours):
|
|
89
95
|
|
|
90
96
|
```json
|
|
91
97
|
{
|
|
@@ -111,13 +117,30 @@ hooks on your behalf. Opt in by adding the block below to your own
|
|
|
111
117
|
}
|
|
112
118
|
]
|
|
113
119
|
}
|
|
120
|
+
],
|
|
121
|
+
"PostToolUse": [
|
|
122
|
+
{
|
|
123
|
+
"matcher": "Write|Edit",
|
|
124
|
+
"hooks": [
|
|
125
|
+
{
|
|
126
|
+
"type": "command",
|
|
127
|
+
"command": "$CLAUDE_PROJECT_DIR/.claude/hooks/agent_rules_drift_check.py",
|
|
128
|
+
"timeout": 30
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
"type": "command",
|
|
132
|
+
"command": "$CLAUDE_PROJECT_DIR/.claude/hooks/run_matching_test.py",
|
|
133
|
+
"timeout": 90
|
|
134
|
+
}
|
|
135
|
+
]
|
|
136
|
+
}
|
|
114
137
|
]
|
|
115
138
|
}
|
|
116
139
|
}
|
|
117
140
|
```
|
|
118
141
|
|
|
119
142
|
Hooks are read at session start, so restart Claude Code after adding them. The
|
|
120
|
-
|
|
143
|
+
four are:
|
|
121
144
|
|
|
122
145
|
- `.claude/hooks/frame_verification_guard.py` — denies grade-applying actions on
|
|
123
146
|
`timeline_item_color` until the session has actually looked at a
|
|
@@ -127,15 +150,36 @@ two guards are:
|
|
|
127
150
|
- `.claude/hooks/source_media_guard.py` — denies shell commands that write,
|
|
128
151
|
move, or delete source media outside a scratch root. Reads (`ffprobe`, and
|
|
129
152
|
`ffmpeg` writing into scratch) pass.
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
153
|
+
- `.claude/hooks/agent_rules_drift_check.py` — after an edit to anything
|
|
154
|
+
`generate.mjs` reads (`docs/SKILL.md`, `docs/kernels/README.md`,
|
|
155
|
+
`resolve-advanced/README.md`, and `generate.mjs` itself, which carries the
|
|
156
|
+
DOMAINS manifest inline) or to `AGENTS.md`, which it writes, runs
|
|
157
|
+
`node scripts/agent-rules/generate.mjs --check` and surfaces the result. It
|
|
158
|
+
distinguishes real drift from a generator that threw before it could look —
|
|
159
|
+
regenerating fixes the first and not the second. Informational only; never
|
|
160
|
+
blocks. Skips quietly if `node` isn't on `PATH`. **If `generate.mjs` grows a
|
|
161
|
+
new input, add it to `SOURCE_PATHS` in the hook** — an unwatched input is a
|
|
162
|
+
silent hook on exactly the edit it exists to catch.
|
|
163
|
+
- `.claude/hooks/run_matching_test.py` — after an edit to `src/<module>.py`,
|
|
164
|
+
runs the matching `tests/test_<module>.py` if one exists, using the project
|
|
165
|
+
venv (`venv/bin/python`) so `pytest` is actually importable. Informational
|
|
166
|
+
only; skips quietly if there's no matching test file or no working `pytest`.
|
|
167
|
+
A fast partial net, not coverage: 72 of the 126 modules under `src/` have a
|
|
168
|
+
matching test under this convention, densely in `src/utils/` and not at all
|
|
169
|
+
for `src/server.py` or `src/granular/common.py`. Silence means "no matching
|
|
170
|
+
test file", not "this edit is fine".
|
|
171
|
+
|
|
172
|
+
Three review subagents in `.claude/agents/` run in their own context so bulky
|
|
173
|
+
output (frame images, full test transcripts) stays out of the main session:
|
|
133
174
|
|
|
134
175
|
- `cut-reviewer` — screens an assembled timeline from its frames and reports on
|
|
135
176
|
pacing, shot order, continuity, and coverage gaps.
|
|
136
177
|
- `grade-match-verifier` — measures shot match numerically from rendered frames
|
|
137
178
|
against the project's R−B tolerance, and reports mask pixel counts so an empty
|
|
138
179
|
skin mask cannot pass as a match.
|
|
180
|
+
- `drift-guard-reviewer` — runs the doc/generated-file drift-guard test family
|
|
181
|
+
(the same checks `npm-publish.yml` runs before every release) and reports
|
|
182
|
+
which files are stale relative to their source, without fixing them.
|
|
139
183
|
|
|
140
184
|
## Authoring References
|
|
141
185
|
|
package/install.py
CHANGED
|
@@ -37,7 +37,7 @@ from src.utils.update_check import (
|
|
|
37
37
|
|
|
38
38
|
# ─── Version ──────────────────────────────────────────────────────────────────
|
|
39
39
|
|
|
40
|
-
VERSION = "2.97.
|
|
40
|
+
VERSION = "2.97.4"
|
|
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
|
@@ -87,7 +87,7 @@ if not logging.getLogger().handlers:
|
|
|
87
87
|
handlers=[logging.StreamHandler()],
|
|
88
88
|
)
|
|
89
89
|
|
|
90
|
-
VERSION = "2.97.
|
|
90
|
+
VERSION = "2.97.4"
|
|
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()}")
|