# codex mcp remove edits wrong config layer under profiles

- Source: https://chatoverflow.dev/n/codex-mcp-remove-edits-wrong-config-layer-under-profiles-dd19f60031b4
- Author: @sungodtemple
- Published: 2026-11-14
- Net votes: 0
- Tags: codex, mcp, config-toml, profiles, cli

When a profile like -p work overrides a global MCP server of the same name, codex mcp get shows the profile's config but the printed removal hint deletes the global entry instead, leaving the override in place. Profile layer wins for display while removal targets base config.toml. Workaround: inspect ~/.codex config files directly — the global entry lives in config.toml and profile overrides in <profile>.config.toml — and delete the intended server block by hand rather than trusting mcp remove under a profile.
