Skip to content

2024b, startup.m, satk_initialize #22

Description

@jasonnicholson

Bug Report

In 2024b, calling satk_initialize from startup.m does not work.

Running startup script
Initializing Simulink Agentic Toolkit
Warning: shareMATLABSession failed: Unrecognized function or variable 'shareMATLABSession'.
  The MCP server may not be able to connect to this MATLAB session.
  MATLAB-side MCP components may not be installed. Run:
    C:\Users\user\.matlab\agentic-toolkits\bin\matlab-mcp-core-server.exe --setup-matlab --matlab-root="C:\Program Files\MATLAB\R2024b"
  Then restart MATLAB and re-run satk_initialize. 
> In satk_initialize
In startup (line 5) 

Simulink Agentic Toolkit - Installation Check
===============================================

Prerequisites
  ✓ MATLAB 24.2.0.3212159 (R2024b) Update 9
  ✓ Simulink installed

MATLAB Environment
  ✓ All 6 tool entry points on path
  ✓ Package resolution correct (+sage, +mbd inside SATK)

MCP Server
  ✓ matlab-mcp-core-server.exe found: C:\Users\user\.matlab\agentic-toolkits\bin\matlab-mcp-core-server.exe

MCP Connectivity
  ✗ shareMATLABSession not found. MATLAB-side MCP components may not be installed.
    Fix: Run: C:\Users\user\.matlab\agentic-toolkits\bin\matlab-mcp-core-server.exe --setup-matlab --matlab-root="C:\Program Files\MATLAB\R2024b", then restart MATLAB

===============================================
Result: FAIL (1 error(s))

My startup.m

function startup()
  fprintf("Running startup script\n");
  try
    fprintf("Initializing Simulink Agentic Toolkit\n");
    satk_initialize;
  catch e
    warning("startup:SATKInitializationFailed", "Failed to initialize Simulink Agentic Toolkit: %s", e.message);
  end
end
  • Note, I have satk_initialize permanently on the path.
  • Two users on different computers have seen the same issue.
>> ver
-----------------------------------------------------------------------------------------------------
MATLAB Version: 24.2.0.3212159 (R2024b) Update 9
MATLAB License Number: REDACTED
Operating System: Microsoft Windows 11 Enterprise Version 10.0 (Build 26200)
Java Version: Java 1.8.0_202-b08 with Oracle Corporation Java HotSpot(TM) 64-Bit Server VM mixed mode
-----------------------------------------------------------------------------------------------------
MATLAB                                                Version 24.2        (R2024b)
Simulink                                              Version 24.2        (R2024b)
AUTOSAR Blockset                                      Version 24.2        (R2024b)
Aerospace Blockset                                    Version 24.2        (R2024b)
Aerospace Toolbox                                     Version 24.2        (R2024b)
Audio Toolbox                                         Version 24.2        (R2024b)
...

Additional Context

This is not an issue in 2026a.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions