kwanyu (Discord #help, 11-06): with Codex connected to magpie, the
ChatGPT/Codex app wouldn't start: "config.toml:209:1: env_vars is not
supported for streamable_http". Codex refuses a command's keys (args,
env, env_vars, cwd) beside a url, and a url's (bearer_token_env_var,
http_headers, env_http_headers, http_headers_helper, oauth,
oauth_resource, auth) beside a command (codex-rs/config/src/
mcp_types.rs, TryFrom RawMcpServerConfig).
merged kept every old key magpie doesn't own. env_vars is magpie's only
while the server references a variable in its env, so a server changed
from a command to a URL (in the Library, or one imported from the
user's own stdio entry) kept its env_vars and cwd under the new url.
The converse kept bearer_token_env_var and env_http_headers under a
command. The sync's in-step check decodes neither key, so an entry
already broken was never written again.
Now codexRefused names the other transport's keys. merged drops them,
and behind reports an entry holding one, so the next sync (and a
project's .codex/config.toml) rewrites it. The user's keys of the
entry's own transport stay (enabled_tools, tool_timeout_sec, scopes, a
stdio entry's own env_vars). bearer_token, which Codex refuses for both
transports, is left as the user wrote it.
Run (mote): go test ./internal/library -count=1 ok (77.8s); GOOS=linux
and GOOS=windows go vet ./internal/library ok; gofmt -l clean.
Broken by hand: the four new tests against the old mcp.go are all red
(env_vars/cwd kept under a URL; bearer_token_env_var, env_http_headers
and oauth_resource under a command; a broken entry left in step; a
project entry read as in step).
Real Codex (codex-cli 0.165.0, sandbox CODEX_HOME, codex mcp list): a
url + env_vars entry fails with the reporter's exact error. The three
config.toml files the new tests write load and list their servers.
Not tried: the reporter's own config.toml (we only have the error line);
the ChatGPT desktop app itself; Grok's config (written by the same TOML
writer, its own transport rules not checked); a full suite before push
(runs after).