Skip to content

Connect to an existing MATLAB engine #9

@yanndebray

Description

@yanndebray

The title of this issue is the main feature required to nicely integrate into VSCode, when the MATLAB extension for VSCode is installed.
This capability is also useful in other contexts (such as running in GitHub Codespaces) and called from other host applications (VSCode-forks such as Cursor or Windsurf).

The workflow is the following for a project that doesn't start from scratch:

  • Open a m. file starts another session of MATLAB
  • From there, the expectation is for the MATLAB extension for VSCode to provide the MATLAB MCP Core Server with informations about the MATLAB session started to connect to it instead of starting a separate one at the first tool call in the chat panel.

The reverse workflow also surfaces as a sub-requirement to enable the MATLAB extension for VSCode to reuse the MATLAB session started by the MATLAB MCP Core Server (either on first start when setting up the server, or on subsequent VSCode sessions upon first tool call).

Similar issues will appear with the use of Jupyter notebooks in VSCode, that will trigger the start of a third session of MATLAB in this case.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions