Skip to content

[Windows] MCP HTTP responses fail with "error decoding response body"; app connectors unavailable #48504

Open

Description

@fxkanton

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

  1. Install and connect the curated Supabase plugin in Codex desktop.
  2. Start a new chat and try to use Supabase tools such as list_migrations, apply_migration, or deploy_edge_function.
  3. Observe that no Supabase tools are registered and codex_apps reports status=failed.
  4. Restart Codex, reconnect/reinstall the plugin, restart Windows, and retry on a different Wi-Fi/network; the failure persists.
  5. Configure the official Supabase MCP endpoint directly under [mcp_servers.supabase_direct] and run codex 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/mcp is reachable.
  • Confirmed the app and the codex command 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

  1. added
    bug
    app
    windows-os
    mcp
    connectivity
    on Sep 26, 2026
  2. fxkanton commented on Sep 26, 2026

    @fxkanton
    Author

    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_apps failed during MCP initialization with HTTP request failed: error decoding response body.
    • A direct Supabase MCP configuration failed at OAuth metadata discovery with the same error.
    • A control probe with curl.exe received transfer-encoding: chunked and then failed with:
    curl: (56) chunk hex-length char not a hex digit: 0x7b
    

    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/mcp returned the expected 401 Unauthorized, with Content-Length: 26, and curl_exit=0.
    • The OAuth protected-resource metadata endpoint returned 200 OK, with Content-Length: 487, and curl_exit=0.
    • The direct MCP OAuth flow opened successfully, confirming that response decoding was fixed.
    • The temporary direct MCP configuration and its OAuth flow were then removed/cancelled.
    • The official curated Supabase plugin loaded and worked successfully in a fresh Codex chat, as confirmed by the user.

    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.

  3. citroendamvillelomas-cell commented on Sep 26, 2026

    @citroendamvillelomas-cell

    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.

  4. morten-olsen-vejle commented on Sep 28, 2026

    @morten-olsen-vejle

    Additional Windows reproduction on package OpenAI.Codex 26.924.2738.0, bundled engine 0.158.0-alpha.2.1:

    • Microsoft SharePoint get_profile succeeds in ChatGPT web (Chrome) with the same account.
    • In a newly created local desktop chat, SharePoint tools initially appear in discovery, but the actual get_profile call fails with TypeError: tools.mcp__codex_apps__microsoft_sharepoint_get_profile is not a function. Subsequent discovery has neither SharePoint nor Sites tools.
    • Startup logs show MCP server startup failed server_name="codex_apps", with HTTP request failed: error decoding response body, when send initialize request.
    • Reproduced after logout/login, app update, and testing from a mobile hotspot. A fresh initialization failure after switching networks occurred on 2026-09-28 at 08:37:27 UTC.
    • Codex Doctor reports consistent installation, healthy state databases, loaded configuration, configured authentication, successful desktop app-server initialization, working provider HTTP reachability and WebSocket handshake (HTTP 101). Its optional node_repl environment warning is separate.
    • No explicit codex_apps entry in user config. WinHTTP reports direct access, Windows user ProxyEnable=0.

    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?

  5. rodrigogiorgino-afk commented on Oct 8, 2026

    @rodrigogiorgino-afk

    Additional reproduction with the Asana connector on Codex Desktop for Windows.

    • Codex Desktop: 26.1002.52244 (build 13536), reported up to date
    • Asana plugin: 7.0.0
    • Feedback / Session ID: 01a11b54-59ab-73b2-88c3-c3e8abd321e8
    • Observed: 2026-10-08 at approximately 08:45 and 08:47 (America/Sao_Paulo)

    Behavior:

    1. Asana tools initially appear in the tool catalog.
    2. A read-only asana.get_user call fails with: MCP tool codex_apps/asana.get_user is not available to the model.
    3. Other Asana bindings then disappear (for example, asana_get_projects is unavailable).
    4. Local logs show MCP server startup failed server_name="codex_apps", HTTP request failed: error decoding response body, when send discover request, and Apps 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_apps initialization/catalog issue rather than an Asana authorization error.

  6. DaneWeintraub commented on Oct 9, 2026

    @DaneWeintraub

    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_apps startup error was:

    HTTP request failed: error decoding response body, when send discover request
    

    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.

  7. Kc3010300501 commented on Oct 10, 2026

    @Kc3010300501

    Additional reproduction with the Sites app on Codex desktop for Windows.

    Environment:

    • Bundled backend: codex-cli 0.162.0-alpha.17.2. The desktop UI version has not been verified; this is the backend version, not the desktop app version.
    • Sites is enabled in app settings, where 42 tools are displayed.

    Observed behavior:

    • Sites tools are unavailable in the local conversation. During a later attempt the app tool catalog briefly appeared, then disappeared before a read-only get_site call could run.
    • Existing Sites cannot be updated/published from this local conversation because the connector is unavailable.
    • The user reports that the same Site is accessible as owner from ChatGPT web with the same account. This is a user-reported comparison, not a successful call from the affected local conversation.

    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.

  8. Flo-Git-creator commented on Oct 10, 2026

    @Flo-Git-creator

    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).
    • Recent diagnostic database warnings explicitly identify codex_apps initialization/handshake failure with HTTP request failed: error decoding response body, including retries.
    • codex mcp login notion, using https://mcp.notion.com/mcp, fails before browser authorization:
    Error: Metadata error: OAuth metadata discovery failed for https://mcp.notion.com/mcp
      Caused by: HTTP request failed: error decoding response body
    

    Checks completed:

    • The same Notion error occurs on regular Wi-Fi and a phone hotspot.
    • curl successfully retrieves Notion's root and path-specific OAuth metadata. The authorization-server and path-specific protected-resource responses contain valid-looking JSON.
    • An explicit gzip request using curl --compressed returns HTTP 200, Content-Encoding: gzip, and successfully decoded JSON.
    • An unauthenticated GET of /mcp returns HTTP 401 with an empty body and WWW-Authenticate advertising https://mcp.notion.com/.well-known/oauth-protected-resource/mcp, which curl retrieves successfully.
    • Doctor reports consistent installation, healthy databases, successful ChatGPT HTTP/WebSocket connectivity, MXC active, and no proxy environment variables or managed proxy.
    • Doctor reports no supported endpoint protection detected. We have not independently verified the absence of HTTPS inspection, and have not established that the Avast-related cause discussed above applies here. Unlike the original report, our curl tests do not show malformed chunking.
    • New chats and selecting Notion do not restore tools. Temporary RUST_LOG=debug adds 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.

  9. lesliedominguezriquezaacademy-creator commented on Oct 14, 2026

    @lesliedominguezriquezaacademy-creator
  10. lesliedominguezriquezaacademy-creator commented on Oct 14, 2026

    @lesliedominguezriquezaacademy-creator

    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?

  11. too555 commented on Oct 23, 2026

    @too555

    Additional reproduction on Windows 11 Pro (build 26200), using Codex CLI 0.164.0.

    Issue:
    codex_apps consistently reports failed (367 tools), while Spline cloud MCP, Spline local MCP, and Serena connect successfully.

    Logs:

    • HTTP request failed: error decoding response body
    • Failures occur during MCP initialize and discover requests.
    • Avast StreamFilter.log records CHttp1xFilterContext.pushData.incomplete_http_response for codex.exe around the same times as the Codex errors.
    • The observed HTTP responses used Content-Length: 67997 and 1751.

    Troubleshooting completed:

    • Updated Codex CLI from 0.163.0 to 0.164.0.
    • Restarted Windows and Codex.
    • Temporarily disabled Avast HTTPS scanning.
    • Tested Avast URL exclusions.
    • Disabled hardware network acceleration and restarted.
    • Confirmed that Spline MCP tools work when Apps integration is disabled.

    With HTTPS scanning disabled, one MCP initialization succeeded but was subsequently cancelled. The overall codex_apps failure persisted.

    The Avast log correlation suggests possible HTTPS inspection interference, but the root cause is not yet confirmed.

    Workaround: Starting Codex with --disable apps allows 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?

  12. jimboll commented on Oct 31, 2026

    @jimboll

    AVG Internet Security: domain exception restores app tools after restart

    Tested on Windows on 31 October 2026:

    • Codex desktop: 26.1027.3384.0
    • Bundled app-server: 0.166.0-alpha.5.1
    • AVG Internet Security: 26.10.11201.3863
    • Affected integration: Mobbin

    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:

    MCP client for `codex_apps` failed to start
    HTTP request failed: error decoding response body
    when send discover request
    

    Tests and results

    1. Temporarily disabled AVG Web Shield. The shared codex_apps connection reached ready, and a live Mobbin search succeeded.
    2. Added chatgpt.com under AVG > Menu > Settings > General > Exceptions > Website / Domain.
    3. Re-enabled Web Shield. A live Mobbin collection request succeeded.
    4. Fully restarted Codex with Web Shield enabled and the exception retained. The fresh startup log reported:
    2026-10-31T17:46:12.837Z
    mcp_server_startup_status_updated
    error=null failureReason=null
    hostId=local server=codex_apps status=ready
    

    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.

  13. damonrymer-glitch commented on Nov 2, 2026

    @damonrymer-glitch

    Additional Windows reproduction and recovery observations from November 2, 2026.

    Environment

    • Windows app package: 26.1027.3384.0.
    • Reported bundled app-server: 0.166.0-alpha.5.1.
    • Norton 360 for Gamers installed.

    Failure
    Sites tools were missing from the active local chat. The shared codex_apps connection failed during discovery with HTTP 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:

    1. HTTP response-body decoding fails in the streamable HTTP adapter.
    2. The MCP transport worker closes the channel.
    3. Three total attempts fail, with 250 ms and 1000 ms retry delays.
    4. The app reports Apps MCP startup reconnect failed; continuing with cached tools, with a 30000 ms reconnect delay.
    5. The tool catalog omits the connector because no ready client exists.

    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.com received a certificate with:

    • Issuer: Norton Web/Mail Shield Root
    • Organization: Norton Web/Mail Shield
    • Organizational unit: generated by Norton Antivirus for SSL/TLS scanning

    DNS 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?

  14. pam-param-pam commented on Nov 2, 2026

    @pam-param-pam

    Same problem with norton anti virus

  15. SholaOgunde commented on Nov 16, 2026

    @SholaOgunde

    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.

    1. Select Security.
    2. Navigate to Advanced Security → Web → Safe Web.
    3. Open the Settings tab.
    4. Expand Safe Web dropdown
    5. Look for HTTPS scanning.

    If HTTPS scanning is set,

    1. Open the Exclusions tab.
    2. Add these sites
    • mcp.figma.com : for MCP communication
    • api.figma.com : for OAuth metadata and token operations
    • www.figma.com : for interactive authorisation

    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

  16. mistily commented on Nov 19, 2026

    @mistily

    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_apps integration.

    I implemented two minimal, dependency-free Python MCP servers to isolate the transport behavior:

    • Streamable HTTP over localhost, without authentication or TLS.
    • STDIO, exposing an equivalent diagnostic tool.

    Results:

    • HTTP initialization via curl: HTTP 200 with valid JSON.
    • HTTP initialization via Codex: repeated response-decoding errors, followed by unavailable MCP tools.
    • STDIO initialization via Codex: successful.
    • STDIO tool execution: successful, returning 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    appbugconnectivitymcpwindows-os

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions