davinci-resolve-mcp 2.55.2 → 2.56.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,29 @@
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.56.0
6
+
7
+ Destructive-action registry audit (EX-REG) — a systemic version of the EX2 bug.
8
+
9
+ Many destructive actions were registered under the **wrong tool key**, so
10
+ `is_destructive()` returned False and **version-on-mutate archiving / change
11
+ logging silently never fired** for them. Examples: `create_timeline`,
12
+ `auto_sync_audio`, `create_stereo_clip`, `append_to_timeline` were filed under
13
+ `timeline` though `media_pool` dispatches them; `set_cdl`, `copy_grades`,
14
+ `export_lut`, the version ops were under `timeline_item` though
15
+ `timeline_item_color` dispatches them; the Fusion-comp and take actions used stale
16
+ names (`add_fusion_comp`, `delete_take`) that matched no real handler.
17
+
18
+ - **Fixed** rebuilt `DESTRUCTIVE_ACTIONS_BY_TOOL` so every action is keyed under
19
+ the tool that actually dispatches it (stale names mapped to real ones:
20
+ `*_fusion_comp` → `*_comp`, `*_take` → `add`/`delete`/`select`/`finalize`,
21
+ `import_into` → `import_into_timeline`, `create_subtitles_from_audio` →
22
+ `create_subtitles`). Inert entries whose tool isn't governed (media_pool_item
23
+ `replace_clip`/`link_*`) were dropped. Catastrophic take/Fusion-comp deletes and
24
+ the media-pool create/sync ops are now archived as intended.
25
+ - **Added** the registry-drift guard now asserts *every* registry action is a real
26
+ handler of its tool (broad check enabled), so this class can't regress.
27
+
5
28
  ## What's New in v2.55.2
6
29
 
7
30
  Deep-QC P1 1b — required-param validation. Mutating/destructive actions that
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # DaVinci Resolve MCP Server
2
2
 
3
- [![Version](https://img.shields.io/badge/version-2.55.2-blue.svg)](https://github.com/samuelgursky/davinci-resolve-mcp/releases)
3
+ [![Version](https://img.shields.io/badge/version-2.56.0-blue.svg)](https://github.com/samuelgursky/davinci-resolve-mcp/releases)
4
4
  [![npm](https://img.shields.io/npm/v/davinci-resolve-mcp.svg?label=npm&color=CB3837)](https://www.npmjs.com/package/davinci-resolve-mcp)
5
5
  [![API Coverage](https://img.shields.io/badge/API%20Coverage-100%25-brightgreen.svg)](docs/reference/api-coverage.md)
6
6
  [![Tools](https://img.shields.io/badge/MCP%20Tools-34%20(341%20full)-blue.svg)](#server-modes)
package/install.py CHANGED
@@ -35,7 +35,7 @@ from src.utils.update_check import (
35
35
 
36
36
  # ─── Version ──────────────────────────────────────────────────────────────────
37
37
 
38
- VERSION = "2.55.2"
38
+ VERSION = "2.56.0"
39
39
  # Only hard floor: mcp[cli] requires Python 3.10+. There is no upper bound —
40
40
  # Resolve's scripting bridge loads into newer interpreters on recent builds
41
41
  # (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.55.2",
3
+ "version": "2.56.0",
4
4
  "description": "NPM bootstrapper for the DaVinci Resolve MCP Server.",
5
5
  "license": "MIT",
6
6
  "author": "Samuel Gursky <samgursky@gmail.com>",
@@ -80,7 +80,7 @@ if not logging.getLogger().handlers:
80
80
  handlers=[logging.StreamHandler()],
81
81
  )
82
82
 
83
- VERSION = "2.55.2"
83
+ VERSION = "2.56.0"
84
84
  logger = logging.getLogger("davinci-resolve-mcp")
85
85
  logger.info(f"Starting DaVinci Resolve MCP Server v{VERSION}")
86
86
  logger.info(f"Detected platform: {get_platform()}")
@@ -40,13 +40,17 @@ logger = logging.getLogger("resolve-mcp.destructive-hook")
40
40
  # here; (b) optionally add a metric-capture entry below if it has a sensible
41
41
  # default metric.
42
42
 
43
+ # Each action is keyed under the tool whose @_destructive_op wrapper actually
44
+ # DISPATCHES it. Historically many entries were filed under the wrong tool key
45
+ # (e.g. create_timeline/auto_sync_audio under "timeline" though they are media_pool
46
+ # actions; set_cdl/copy_grades under "timeline_item" though timeline_item_color
47
+ # dispatches them; *_fusion_comp / *_take stale names that never matched), so
48
+ # is_destructive() returned False and version-on-mutate archiving silently did not
49
+ # fire. EX-REG re-filed every action under its real dispatcher and dropped inert
50
+ # entries whose tool is not @_destructive_op-wrapped (e.g. media_pool_item
51
+ # replace_clip/link_*). The test_destructive_registry_drift guard asserts every
52
+ # string here is a real handler so this can't regress.
43
53
  DESTRUCTIVE_ACTIONS_BY_TOOL: Dict[str, FrozenSet[str]] = {
44
- # Real COMPOUND media_pool action strings (the @destructive_op("media_pool")
45
- # wrapper queries is_destructive("media_pool", <compound action>)). The prior
46
- # entries used granular function names (delete_media_pool_clips, …) and
47
- # media_pool_item names that the compound tool never dispatches, so catastrophic
48
- # deletes silently bypassed version-on-mutate archiving (EX2). media_pool_item
49
- # link/replace actions are governed separately (its own tool is not yet wrapped).
50
54
  "media_pool": frozenset({
51
55
  "delete_clips",
52
56
  "delete_folders",
@@ -54,6 +58,14 @@ DESTRUCTIVE_ACTIONS_BY_TOOL: Dict[str, FrozenSet[str]] = {
54
58
  "move_folders",
55
59
  "delete_clip_mattes",
56
60
  "delete_timelines",
61
+ "create_timeline",
62
+ "create_timeline_from_clips",
63
+ "append_to_timeline",
64
+ "setup_multicam_timeline",
65
+ "create_stereo_clip",
66
+ "auto_sync_audio",
67
+ "set_clip_marks",
68
+ "clear_clip_marks",
57
69
  }),
58
70
  "edit_engine": frozenset({
59
71
  "execute_selects",
@@ -61,11 +73,6 @@ DESTRUCTIVE_ACTIONS_BY_TOOL: Dict[str, FrozenSet[str]] = {
61
73
  "execute_swap",
62
74
  }),
63
75
  "timeline": frozenset({
64
- "create_timeline",
65
- "create_timeline_from_clips",
66
- "setup_multicam_timeline",
67
- "delete_timelines",
68
- "append_to_timeline",
69
76
  "delete_clips",
70
77
  "move_clips",
71
78
  "duplicate_clips",
@@ -75,19 +82,9 @@ DESTRUCTIVE_ACTIONS_BY_TOOL: Dict[str, FrozenSet[str]] = {
75
82
  "overwrite_range",
76
83
  "lift_range",
77
84
  "apply_cuts",
78
- "create_stereo_clip",
79
- "auto_sync_audio",
80
85
  "create_compound_clip",
81
86
  "create_fusion_clip",
82
87
  "convert_to_stereo",
83
- "create_subtitles_from_audio",
84
- "set_clip_marks",
85
- "clear_clip_marks",
86
- "set_clip_property",
87
- "set_clip_color",
88
- "clear_clip_color",
89
- "replace_clip",
90
- "replace_clip_preserve_sub_clip",
91
88
  "set_clips_linked",
92
89
  "duplicate",
93
90
  "insert_generator",
@@ -108,7 +105,7 @@ DESTRUCTIVE_ACTIONS_BY_TOOL: Dict[str, FrozenSet[str]] = {
108
105
  "set_mark_in_out",
109
106
  "clear_mark_in_out",
110
107
  "set_title_text",
111
- "import_into",
108
+ "import_into_timeline",
112
109
  }),
113
110
  "timeline_markers": frozenset({
114
111
  "add",
@@ -120,77 +117,64 @@ DESTRUCTIVE_ACTIONS_BY_TOOL: Dict[str, FrozenSet[str]] = {
120
117
  "timeline_ai": frozenset({
121
118
  "detect_scene_cuts",
122
119
  "analyze_dolby_vision",
120
+ "create_subtitles",
123
121
  }),
124
122
  "timeline_item": frozenset({
125
123
  "set_clip_enabled",
126
- "set_clip_color",
127
- "clear_clip_color",
128
- "add_flag",
129
- "clear_flags",
130
124
  "set_property",
131
125
  "set_name",
132
- "assign_to_color_group",
133
- "remove_from_color_group",
134
- "create_magic_mask",
135
- "regenerate_magic_mask",
136
- "smart_reframe",
137
- "stabilize",
138
126
  "set_voice_isolation_state",
139
- "set_cdl",
140
- "copy_grades",
141
- "reset_all_node_colors",
142
- "set_color_output_cache",
143
- "set_fusion_output_cache",
144
127
  "update_sidecar",
145
- "export_lut",
146
- "add_take",
147
- "delete_take",
148
- "select_take",
149
- "finalize_take",
150
- "add_version",
151
- "delete_version",
152
- "load_version",
153
- "rename_version",
154
128
  "set_transform",
155
129
  "set_crop",
156
130
  "set_retime",
157
131
  "set_composite",
158
132
  "set_audio",
159
- "set_stabilization",
160
133
  }),
161
134
  "timeline_item_markers": frozenset({
162
135
  "add",
136
+ "add_flag",
137
+ "clear_flags",
138
+ "set_clip_color",
139
+ "clear_clip_color",
163
140
  "delete_at_frame",
164
141
  "delete_by_custom_data",
165
142
  "delete_by_color",
166
143
  "update_custom_data",
167
144
  }),
168
145
  "timeline_item_fusion": frozenset({
169
- "add_fusion_comp",
170
- "delete_fusion_comp",
171
- "import_fusion_comp",
172
- "load_fusion_comp",
173
- "rename_fusion_comp",
146
+ "add_comp",
147
+ "delete_comp",
148
+ "import_comp",
149
+ "load_comp",
150
+ "rename_comp",
174
151
  }),
175
152
  "timeline_item_color": frozenset({
176
153
  "set_cdl",
177
154
  "copy_grades",
178
155
  "reset_all_node_colors",
179
- "set_node_enabled",
180
- "set_node_cache_mode",
181
- "set_lut",
182
- "apply_grade_from_drx",
183
- "apply_arri_cdl_lut",
156
+ "assign_color_group",
157
+ "remove_from_color_group",
158
+ "create_magic_mask",
159
+ "regenerate_magic_mask",
160
+ "smart_reframe",
161
+ "stabilize",
162
+ "export_lut",
163
+ "add_version",
164
+ "delete_version",
165
+ "load_version",
166
+ "rename_version",
167
+ "set_color_cache",
168
+ "set_fusion_cache",
184
169
  }),
185
170
  "timeline_item_takes": frozenset({
186
- "add_take",
187
- "delete_take",
188
- "select_take",
189
- "finalize_take",
171
+ "add",
172
+ "delete",
173
+ "select",
174
+ "finalize",
190
175
  }),
191
176
  "graph": frozenset({
192
177
  "set_lut",
193
- "set_node_cache_mode",
194
178
  "set_node_enabled",
195
179
  "apply_arri_cdl_lut",
196
180
  "apply_grade_from_drx",
@@ -227,8 +211,10 @@ NO_ARCHIVE_ON_KEYS: Dict[Tuple[str, str], frozenset] = {
227
211
  # first, the user almost certainly wants to know before losing data.
228
212
 
229
213
  STRICT_DEFAULT_ACTIONS: frozenset = frozenset({
230
- ("timeline", "delete_timelines"),
231
214
  ("timeline", "delete_track"),
215
+ # NOTE: delete_timelines is a media_pool action (EX-REG re-keyed it); it is
216
+ # archive+confirm-token gated (EX3) rather than strict, per the decision that
217
+ # strict over-blocks deletes when there is nothing to archive.
232
218
  # delete_clips with ripple=True is destructive in a way single-clip delete
233
219
  # isn't — handled separately in is_strict_required() because it depends on
234
220
  # the params payload, not just the action name.