Skip to content

MCP do not actually load profile #4000

@mai1015

Description

@mai1015

What version of Codex is running?

codex-cli 0.39.0

Which model were you using?

gpt-5-codex

What platform is your computer?

Darwin 24.6.0 arm64 arm

What steps can reproduce the bug?

start mcp server with npx @modelcontextprotocol/inspector codex mcp
try send instruction with profile. it wont load the settings for like sanbox or approval-policy. i have to manually set it to make it work.

What is the expected behavior?

it should load settings from config. and allow model write.

What do you see instead?

it ask me to approve the write request.

Additional information

[profiles.coder]
model = "gpt-5-codex"
model_reasoning_effort = "medium"
sandbox_mode = "workspace-write"
approval-policy = "never"

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions