[mcp_servers.node_repl] written back automatically by CC Switch Codex
Quick fix
Turn off or delete node_repl in MCP management at the top right of CC Switch to stop it being written back into the Codex config file.
Symptom
Section titled “Symptom”~/.codex/config.toml may get an unexpected [mcp_servers.node_repl] blockThe "MCP management" feature in CC Switch takes over the Codex MCP configuration. Once the ChatGPT desktop client generates the node_repl or computer-use configuration for the first time, CC Switch imports it automatically while its internal database is empty.
From then on, every save through CC Switch forces the state in the database back into ~/.codex/config.toml. So editing or deleting those fields directly in the config text (changing enabled to true, for instance) has no effect — CC Switch or the ChatGPT desktop client overwrites it again after a restart.
Open CC Switch and click 【MCP 管理】(MCP management) at the top right.
Find node_repl and computer-use in the list. If you do not need them, turn them off or delete them.
If you need Computer Use or another feature that depends on them, make sure its command path really exists and keep it enabled in 【MCP 管理】(MCP management).
~/.codex/config.toml [mcp_servers.node_repl]command = "/Applications/ChatGPT.app/Contents/Resources/cua_node/bin/node_repl"For a complete cleanup: first delete the plugins in the ChatGPT desktop App and quit it completely, then delete the matching entries in 【MCP 管理】(MCP management) in CC Switch, and finally save the configuration through CC Switch.
Affected Versions
Section titled “Affected Versions”Source Issues
Section titled “Source Issues”This page is distilled from 2 real issues
- I changed enabled = false to true by hand — why does it go back to false after restarting Codex?
- Because the CC Switch MCP database has taken over that configuration. Editing the text directly has no effect; you have to enable or disable it in the 【MCP 管理】(MCP management) screen at the top right of CC Switch.
- Does deleting node_repl affect the Computer Use plugin?
- It may. Computer Use depends on that MCP service. If you need to keep it, do not delete it — check and correct the real file path its command points at, making sure the path exists.
Related problems
Section titled “Related problems”This is an unofficial community wiki with no affiliation to the cc-switch authors or the project itself. Its content is compiled from the project's public GitHub issues. This site distributes no software.