Repository navigation
Description
Codex version
- Codex CLI used by the desktop app:
codex-cli 0.158.0-alpha.2.1 - Codex desktop app package:
OpenAI.Codex 26.924.2738.0(Windows Store)
Operating system
Microsoft Windows 11 Pro 64-bit, version 10.0.26200, build 26200.
Session / report ID
01a0dedd-284d-7bd1-935d-0581c13f0495
Description
The shared codex_apps MCP server consistently fails during initialization, so installed app connectors (observed with the curated Supabase plugin) expose no tools in new Codex chats. Reconnecting/reinstalling the plugin and restarting the app, computer, and network did not resolve it.
A direct Streamable HTTP MCP configuration for the official Supabase endpoint fails at OAuth metadata discovery with the same decoding error, which suggests this is in the Codex HTTP/MCP transport path rather than only the curated plugin configuration.
Steps to reproduce
- Install and connect the curated Supabase plugin in Codex desktop.
- Start a new chat and try to use Supabase tools such as
list_migrations,apply_migration, ordeploy_edge_function. - Observe that no Supabase tools are registered and
codex_appsreportsstatus=failed. - Restart Codex, reconnect/reinstall the plugin, restart Windows, and retry on a different Wi-Fi/network; the failure persists.
- Configure the official Supabase MCP endpoint directly under
[mcp_servers.supabase_direct]and runcodex mcp login supabase_direct.
Expected behavior
codex_apps initializes successfully and installed connector tools become available. A directly configured HTTP MCP server should complete OAuth metadata discovery and open the authentication flow.
Actual behavior
The app log records:
MCP client for `codex_apps` failed to start: MCP startup failed: handshaking with MCP server failed: ... Client error: HTTP request failed: error decoding response body, when send initialize request ... server=codex_apps status=failed threadId=01a0dedd-284d-7bd1-935d-0581c13f0495
The direct MCP login reports:
Metadata error: OAuth metadata discovery failed for https://mcp.supabase.com/mcp?[project-scoped query redacted]
Caused by: HTTP request failed: error decoding response body
A read-only curl.exe probe reaches the official endpoint and receives HTTP/1.1 401 Unauthorized, but then reports:
transfer-encoding: chunked
curl: (56) chunk hex-length char not a hex digit: 0x7b
The same malformed-chunk symptom occurs for the OAuth protected-resource metadata endpoint after an HTTP/1.1 200 OK. This may be useful for determining whether an intermediary or the runtime HTTP stack is involved. The machine has also been tested on a different Wi-Fi/network with the same outcome.
Troubleshooting already attempted
- Disconnected/reconnected and reinstalled the Supabase plugin.
- Restarted Codex desktop and Windows.
- Retried from another Wi-Fi/network, without VPN/proxy.
- Confirmed
https://mcp.supabase.com/mcpis reachable. - Confirmed the app and the
codexcommand use the same bundled binary/version. - Added an isolated, project-scoped direct MCP entry; discovery still fails before OAuth opens.
Additional context
The local log path is under %LOCALAPPDATA%\Codex\Logs\2026\09\26\ (username and project identifiers intentionally omitted). More than 100 codex_apps status=failed events are present for the day, with no successful ready event in that day's logs.
Activity
github-actions commentedon Sep 26, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
fxkanton commentedon Sep 26, 2026
Confirmed root cause and successful resolution.
The issue was caused by Avast One 26.9.11171.1011 HTTPS scanning on Windows, not by the Supabase plugin configuration itself.
Before disabling HTTPS scanning
codex_appsfailed during MCP initialization withHTTP request failed: error decoding response body.curl.exereceivedtransfer-encoding: chunkedand then failed with:Changing Wi-Fi did not help because the response interception was local to the machine.
After disabling Avast's "Enable HTTPS scanning" setting
https://mcp.supabase.com/mcpreturned the expected401 Unauthorized, withContent-Length: 26, andcurl_exit=0.200 OK, withContent-Length: 487, andcurl_exit=0.No Supabase references were found in the recent Avast report files under
C:\ProgramData\Avast Software\Avast\report.This is resolved locally. The maintainers can close this issue unless they want to keep it for tracking compatibility between Codex MCP HTTP traffic and Avast HTTPS inspection.
citroendamvillelomas-cell commentedon Sep 26, 2026
I can reproduce this on a separate Windows 11 Home (build 26200) machine with OpenAI.Codex 26.924.2738.0 / codex-cli 0.158.0-alpha.2.1, using the Sites connector. The app tools briefly appear in the catalog and then become unavailable. At 2026-09-26 20:52 UTC, local Codex logs show repeated codex_apps initialization failures: "HTTP request failed: error decoding response body, when send initialize request"; the tool catalog subsequently omits codex_apps because there is no exact ready client.
ChatGPT authentication is configured. codex doctor reports provider reachability and a successful WebSocket handshake (HTTP 101); DNS and TCP/443 to chatgpt.com work. There is no WinHTTP or environment proxy. Avast Antivirus and Avast Firewall are active. Avast's firewall rules allow outbound 443 for the current ChatGPT.exe and codex.exe, and its StreamFilter log observes Codex MCP traffic and reports two incomplete HTTP responses near the failure window. I found no explicit outbound block.
I have not disabled Avast HTTPS scanning on this machine, so I cannot independently confirm the workaround reported above. The matching symptoms and active HTTPS inspection make it a strong candidate. A compatibility fix or narrow remediation that preserves general HTTPS scanning would be appreciated. No credentials, cookies, account IDs, or private site identifiers are included here.
morten-olsen-vejle commentedon Sep 28, 2026
Additional Windows reproduction on package OpenAI.Codex 26.924.2738.0, bundled engine 0.158.0-alpha.2.1:
This corroborates #48504 and the discovery/runtime mismatch described in #48082. The exact cause is unconfirmed. No credential extraction, connector permission expansion or security bypass was attempted. Is there a supported fix for the built-in codex_apps initialization on this Windows build?
rodrigogiorgino-afk commentedon Oct 8, 2026
Additional reproduction with the Asana connector on Codex Desktop for Windows.
01a11b54-59ab-73b2-88c3-c3e8abd321e8Behavior:
asana.get_usercall fails with:MCP tool codex_apps/asana.get_user is not available to the model.asana_get_projectsis unavailable).MCP server startup failed server_name="codex_apps",HTTP request failed: error decoding response body, when send discover request, andApps MCP startup reconnect failed; continuing with cached tools.Restarting Codex and reproducing in a new chat did not resolve the issue. The failure occurs before any response is received from the Asana API, so this appears to match the shared
codex_appsinitialization/catalog issue rather than an Asana authorization error.DaneWeintraub commentedon Oct 9, 2026
I can confirm the same issue on Windows with Codex Desktop 26.1002.52244 (build 13536).
GitHub, Higgsfield, Dropbox, and Hugging Face worked in ChatGPT but failed in Codex. The shared
codex_appsstartup error was:With Avast still enabled, turning off only Enable HTTPS scanning allowed live read-only requests to all four integrations to succeed. They continued working after a reboot, and the logs showed
codex_apps status=ready.This confirms the workaround on my system, but I have not verified the underlying cause or a narrower exception. Disabling HTTPS scanning reduces that layer of protection, so I would prefer a compatibility fix or a targeted exception that lets HTTPS scanning stay enabled elsewhere.
Kc3010300501 commentedon Oct 10, 2026
Additional reproduction with the Sites app on Codex desktop for Windows.
Environment:
Observed behavior:
Local logs on 2026-10-10 at 07:04:48 UTC contain:
MCP client for codex_apps failed to start; handshaking with MCP server failed; HTTP request failed: error decoding response body, when send discover request.
Apps MCP startup reconnect failed; continuing with cached tools.
The user also reproduced the problem after switching to a mobile hotspot. The tested process has no HTTP_PROXY, HTTPS_PROXY or ALL_PROXY environment variables, and no explicit Windows user proxy was configured. These checks do not rule out local HTTPS inspection or another network filter.
We have not verified whether antivirus HTTPS inspection is responsible on this machine and have not disabled security protections. The similar error is not proof of the same root cause.
Could the maintainers advise a supported recovery or a narrowly scoped compatibility fix that preserves security protections? No account identifiers, email addresses, credentials, private Site identifiers, full logs or guest data are included in this comment.
Flo-Git-creator commentedon Oct 10, 2026
Additional reproduction on Windows 11 Core, build 10.0.26300 x64, with npm Codex CLI 0.162.1 and persistent app-server 0.162.1.
Uploaded feedback thread:
01a124a3-35e4-7953-9087-ae5e9269c7ee.Both the built-in app connection and a separately configured direct Notion server fail:
/mcp:codex_apps: failed (0 tools);notion: authentication required (0 tools).codex_appsinitialization/handshake failure withHTTP request failed: error decoding response body, including retries.codex mcp login notion, usinghttps://mcp.notion.com/mcp, fails before browser authorization:Checks completed:
--compressedreturns HTTP 200,Content-Encoding: gzip, and successfully decoded JSON./mcpreturns HTTP 401 with an empty body andWWW-Authenticateadvertisinghttps://mcp.notion.com/.well-known/oauth-protected-resource/mcp, which curl retrieves successfully.RUST_LOG=debugadds no console detail to the login failure.The direct OAuth symptom also resembles #47756, but we have not performed its version/WSL comparisons or established a shared cause.
Could maintainers advise a supported fix or a targeted diagnostic that exposes the nested decoding cause? No TLS checks or security protections were disabled, and no credentials were reset during these tests.
lesliedominguezriquezaacademy-creator commentedon Oct 14, 2026
#48504
lesliedominguezriquezaacademy-creator commentedon Oct 14, 2026
I’m seeing the same issue on Windows with Codex CLI 0.162.1. codex mcp login notion fails before opening the browser with “HTTP request failed: error decoding response body.” curl.exe returns HTTP 200 with valid JSON from the OAuth metadata URL. Avast One is not installed. Is there a recommended workaround?
too555 commentedon Oct 23, 2026
Additional reproduction on Windows 11 Pro (build 26200), using Codex CLI 0.164.0.
Issue:
codex_appsconsistently reportsfailed (367 tools), while Spline cloud MCP, Spline local MCP, and Serena connect successfully.Logs:
HTTP request failed: error decoding response bodyinitializeanddiscoverrequests.StreamFilter.logrecordsCHttp1xFilterContext.pushData.incomplete_http_responseforcodex.exearound the same times as the Codex errors.Content-Length: 67997and1751.Troubleshooting completed:
With HTTPS scanning disabled, one MCP initialization succeeded but was subsequently cancelled. The overall
codex_appsfailure persisted.The Avast log correlation suggests possible HTTPS inspection interference, but the root cause is not yet confirmed.
Workaround: Starting Codex with
--disable appsallows the other MCP integrations to function.Feedback thread ID:
01a167f6-bdf4-74f1-a8c7-fbffdf3649ee(no diagnostic logs uploaded).Is there a supported fix for the HTTP response decoding issue that preserves HTTPS security scanning?
jimboll commentedon Oct 31, 2026
AVG Internet Security: domain exception restores app tools after restart
Tested on Windows on 31 October 2026:
Before the workaround
Mobbin worked on the web but its tools were unavailable in Codex desktop. Restarting Codex and creating new chats did not resolve this.
Desktop logs repeatedly reported:
Tests and results
codex_appsconnection reachedready, and a live Mobbin search succeeded.chatgpt.comunder AVG > Menu > Settings > General > Exceptions > Website / Domain.A further live Mobbin collection request succeeded after that restart.
Conclusion and limitation
The domain exception is a verified workaround on this installation. The results strongly implicate AVG Web Shield, but do not isolate which internal inspection feature caused the response-decoding failure.
The exception reduces AVG scanning for
chatgpt.com; Web Shield remains enabled elsewhere. A compatibility fix or clearer diagnostic would be preferable to requiring an exception.damonrymer-glitch commentedon Nov 2, 2026
Additional Windows reproduction and recovery observations from November 2, 2026.
Environment
26.1027.3384.0.0.166.0-alpha.5.1.Failure
Sites tools were missing from the active local chat. The shared
codex_appsconnection failed during discovery withHTTP request failed: error decoding response body. The OpenAI Developers account-link connector also failed during initialization, and plugin catalog refreshes showed the same decoding error.The chain in the logs was:
Apps MCP startup reconnect failed; continuing with cached tools, with a 30000 ms reconnect delay.At one diagnostic capture, 30 shared-app startup failures were recorded across November 1–2. Decoding-error records spanned 23 app-server process instances. These counts include repeated logging/retries, not independent requests. Repeated full application restarts did not resolve the problem. After a new connection/network attempt was reported, a fresh attempt still failed; the exact network change was not independently verified.
HTTPS inspection and recovery
A verified TLS 1.3 connection to
chatgpt.comreceived a certificate with:Norton Web/Mail Shield RootNorton Web/Mail Shieldgenerated by Norton Antivirus for SSL/TLS scanningDNS resolution and a separate unauthenticated HEAD request to the public ChatGPT homepage succeeded (HTTP 200). No proxy-related environment variables were present in the diagnostic process, and WinHTTP reported direct access. These checks do not rule out interception.
After a targeted Norton HTTPS-scanning test, a fresh certificate probe showed Let's Encrypt YE1 instead of Norton. At approximately 11:00 UTC on November 2, Sites tools appeared in the active chat, and an actual read-only owner-authorized Sites request succeeded.
On another check at approximately 11:01 UTC, the certificate issuer was Norton Web/Mail Shield again, but the actual Sites request still succeeded. Publishing tools subsequently worked, and real deployments completed successfully. The exact Norton UI setting changed was not directly observed by the diagnostic agent.
This is consistent with inspection affecting initial connection establishment differently from an established connection, or the temporary change clearing a transient condition. It does not prove Norton was the sole cause, that inspection always breaks Sites, or that protection must remain disabled.
The Chrome extension was updated later and browser automation resumed through a new browser connection. That update happened after Sites recovery, so it is not established as the fix for the shared app connector.
Limits of the diagnosis
The existing logs did not include the failed HTTP response status, headers, raw body, or underlying decoder detail. We did not independently demonstrate invalid chunk framing on this machine. No custom transport adapter was installed and TLS verification was never disabled. Credentials, account identifiers, private Site URLs/IDs, and raw logs are intentionally omitted.
Could maintainers investigate compatibility between the current Windows MCP HTTP transport and Norton HTTPS/MCP inspection, particularly discovery/initialization versus subsequent tool calls?
pam-param-pam commentedon Nov 2, 2026
Same problem with norton anti virus
SholaOgunde commentedon Nov 16, 2026
Potential Workaround
I had a similar issue using Figma MCP with Codex Desktop and ChatGPT helped me troubleshoot it.
Workaround for Norton 360 Premium
Open Norton 360.
If HTTPS scanning is set,
Adding one server is not enough. All related endpoints need to be added. I got ChatGPT to help me discover which endpoints were used as part of the process - using the following standard commands
mistily commentedon Nov 19, 2026
Additional reproduction — Windows, AVG, Codex 0.170.0, local HTTP vs. STDIO
I have reproduced a similar issue on Windows 11 with AVG antivirus installed, using Codex 0.167.0 and 0.170.0.
However, my investigation extends beyond the built-in
codex_appsintegration.I implemented two minimal, dependency-free Python MCP servers to isolate the transport behavior:
Results:
MCP_OK.The HTTP server receives the initialize requests and returns HTTP 200, but Codex repeatedly fails with:
ERROR rmcp::transport::worker: worker quit with fatal: Transport channel closed, when Client(HttpRequest(HttpRequest("error decoding response body")))The HTTP failures also affect a third-party integration, Switch Console, which uses a loopback MCP server.
Related downstream issue: sandbox-quantum/switch#1692
Since the independent reproduction uses plain HTTP on localhost, could the investigation also cover local HTTP inspection and response framing, rather than HTTPS scanning alone?
AVG's involvement remains a hypothesis on my machine. I would prefer a narrowly scoped compatibility fix that preserves antivirus protection.
I can provide both minimal Python reproduction scripts and sanitized diagnostic logs if useful.