Setting MATLABDisplayMode to desktop in the extension config (confirmed correct in the settings JSON, and the matlab-mcp-server process itself relaunches with --matlab-display-mode desktop on its command line) does not change the MATLAB process it spawns -- the spawned MATLAB_maca64 process still includes -nodesktop on its command line.
Steps to reproduce:
- Set
MATLABDisplayMode: desktop in the extension's user config (with MATLABSessionMode: auto, the default).
- Kill the currently-running MATLAB process spawned by the extension.
- Call any tool (e.g.
evaluate_matlab_code) to trigger a fresh session.
- Inspect the newly-spawned
MATLAB_maca64 process's command line (e.g. via ps aux on macOS).
Expected: MATLAB launches without -nodesktop, i.e. with a full interactive desktop, so figure windows persist normally for the user to view.
Actual: MATLAB still launches with -nodesktop regardless of the desktop setting. As a result, figures created via run_matlab_file or evaluate_matlab_code are captured as screenshots for the AI but are not reliably visible/persistent for the human user on screen (consistent with nodesktop mode's documented "capture outputs like figures" design in the v0.5.0 changelog, which should not apply when desktop mode is explicitly requested).
Environment:
- matlab-mcp-server version: v0.11.1 (issue also suspected present in v0.11.2)
- macOS, MATLAB R2026a
MATLABSessionMode: auto
Workaround: none found short of MATLABSessionMode: existing with a manually-launched, manually-shared MATLAB session
Setting
MATLABDisplayModetodesktopin the extension config (confirmed correct in the settings JSON, and thematlab-mcp-serverprocess itself relaunches with--matlab-display-mode desktopon its command line) does not change the MATLAB process it spawns -- the spawnedMATLAB_maca64process still includes-nodesktopon its command line.Steps to reproduce:
MATLABDisplayMode: desktopin the extension's user config (withMATLABSessionMode: auto, the default).evaluate_matlab_code) to trigger a fresh session.MATLAB_maca64process's command line (e.g. viaps auxon macOS).Expected: MATLAB launches without
-nodesktop, i.e. with a full interactive desktop, so figure windows persist normally for the user to view.Actual: MATLAB still launches with
-nodesktopregardless of thedesktopsetting. As a result, figures created viarun_matlab_fileorevaluate_matlab_codeare captured as screenshots for the AI but are not reliably visible/persistent for the human user on screen (consistent withnodesktopmode's documented "capture outputs like figures" design in the v0.5.0 changelog, which should not apply whendesktopmode is explicitly requested).Environment:
MATLABSessionMode: autoWorkaround: none found short of
MATLABSessionMode: existingwith a manually-launched, manually-shared MATLAB session