vstgui-mcp
v0.1.4Lets Claude Code or Codex build audio plugin GUIs in Figma with the VST GUI Pro plugin
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
help
What VST GUI Pro agent mode can do, in plain words for the user: build, change, export, limits. Call it when the user asks for help or what this can do, and pass the answer on.
get_status
Whether VST GUI Pro is connected, its version, and whether the user has a PRO license (Agent mode needs one).
get_spec_schema
Every spec field for a control type or the panel: `base` holds the defaults (and shows the structure), `limits` the [min, max] of numeric fields by dotted path, `enums` the allowed strings by dotted path. Call this before building.
| Parameter | Type | Description |
|---|---|---|
control | string | Control type, or panel |
build_control
Builds one control on its own on the canvas (not on a panel) at the viewport center, and returns its PNG, nodeId and the normalized spec. For a full UI use place_control instead.
| Parameter | Type | Description |
|---|---|---|
spec * | object | Spec. Partial is fine: missing fields take the defaults from get_spec_schema. |
control | string | Control type |
scale | number | PNG scale, default 2 |
value | number | Position or level, 0 to 1 (button: 0 off, 1 on) |
update_control
Changes a control: a new spec or value rebuilds it in place (the nodeId changes: use the one returned; send the full spec, omitted fields go back to defaults). x/y move it and name renames it, without a rebuild. Returns its box, PNG and spec.
| Parameter | Type | Description |
|---|---|---|
name | string | What the control does, e.g. "Cutoff". Used for file names on export. |
nodeId | string | Figma node id from an earlier call. Defaults to the current selection. |
scale | number | PNG scale, default 2 |
spec | object | Spec. Partial is fine: missing fields take the defaults from get_spec_schema. |
value | number | Position or level, 0 to 1 (button: 0 off, 1 on) |
x | number | Panel px from the panel's top-left |
y | number | Panel px from the panel's top-left |
build_panel
Builds a panel, the plugin's background art, at the viewport center. Its `width` and `height` in the spec are the plugin window in px. Returns panelId, size and PNG.
| Parameter | Type | Description |
|---|---|---|
spec * | object | Spec. Partial is fine: missing fields take the defaults from get_spec_schema. |
scale | number | PNG scale, default 2 |
update_panel
Redraws a panel's art with a new full spec. Every control and label on it stays where it is.
| Parameter | Type | Description |
|---|---|---|
spec * | object | Spec. Partial is fine: missing fields take the defaults from get_spec_schema. |
panelId | string | The panel's id from build_panel. Defaults to the panel the selection is in. |
scale | number | PNG scale, default 2 |
place_control
Builds one control on a panel with its top-left at x, y (panel px; omit both to center it). Returns nodeId, box, normalized spec and the control's PNG.
| Parameter | Type | Description |
|---|---|---|
spec * | object | Spec. Partial is fine: missing fields take the defaults from get_spec_schema. |
control | string | Control type |
name | string | What the control does, e.g. "Cutoff". Used for file names on export. |
panelId | string | The panel's id from build_panel. Defaults to the panel the selection is in. |
scale | number | PNG scale, default 2 |
value | number | Position or level, 0 to 1 (button: 0 off, 1 on) |
x | number | Panel px from the panel's top-left |
y | number | Panel px from the panel's top-left |
arrange
Moves several controls or labels on a panel in one call, for lining up rows and columns. Returns each new box.
| Parameter | Type | Description |
|---|---|---|
items * | array | |
panelId | string | The panel's id from build_panel. Defaults to the panel the selection is in. |
remove_control
Deletes a control or label made by VST GUI Pro.
| Parameter | Type | Description |
|---|---|---|
nodeId * | string |
set_label
Adds a text label to a panel, or changes one (pass its nodeId). Labels are baked into the background on export. Without width, x is the label's left edge, center or right edge, following align; with width, the text wraps in a box that starts at x.
| Parameter | Type | Description |
|---|---|---|
align | string | |
color | string | #RRGGBB |
font | string | Font family, default Inter. Falls back to Inter if Figma doesn't have it. |
nodeId | string | An existing label to change |
opacity | number | |
panelId | string | The panel's id from build_panel. Defaults to the panel the selection is in. |
size | number | Font size in px, default 11 |
text | string | |
tracking | number | Letter spacing in % |
weight | string | |
width | number | Wrap width in px; 0 for no wrapping |
x | number | Panel px from the panel's top-left |
y | number | Panel px from the panel's top-left |
get_layout
Everything on a panel: each control's nodeId, type, name, box and value, each label, and warnings (overlaps, past the edge, half pixels, strips placed by mistake), plus a PNG of the whole panel. Use it to check the layout against the reference.
| Parameter | Type | Description |
|---|---|---|
panelId | string | The panel's id from build_panel. Defaults to the panel the selection is in. |
scale | number | PNG scale, default 2 |
export_ui
Only when the user asks to export: they usually want changes first. Exports the whole UI to disk: background(@2x).png (the panel with its controls hidden, labels baked in), one strip PNG per distinct control in knobs/, sliders/, buttons/, meters/ and wheels/ (identical controls share one file), and layout.json with every control's box, frames and file. A re-export replaces the files of the last one. Can take a few minutes.
| Parameter | Type | Description |
|---|---|---|
folder | string | Where to write; a subfolder per panel is made inside. Default: vstgui-export in the current project (or VSTGUI_EXPORT_DIR) |
frames | object | Frames per strip by type. Defaults: knob 128, slider 128, meter 48, wheel 128; buttons are always 2 |
maxLength | integer | A strip longer than this in px at 2x is written at 1x instead. Default 16384; 0 for Figma's own limit of 32768, which always applies |
panelId | string | The panel's id from build_panel. Defaults to the panel the selection is in. |
scale | 2 (default) writes @2x files |
snapshot
PNG of a node on the canvas (default: the selection). Large nodes are scaled down to fit 2048 px.
| Parameter | Type | Description |
|---|---|---|
nodeId | string | Figma node id from an earlier call. Defaults to the current selection. |
scale | number | PNG scale, default 2 |
read_selection_spec
The spec stored on a control VST GUI Pro built (default: the selection), for example one the user made in a studio.
| Parameter | Type | Description |
|---|---|---|
nodeId | string | Figma node id from an earlier call. Defaults to the current selection. |
build_strip
Builds the full animation strip (sprite sheet) for a spec, ready to export from Figma. Do this once the single control looks right. Returns the nodeId and size, not a PNG.
| Parameter | Type | Description |
|---|---|---|
spec * | object | Spec. Partial is fine: missing fields take the defaults from get_spec_schema. |
axis | string | v stacks frames vertically, h side by side |
control | string | Control type |
frames | integer | Frame count. Default: knob 128, slider 128, meter 48, wheel 128; buttons are always 2 |
gap | integer | Pixels between frames |