Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
LVMCP_CACHENoGenerated helper VIs and state.$XDG_CACHE_HOME/lvmcp (~/.cache/lvmcp)
LVMCP_ROOTSNoFolders the server may write VIs in, ':'-separated.~/Projects
LVMCP_TIMEOUTNoSeconds to wait for one LabVIEW call.30
LVMCP_LABVIEW_BINNoLabVIEW executable.labview64 on PATH, else /usr/local/bin/labview64
LVMCP_LABVIEW_DIRNoLabVIEW install folder (palette and library search).newest /usr/local/natinst/LabVIEW-*-64

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

Build and run LabVIEW VIs as text. Read guide first (terminal orders, wire kinds, recipes). Use find to look up functions and library VIs, terms to see a node's terminals before wiring, batch for many steps, and check every build with wires (no 'broken: 1') and errors (empty list). If Bridge is not reachable, call start_bridge.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": false
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}

Tools

Functions exposed to the LLM to take actions

NameDescription
pingA

Check that LabVIEW and Bridge.vi answer.

new_viA

Create and save a new empty VI at path (for a type definition .ctl use new_typedef).

placeA

Place an object. type: palette name (While Loop, Add, Wait (ms)), a library VI name (Simple Error Handler, see find), a subVI path, or any:<style code>. location x,y or x,y,w,h (w,h needed for structures, growable nodes and front-panel objects). vi_path may end with %Class|Label to place inside a structure, e.g. a.vi%WhileLoop|L1 or a.vi%GObject|CS1%Case#|0. Decorations (boxes, frames, lines) and panel labels have no label of their own; they are created without one.

wireC

Wire srcLabel|dstLabel using srcKind|srcIdx|dstKind|dstIdx. Kinds: c = control/indicator/constant, n = node terminal Terms[idx] (outputs may come first: Wait (ms) is n|0 out, n|1 in), i = loop iteration terminal, st1 = While Loop stop terminal (dst only, e.g. c|0|st1|0). A wire crossing a loop border makes an auto-indexed tunnel: set it Regular with loop.

set_valueA

Set a constant or control value. target a.vi%NumericConstant|N (class without spaces) or a.vi%Control|SP for a front-panel control (its live value: the VI is opened first if it is closed, since a closed VI forgets it; save_defaults keeps it). fmt dec|frc|str|bool|XML, or expr for any type: [1, 2, 3] (array), c:(1.5, s:text, b:true) (cluster), numbers, s:text.

get_valueA

Read a constant or control value, e.g. 2.5 (DBL). target a.vi%Class|Label (Control|Out for FP objects). Controls/indicators give the live value while the VI is open in LabVIEW. Arrays/clusters decode to [..]/{..}.

deleteC

Delete an object. target L:<label> or U:<uid>; cls GObject (any) or Wire.

analyzeA

List objects (labels, UIDs, positions) of a VI's block diagram, or of its front panel with part FP.

wiresB

List wires of a VI, including broken ones.

errorsC

List compile errors of a VI.

loopC

Edit a loop. target a.vi%WhileLoop|L1. action addSR (mode = y position) or tunnel:<idx>/tunnel:U<uid> (mode -2 count, -1 status, 0 Regular, 1 Auto Index).

cleanupC

Run Block Diagram Clean Up.

openB

Open a VI's front panel in Bridge's LabVIEW without running it (to watch edits live).

runA

Run a VI in LabVIEW (opens its front panel, Ctrl+R); after seconds (0-600) abort it if still running (0 = leave running). Refuses a VI with compile errors. Read results with get_value(a.vi%Control|<indicator>).

statusC

Whether a VI is running, idle (open, not running) or closed in Bridge's LabVIEW.

closeA

Close a VI that is open in LabVIEW (aborts it first). Needed before new_vi reuses the name of an open VI. If it has unsaved changes (hand edits, typed values): unsaved "cancel" (default: keep it open and report), "save" or "discard".

save_defaultsA

Make the current control values (e.g. set with set_value) the VI's saved defaults. The VI must be open.

start_bridgeA

Start LabVIEW with vendor/Bridge.vi and run it (use when tools report that Bridge.vi is not reachable).

moveB

Move an existing object, e.g. a.vi%Control|Weather (front panel) or a.vi%GObject|L1 (diagram), to x,y and save the VI. Runs vendor/Props.vi in LabVIEW (a few seconds).

chart_scaleA

Set a chart's or graph's Y scale (a.vi%Control|Chart): fixed ymin..ymax, or autoscale=True for continuous autoscaling. Saves the VI (runs vendor/Chart.vi).

legendB

Name the plots of a waveform chart, waveform graph or XY graph and show one legend row per name: names SP, PV. Saves the VI (runs vendor/Legend.vi or LegendGraph.vi).

set_propA

Write any VI Server property of an object and save its VI: set_prop("a.vi%Control|N", "Visible", "false"), ("a.vi%Control|N", "Label.Text", "Speed"), ("a.vi%Control|Mode", "Strings[]", "[Off, On]"), ("a.vi%Control|N", "Position:Left", "40"). prop is a property name (sub-properties with :), optionally followed by . and a property of the object it returns. type is guessed (bool, DBL, string, DBL[], string[]) unless given (I32, U32 for colors, ...). cls picks the class (Control, Numeric, Enum, Ring, String, Boolean, Array, Cluster, GraphChart, GObject, Node, Constant, Structure); auto reads it from the VI.

get_propD–
propsA

Property names of a VI Server class (Control, Numeric, Enum, Ring, String, Boolean, Array, Cluster, GraphChart, GObject, Node, Constant, Structure) for set_prop/get_prop; query filters them.

invokeA

Call any VI Server method of an object and save its VI: invoke("a.vi%GObject|F1", "Add Input"), ("a.vi%Control|Chart", "Reinitialize to Default"). args maps input names to values ({"Name": "x"}); their types are guessed like set_prop or given in types ({"Name": "string"}). cls="App" calls LabVIEW application methods (target: any VI). then calls more methods, each on the previous one's return value ("on": "same": on the same object as the previous call): [{"method": "Save:Library", "args": {...}, "types": {...}, "on": "same"}]. Returns every output of the last call. List the methods with methods(cls).

methodsB

Method names of a VI Server class for invoke; query filters them.

event_caseA

Make frame frame of an Event Structure (a.vi%GObject|EV) handle event: of a front-panel control (control="a.vi%Control|Stop", event "Value Change", "Mouse Down", ...) or, without control, of the VI/app ("Timeout", "Panel Close?", ...). Replaces that frame's events. Add frames first with invoke(target, "Add Frame"). An unknown name lists them all.

move_intoA

Move a diagram object (a.vi%GObject|K1) into frame frame of a structure (a.vi%GObject|EV: Event, Case, Sequence, loops use frame 0) at x,y; copy=True leaves the original and puts a copy there. Use it for Event Structure frames, which place() cannot reach.

configure_nodeB

Point a Property Node or Invoke Node in your VI (a.vi%GObject|PN) at properties or a method by name: "Value, Visible" for a Property Node, "Reinitialize To Default" for an Invoke Node. The node takes its class from the reference wired into it, so wire that first. Names: props(cls) / methods(cls).

restoreA

Undo every change made through this server: put back <name>.bak.vi, the copy saved before the first write, and keep the current file as <name>.before-restore.vi.

new_projectB

Write a LabVIEW project (.lvproj) under My Computer that lists files (VIs, controls, libraries), stored as paths relative to the project like LabVIEW does. Open it in LabVIEW with File > Open Project.

new_typedefB

Create a type definition .ctl holding one control of type (create() grammar: enum(Idle, Run, Stop), cluster(DBL, string), ...). Place it in VIs with place(vi + "|FP", path, "x,y", label): every instance is linked to the typedef (get_prop(..., "Is Typedef?")).

label_objectB

Give an object without a usable label (UID from analyze/wires) a visible label, so every other tool can address it as vi%GObject|<label> (panel=True for front-panel objects, then vi%Control|<label>).

noteA

Put a free label (a comment) with text on the block diagram of vi_path at x,y (panel=True: on the front panel).

insertC

Put the already placed object node into the wire from src to dst (labels): the wire is replaced by src -> node_in and node_out -> dst (n|idx or c|0, see terms).

to_pageC

Move front-panel object label onto page page (0 = first) of Tab Control tab, at x,y on that page.

new_classB

Create a LabVIEW class (.lvclass) and make the VIs in files its member VIs (Motor.lvclass:Start.vi). place(vi + "|FP", "/abs/Motor.lvclass", "x,y", "Motor in") then adds a class control to a member VI. The private data stays empty: LabVIEW keeps it read-only to scripting (edit it in the class's Motor.ctl window).

new_libraryA

Create a project library (.lvlib) and make the VIs in files its members (each VI is saved, so it knows its library). Its items are then named My.lvlib:a.vi inside LabVIEW.

createA

Create a constant, control or indicator, including arrays and clusters: elements of any number type, bool, string or enum(a, b). U8, DBL[], cluster(I32, string), cluster(DBL[], bool)[], DBL[][], or a typedef .ctl path (a constant linked to it). Builds the array/cluster shell and its elements (labels <label>_e, <label>_0, <label>_1, ...). Set values afterwards with set_value fmt expr. location x,y; front-panel objects (control/indicator) go on the panel's top level.

findB

Search everything LabVIEW offers: palette objects (functions, structures, controls; placed by name) and the ~15k library VIs in vi.lib/instr.lib plus examples. Returns name | kind | how to use.

termsB

Terminals of a placed node (label), with index, name, direction (isSource) and wire state. Without label, the connector pane of the VI file itself (cell = Terms[] index when it is used as a subVI).

connectorA

Put front-panel control/indicator label on connector-pane cell (0-11 on the default 4x2x2x4 pane) so the VI works as a subVI; label "" disconnects the cell.

caseB

Case structure frames. target a.vi%GObject|CS1. action getFrames, addFrame (arg <frame>,<1 after|0 before>), delFrame (arg frame index) or setFrameNames (arg comma-separated names, one per frame, matching the selector type; add Default to one name: red, green, blue, Default).

guideA

How to build VIs with these tools: rules, terminal orders and recipes learned on LabVIEW 2026. Read it before building. topic filters sections, e.g. case, shift register, subvi, values, errors.

batchA

Run many tool calls in one request, in order: steps = [{"tool": "place", "args": {...}}, ...]. Stops at the first failure and reports which step failed.

rawC

Send any Gateway verb with its 5 fields (write verbs still go through the allow-list).

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

C2.6/5.0

Scored across 46 tools

Disambiguation3/5

Most tools map to distinct LabVIEW concepts, but several boundaries are genuinely blurry: set_value vs set_prop vs invoke vs create vs place all write to an object, and move vs move_into, insert vs wire, props vs get_prop vs methods are easy to misselect. The detailed descriptions help an expert disambiguate, but an agent must read carefully to pick the right one.

Naming Consistency3/5

Style is uniformly lowercase snake_case, but the convention is mixed: some tools are verb_noun (set_value, move_into, new_vi, configure_node), many are bare nouns (wires, errors, case, terms, connector, props, methods, status), and some are single verbs (run, place, create, find, raw). It is readable but not a predictable pattern.

Tool Count2/5

46 tools is heavy for a single MCP surface, well past the 25-tool threshold. The LabVIEW scripting domain is genuinely large, but several tools (raw, batch, props, methods, get_prop) are escape hatches or sub-facets of set_prop/invoke that could be consolidated, and the sheer count raises selection cost.

Completeness4/5

Coverage is impressively broad: creation, wiring, structures, properties/methods, connector panes, typedefs, projects, libraries, classes, running, restore, and even a guide. Minor gaps exist (no explicit save tool separate from write operations, no VI-level delete/rename, limited icon/documentation editing), but core lifecycle is well covered.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues