You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Matlab MCP keeps asking for permission to run tool nomatter what I do #18133
What version of the Codex App are you using (From “About Codex” dialog)?
vscode codex extension version 26.5409.20454
What subscription do you have?
Pro
What platform is your computer?
Microsoft Windows NT 10.0.22631.0 x64
What issue are you seeing?
No matter in which way I change the settings matlab MCP server keeps asking permission to run tool "evaluate_matlab_code" every single time. It breaks codex workflow. I am sitting here pressing enter like a monkey.
What steps can reproduce the bug?
model = "gpt-5.4"
model_reasoning_effort = "xhigh"
We reproduced a related Windows + Codex + MATLAB permission issue and found a clean A/B that may help other users here.
Environment: Windows, MATLAB launched directly from Codex (not via a MATLAB code bug).
What we observed:
Normal PowerShell:
matlab -batch "disp('MANUAL_OK')"
-> MANUAL_OK, exit 0
Codex with permission profile :workspace:
matlab -batch "disp('WORKSPACE_OK')"
-> Fatal Startup Error
System Error: File system inconsistency
exit 1
Codex with permission profile :danger-full-access:
matlab -batch "disp('FULL_ACCESS_OK')"
-> FULL_ACCESS_OK, exit 0
The same matlab.exe, same machine, same working directory, and same MATLAB installation were used. This strongly suggests that MATLAB startup can require filesystem access that is blocked by the :workspace profile even though ordinary shell commands still work.
This also appears related to #17653, where changing to Full access after the initiating prompt does not always affect the already-started task.
So for MATLAB users, if the tool keeps behaving as if permissions are restricted, it is worth checking the effectiveCODEX_PERMISSION_PROFILE rather than only the UI setting.
I would still prefer a least-privilege solution long-term (for example, allowing the specific MATLAB preference/cache/temp paths needed at startup) instead of requiring full access.
Activity
github-actions commentedon Apr 16, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
vegetabledog-dog commentedon Sep 22, 2026
We reproduced a related Windows + Codex + MATLAB permission issue and found a clean A/B that may help other users here.
Environment: Windows, MATLAB launched directly from Codex (not via a MATLAB code bug).
What we observed:
The same
matlab.exe, same machine, same working directory, and same MATLAB installation were used. This strongly suggests that MATLAB startup can require filesystem access that is blocked by the:workspaceprofile even though ordinary shell commands still work.A practical workaround for us was:
:danger-full-access.This also appears related to #17653, where changing to Full access after the initiating prompt does not always affect the already-started task.
So for MATLAB users, if the tool keeps behaving as if permissions are restricted, it is worth checking the effective
CODEX_PERMISSION_PROFILErather than only the UI setting.I would still prefer a least-privilege solution long-term (for example, allowing the specific MATLAB preference/cache/temp paths needed at startup) instead of requiring full access.