Skip to content

setupAgenticToolkit deletes existing MCP server #15

Description

@DaBe-gh

Bug Report

I installed the simulink-agentic-toolkit for github copilot within vs code, but it seems as if the procedure removes all existing mcp servers in mcp.json.

Terminal-Logs:

setupAgenticToolkit("install")

MathWorks Agentic Toolkit Setup — Install
—————————————————————————————————————————

Detected:
Platform: Windows x86_64
MATLAB: R2023b (C:\Program Files\MATLAB_R2023b_x64)

Select toolkits to install:
1. MATLAB Agentic Toolkit
2. Simulink Agentic Toolkit
3. Both

Select: 3

Plan:
- Download and install the MATLAB MCP Server
- Download the MATLAB Agentic Toolkit
- Download the Simulink Agentic Toolkit

Proceed? [Y/n]: y
Downloading MATLAB MCP Server v0.9.0 for Windows x86_64...
MCP server binary installed to: C:\Users\xxx.matlab\agentic-toolkits\bin\matlab-mcp-core-server.exe
MATLAB MCP Core Server Toolbox already installed (skipping).
Downloading MATLAB Agentic Toolkit 2026.05.06...
MATLAB Agentic Toolkit installed to: C:\Users\xxx.matlab\agentic-toolkits\matlab
Downloading Simulink Agentic Toolkit 2026.05.06...
Simulink Agentic Toolkit installed to: C:\Users\xxx.matlab\agentic-toolkits\simulink
Merged marketplace.json written (9 plugins).

Artifacts installed.

Would you like to configure your coding agent now? [Y/n]: y

MathWorks Agentic Toolkit Setup — Configure
———————————————————————————————————————————

Installed: MATLAB Agentic Toolkit 2026.05.06, Simulink Agentic Toolkit 2026.05.06

Select agent platforms to configure:
1. Claude Code
2. GitHub Copilot
3. Codex
4. Amp
5. Gemini CLI

Enter selection (e.g., 1 or 1,3,5): 2
Where should the agent config be installed?
1. Globally — works for all projects on this machine
2. A specific project

Select: 1

Select toolkits to add to this configuration:
1. MATLAB Agentic Toolkit
2. Simulink Agentic Toolkit
3. Both

Select: 3

Plan:
- Configure GitHub Copilot to use the MATLAB MCP Server, for all projects (global)
- Add skills from MATLAB Agentic Toolkit and Simulink Agentic Toolkit, for all projects (global)

Proceed? [Y/n]: y
Writing MCP config:
GitHub Copilot: C:\Users\xxx\AppData\Roaming\Code\User\mcp.json
Registering skills:
Skills registered (24 skills).

Configure complete!

──────────────────────────────────────────
Next steps (run in MATLAB every session):

  1. Initialize the Simulink Agentic Toolkit:
    addpath("C:\Users\xxx.matlab\agentic-toolkits\simulink")
    satk_initialize

Would you like to run satk_initialize now? [Y/n]: y

Simulink Agentic Toolkit - Installation Check

Prerequisites
✓ MATLAB 23.2.0.2485118 (R2023b) Update 6
✓ 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\xxx.matlab\agentic-toolkits\bin\matlab-mcp-core-server.exe

MCP Connectivity
✓ shareMATLABSession available (MATLAB-side MCP components installed)
✓ MATLAB connector running (port 31515)

===============================================
Result: PASS

Additional Context

No response

Metadata

Metadata

Assignees

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