codex - 💡(How to fix) Fix Matlab MCP keeps asking for permission to run tool nomatter what I do [1 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
openai/codex#18133Fetched 2026-04-17 08:32:18
View on GitHub
Comments
1
Participants
2
Timeline
11
Reactions
0
Timeline (top)
labeled ×6unlabeled ×3commented ×1cross-referenced ×1
RAW_BUFFERClick to expand / collapse

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.

<img width="1895" height="804" alt="Image" src="https://github.com/user-attachments/assets/bfdfc7a3-bd29-402f-bd97-565d3271a248" /> <img width="1895" height="804" alt="Image" src="https://github.com/user-attachments/assets/90189fbb-8afb-427c-9766-8ecf5594e51c" />

What steps can reproduce the bug?

model = "gpt-5.4" model_reasoning_effort = "xhigh"

approval_policy = "never" sandbox_mode = "workspace-write"

[windows] sandbox = "unelevated"

[mcp_servers.matlab] command = "C:\Users\eich_j0\AppData\Local\MathWorks\matlab-mcp-core-server-win64.exe" args = [ "--matlab-root=C:\Program Files\MATLAB\R2024b", "--initialize-matlab-on-startup=true", "--matlab-display-mode=desktop", "--initial-working-folder=C:\Users\eich_j0\Documents\claude_code_matlab\JGCD_Open_Source_Benchmark_Model_for_AFS\matlab" ] env = {} startup_timeout_sec = 30 tool_timeout_sec = 180 enabled = true cwd = 'C:\Users\eich_j0\Documents\claude_code_matlab\JGCD_Open_Source_Benchmark_Model_for_AFS\matlab'

What is the expected behavior?

To just run matlab mcp look at the results and iterate like claude code does correctly.

Additional information

PLEASE FIX

extent analysis

TL;DR

The issue can be mitigated by adjusting the approval_policy setting to a less restrictive value, such as "always" or "once", to reduce the frequency of permission prompts for running the "evaluate_matlab_code" tool.

Guidance

  • Review the approval_policy setting in the configuration and consider changing it to "always" or "once" to see if it resolves the issue.
  • Verify that the sandbox_mode setting is compatible with the desired workflow, as "workspace-write" might be causing restrictions that lead to repeated permission prompts.
  • Check the MATLAB MCP server logs for any error messages or warnings that could indicate why the permission prompt is appearing repeatedly.
  • Consider adjusting the startup_timeout_sec and tool_timeout_sec values to ensure they are sufficient for the MATLAB MCP server to initialize and run the tool without timing out.

Notes

The provided images are not directly relevant to the issue, but they may contain additional context that could be useful for further troubleshooting. The approval_policy setting is the most likely cause of the issue, but other configuration settings may also be contributing to the problem.

Recommendation

Apply workaround: Adjust the approval_policy setting to a less restrictive value, such as "always" or "once", to reduce the frequency of permission prompts. This change may help mitigate the issue, but it may not fully resolve the underlying cause.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING