# Codex MCP Server ENV Variables Update issue

**URL:** <https://community.openai.com/t/codex-mcp-server-env-variables-update-issue/1378615>\
**Category:** Codex\
**Tags:** bug, mcp\
**Created:** [April 5, 2026, 5:52pm UTC](https://community.openai.com/t/codex-mcp-server-env-variables-update-issue/1378615 "2026-04-05T17:52:00Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![maasir](https://sea2.discourse-cdn.com/openai1/user_avatar/community.openai.com/maasir/32/735559_2.png) [@maasir](https://community.openai.com/u/maasir)\
**Post date:** [April 5, 2026, 5:52pm UTC](https://community.openai.com/t/codex-mcp-server-env-variables-update-issue/1378615/1 "2026-04-05T17:52:00Z")

</div>

Is anyone else experiencing trouble in updating environment variables in codex desktop (MacOS) application?

I have been using local STDIO MCP server in codex which requires some environment variables. It did work perfectly until I had to change the env variable in the config.

The MCP config settings is completely unresponsive. I changed the value of the required variable and saved multiple times, reloaded the codex app, everything. still the variable was staying the same.

---

<div class="post-metadata">

**Author:** ![chadisfaction](https://avatars.discourse-cdn.com/v4/letter/c/f0a364/32.png) [@chadisfaction](https://community.openai.com/u/chadisfaction)\
**Post date:** [April 6, 2026, 5:45am UTC](https://community.openai.com/t/codex-mcp-server-env-variables-update-issue/1378615/2 "2026-04-06T05:45:16Z")

</div>

But did you actually **unset** the offending variable?

---

<div class="post-metadata">

**Author:** ![hayds.here](https://avatars.discourse-cdn.com/v4/letter/h/d07c76/32.png) [@hayds.here](https://community.openai.com/u/hayds.here)\
**Post date:** [April 14, 2026, 10:12am UTC](https://community.openai.com/t/codex-mcp-server-env-variables-update-issue/1378615/3 "2026-04-14T10:12:55Z")

</div>

Yeah same issue for me and theres no “offending variables“ as suggested the configuration has been working fine for months but now save is soft failing with no validation or user-facing response other than accepting the save click event.

Edit: okay looks like creating new ones is fine but editing is specifically where the issue is.

---

<div class="post-metadata">

**Author:** ![OpenAI\_Support](https://sea2.discourse-cdn.com/openai1/user_avatar/community.openai.com/openai_support/32/561845_2.png) [@OpenAI\_Support](https://community.openai.com/u/OpenAI_Support)\
**Post date:** [September 24, 2026, 12:40pm UTC](https://community.openai.com/t/codex-mcp-server-env-variables-update-issue/1378615/4 "2026-09-24T12:40:04Z")

</div>

Hi @maasir and @hayds.here, thanks for reporting this.

Are you still experiencing this issue when editing environment variables for an existing MCP server in the latest version of Codex Desktop, or has it since been resolved?

If the issue persists, please let us know.

~ Smith

---

<div class="post-metadata">

**Author:** ![smith.d](https://avatars.discourse-cdn.com/v4/letter/s/c67d28/32.png) [@smith.d](https://community.openai.com/u/smith.d)\
**Post date:** [September 30, 2026, 6:49pm UTC](https://community.openai.com/t/codex-mcp-server-env-variables-update-issue/1378615/5 "2026-09-30T18:49:44Z")

</div>

Closed on September 30, 2026, 6:49pm UTC


