UNI MBSE for VS Code
UNI MBSE is a metamodel-agnostic MBSE platform with a built-in first-party SysML v2 / KerML backend (mbse-sysml). The VS Code extension integrates natively into VS Code's own UI shell while reusing UNI's shared diagram, matrix, and parametric analysis components — without nesting a second IDE inside a webview.
The packaged VSIX bundles mbse, mbse-lsp, and the checksum-verified standard library, so no Rust, Java, Python, or external server is required.
Native VS Code Integration
- Activity Bar (
UNI MBSE):
- Model Explorer (
mbse.modelTree): Native VS Code hierarchical containment tree synced with the active model. Click an element to jump to its declaration in the VS Code editor; use the inline button to open a scoped diagram for that element.
- Views & Matrices (
mbse.viewsTree): Native VS Code tree listing Standard Diagrams (gv, iv, pv, stv, afv, sv, tv), Engineering Matrices & Tables (Traceability Matrix, N² Matrix, House of Quality, ICD Table, MagicGrid, GtWR Audit, Trade Study, FMEA, V&V Matrix), and Model-Declared Views.
- Native Editor Tabs (one view per tab): Clicking any diagram or matrix opens a focused VS Code editor tab rendering UNI's
DiagramCanvas or engineering matrix directly, so you can split-screen source code, multiple diagrams, and matrices side by side.
- Native Text Editing & Problems: Syntax (
SYN001), name-resolution, semantic diagnostics, completion, hover, go-to-definition, rename, formatting, code actions, semantic tokens, and inlay hints are served directly by mbse-lsp.
- Native Bottom Panel (
MBSE Analysis): Hosts UNI's ParametricEvalPanel (Verify) and BehaviorSimPanel (Simulate) inside VS Code's native Panel area.
- Status Bar: Displays the active MBSE backend and model status in the bottom-right status bar.
Commands
| Command |
ID |
Purpose |
UNI MBSE: Open Diagram / View |
mbse.openView |
Pick and open a diagram or engineering matrix as a VS Code editor tab (Ctrl+Alt+E in SysML editors). |
UNI MBSE: Select Model |
mbse.selectModel |
Switch the active .sysml, .kerml, or .mbse model for the sidebar and engine. |
UNI MBSE: Refresh Model |
mbse.refresh |
Refresh native trees, open view tabs, and the analysis panel (also runs automatically on save). |
UNI MBSE: Go to Source |
mbse.openElementSource |
Jump to an element's source declaration from the Model Explorer. |
UNI MBSE: Open Scoped Diagram |
mbse.openElementDiagram |
Open a General View tab scoped to the selected element. |
UNI MBSE: Restart Engine |
mbse.restartEngine |
Restart the background mbse serve service. |
Settings
| Setting |
Default |
Purpose |
mbse.server.path |
"" |
Override the bundled mbse-lsp executable. |
mbse.binary.path |
"" |
Override the bundled mbse executable. |
mbse.trace.server |
off |
Trace language-server messages (off, messages, verbose). |
Install, Build, and Package
Install a built VSIX:
code --install-extension apps/vscode-mbse/dist/uni-mbse-win32-x64.vsix
Build native release binaries from the UNI root:
cmd /c "crates\mbse\build.bat" build --release
Compile, test, and package the extension:
cd apps/vscode-mbse
npm run compile
npm test
npm run package
| |