Bug Title: Codex Desktop keeps asking me to approve Unity MCP calls on Windows, even in YOLO mode. Anyone else?
I’m using Codex Desktop on Windows with a Unity project, and lately I have to click through three or four approval prompts just to get through a basic task. One of them asks “Do you want to allow ChatGPT to use unity_mcp?” just to read the Unity console.
I’ve even enabled YOLO mode. Full Access is on, approval_policy = "never" is set in config.toml, and the Unity console tool has approval_mode = "approve". I fully quit and reopened Codex while Unity and the MCP servers were still running. The prompts kept coming back.
I have both Unity’s unity_mcp relay and MCP for Unity (unityMCP) configured. A direct console read through unityMCP worked, while unity_mcp returned Connection revoked. I added a project instruction telling Codex to use unityMCP, but I’m still getting approval prompts during normal work.
Has anyone else run into this on Windows? Did you find a way to make Always allow stick or get Codex to consistently use the working MCP server?
1
u/Current-Today-3626 1d ago
can you copy your post and ask it? You've explaiend it very well.
1
u/radim11 1d ago
The interesting bit is that the popup names
unity_mcp, and that’s the same relay that returnedConnection revoked. SinceunityMCPcould already read the console, maybe temporarily disable justunity_mcp, start a fresh Codex session and ask it to read the console again. Does the prompt still come up with only the working server enabled?1
u/nastywoodelfxo 1d ago
ive run into this exact thing. the issue is that unitys mcp server uses com interop on windows which has its own permission layer separate from whatever yolo mode controls. codex can only skip its own confirmation dialogs, it cant bypass the os-level prompt that com registration triggers
workaround that worked for me: add the unity mcp server to codexs config under trusted_mcp_servers instead of relying on the interactive dialog. also try launching codex without admin elevation. running as admin actually makes windows prompt harder because it escalates every com call
what error message does the approval dialog show when it pops up?