How zuehlke/labview-mcp works
LabVIEW MCP exposes local LabVIEW read, create, edit, run, build, reuse, and documentation capabilities to an AI client through an MCP server. The principal workflow is client request → local server/tool dispatch → LabVIEW gRPC and/or the bundled pylabview file engine → a real VI or returned inspection/result. The README documents these subsystem boundaries; sampled implementation excerpts do not show individual tool dispatch paths, so capability edges cite the README rather than implying unobserved internal calls.
Main entry points: Tools Tool handlers · aixml-pylabview VI file engine · Program.cs MCP server · Grpc gRPC client
Components 16
MCP interface
- MCP server
src/LabVIEWMCP/Program.cs - Tool handlers
src/LabVIEWMCP/Tools
LabVIEW engines
- gRPC client
src/LabVIEWMCP/Grpc - VI file engine
scripts/aixml-pylabview - AIXML conversion
scripts/aixml-pylabview/aixml2vi.py - Bundled Python runtime
tools/pylabview/runtime/Lib
VI workflows
- VI files
- Read and inspect
src/LabVIEWMCP/Tools/InspectTools.cs - Create and edit
src/LabVIEWMCP/Tools/AixmlTools.cs - Run and build
src/LabVIEWMCP/Tools/RunTools.cs - Documentation output
src/LabVIEWMCP/Tools/ExampleTools.cs
Reusable knowledge
- Palette search
src/LabVIEWMCP/Tools/PaletteTools.cs - Example search
src/LabVIEWMCP/Tools/ExampleTools.cs - Knowledge indexes
src/LabVIEWMCP/Infra/PaletteIndex.cs
Other components
- AI client
- LabVIEW IDE
Connections 17
- AI client → MCP server: sends MCP requests
- MCP server → AI client: returns results
- MCP server → Tool handlers: dispatches tools
src/LabVIEWMCP/Program.cs - Tool handlers → gRPC client: uses gRPC
- gRPC client → LabVIEW IDE: sends RPCs
- Tool handlers → VI file engine: uses file engine
- VI file engine → VI files: rewrites files
- VI file engine → AIXML conversion: converts AIXML
- Bundled Python runtime → VI file engine: supports runtime
scripts/aixml-pylabview/lvheap.py - Tool handlers → Read and inspect: reads diagrams
- Tool handlers → Create and edit: creates or edits
- Tool handlers → Run and build: runs or builds
- Tool handlers → Documentation output: generates documents
- Tool handlers → Palette search: searches palettes
- Tool handlers → Example search: searches examples
- Palette search → Knowledge indexes: queries index
- Example search → Knowledge indexes: queries index