Codex mcp remove exits 0 when the name is already gone
codex mcp remove missing exited 0. The line it printed was No MCP server named 'missing' found. The same absence, handed to codex mcp get missing, exited 1. That line was Error: No MCP server named 'missing' found. The name was not in the file either time. Only get treated the absence as a failure.
A cleanup job that removes a server and then checks the exit code will treat a name that was never configured the same as a name it just deleted. The text is the field that says which one happened. Exit status on remove does not.