Skip to content

Allow the MATLAB MCP Server to be stopped without ending the MATLAB session #109

Description

@IzayoiSake

Use Case

Use Case

I regularly work with multiple installed MATLAB versions. After running satk_initialize in one MATLAB session, I would like to switch the active MCP connection to a different MATLAB version without closing either MATLAB session.

At present, the MCP server started by the first session remains active, so switching to another MATLAB version requires closing that MATLAB session first.

Relevant Skill or MCP Tool

satk_initialize / MATLAB MCP Server lifecycle

Proposed Behavior

Provide a documented, public method to gracefully stop the MCP server started by satk_initialize—for example, satk_shutdown or a corresponding stop option.

The method should:

  • Stop the MCP server and release its resources/port.
  • Leave the current MATLAB session running and keep its workspace intact.
  • Allow a different open MATLAB version to run satk_initialize and become the active MCP server.
  • Be safe to call when the server is already stopped, ideally with a clear status/result.

Current Workaround

Close the MATLAB session that previously ran satk_initialize, then start or initialize the desired MATLAB version.

Additional Context

This would make it much easier to compare, test, and develop across MATLAB releases while keeping long-running MATLAB sessions open.

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs-triageThis issue is awaiting review by the teamwaiting-for-infoWe need more information from the reporter to proceed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions