vstgui-mcp

v0.1.4
vstgui-mcp Checked 3 days ago Published 1 month ago

Lets 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.

ParameterTypeDescription
controlstringControl 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.

ParameterTypeDescription
spec *objectSpec. Partial is fine: missing fields take the defaults from get_spec_schema.
controlstringControl type
scalenumberPNG scale, default 2
valuenumberPosition 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.

ParameterTypeDescription
namestringWhat the control does, e.g. "Cutoff". Used for file names on export.
nodeIdstringFigma node id from an earlier call. Defaults to the current selection.
scalenumberPNG scale, default 2
specobjectSpec. Partial is fine: missing fields take the defaults from get_spec_schema.
valuenumberPosition or level, 0 to 1 (button: 0 off, 1 on)
xnumberPanel px from the panel's top-left
ynumberPanel 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.

ParameterTypeDescription
spec *objectSpec. Partial is fine: missing fields take the defaults from get_spec_schema.
scalenumberPNG 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.

ParameterTypeDescription
spec *objectSpec. Partial is fine: missing fields take the defaults from get_spec_schema.
panelIdstringThe panel's id from build_panel. Defaults to the panel the selection is in.
scalenumberPNG 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.

ParameterTypeDescription
spec *objectSpec. Partial is fine: missing fields take the defaults from get_spec_schema.
controlstringControl type
namestringWhat the control does, e.g. "Cutoff". Used for file names on export.
panelIdstringThe panel's id from build_panel. Defaults to the panel the selection is in.
scalenumberPNG scale, default 2
valuenumberPosition or level, 0 to 1 (button: 0 off, 1 on)
xnumberPanel px from the panel's top-left
ynumberPanel 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.

ParameterTypeDescription
items *array
panelIdstringThe 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.

ParameterTypeDescription
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.

ParameterTypeDescription
alignstring
colorstring#RRGGBB
fontstringFont family, default Inter. Falls back to Inter if Figma doesn't have it.
nodeIdstringAn existing label to change
opacitynumber
panelIdstringThe panel's id from build_panel. Defaults to the panel the selection is in.
sizenumberFont size in px, default 11
textstring
trackingnumberLetter spacing in %
weightstring
widthnumberWrap width in px; 0 for no wrapping
xnumberPanel px from the panel's top-left
ynumberPanel 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.

ParameterTypeDescription
panelIdstringThe panel's id from build_panel. Defaults to the panel the selection is in.
scalenumberPNG 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.

ParameterTypeDescription
folderstringWhere to write; a subfolder per panel is made inside. Default: vstgui-export in the current project (or VSTGUI_EXPORT_DIR)
framesobjectFrames per strip by type. Defaults: knob 128, slider 128, meter 48, wheel 128; buttons are always 2
maxLengthintegerA 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
panelIdstringThe panel's id from build_panel. Defaults to the panel the selection is in.
scale2 (default) writes @2x files

snapshot

PNG of a node on the canvas (default: the selection). Large nodes are scaled down to fit 2048 px.

ParameterTypeDescription
nodeIdstringFigma node id from an earlier call. Defaults to the current selection.
scalenumberPNG 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.

ParameterTypeDescription
nodeIdstringFigma 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.

ParameterTypeDescription
spec *objectSpec. Partial is fine: missing fields take the defaults from get_spec_schema.
axisstringv stacks frames vertically, h side by side
controlstringControl type
framesintegerFrame count. Default: knob 128, slider 128, meter 48, wheel 128; buttons are always 2
gapintegerPixels between frames