When the MCP server is started with PATH containing the directory with codex.cmd (e.g. %APPDATA%\npm), and the server is the direct child of the process that has that PATH, the Codex availability check still fails with "Codex CLI not found." The subprocess used for the check (asyncio.create_subprocess_shell("codex --version")) does not appear to inherit the process environment on Windows. Please pass env=os.environ (or equivalent) when creating that subprocess so the child sees the same PATH.
When the MCP server is started with
PATHcontaining the directory withcodex.cmd(e.g.%APPDATA%\npm), and the server is the direct child of the process that has that PATH, the Codex availability check still fails with "Codex CLI not found." The subprocess used for the check (asyncio.create_subprocess_shell("codex --version")) does not appear to inherit the process environment on Windows. Please passenv=os.environ(or equivalent) when creating that subprocess so the child sees the same PATH.