Skip to content

Snowflake MCP streamable_http fails at initialize with "error decoding response body" while same PAT/server works in Cursor #12285

Closed as duplicate

Description

@josescuderoh

What version of Codex CLI is running?

0.104.0

What subscription do you have?

Business

Which model were you using?

gpt-5.3-codex

What platform is your computer?

macOS

What terminal emulator and version are you using (if applicable)?

iterm2

What issue are you seeing?

Codex fails to start my Snowflake MCP server during initialize handshake with:

Client error: error decoding response body, when send initialize request

The same Snowflake MCP URL + PAT works in Cursor.

Environment

  • Codex CLI: 0.104.0
  • OS: macOS
  • Transport: streamable HTTP (url in ~/.codex/config.toml)
  • Snowflake MCP server URL:
    https://<acct-id>.snowflakecomputing.com/api/v2/databases/...

Config

~/.codex/config.toml:

[mcp_servers.snowflake]
url = "https://<acct-id>.snowflakecomputing.com/api/v2/databases/..."
bearer_token_env_var = "SNOWFLAKE_MCP_PAT"
http_headers = { "mcp-protocol-version" = "2025-06-18", "Accept-Encoding" = "identity", "Accept" = "application/json, text/event-stream" }

What steps can reproduce the bug?

  1. Export SNOWFLAKE_MCP_PAT in shell.
  2. Start Codex from same shell.
  3. Codex startup shows:
    • MCP client for 'snowflake' failed to start
    • handshaking with MCP server failed
    • Client error: error decoding response body, when send initialize request
  4. codex mcp get snowflake --json shows expected URL + bearer env var.
  5. Cursor with same PAT + server works.

What is the expected behavior?

  • Successful initialize + tools/list from Snowflake MCP server (as in Cursor).

Additional information

Diagnostics already done

  • Confirmed SNOWFLAKE_MCP_PAT is set in launching shell (echo ${#SNOWFLAKE_MCP_PAT} non-zero).
  • Confirmed Codex reads config:
    • codex mcp get snowflake --json returns correct URL and bearer env var.
  • Tried compatibility headers:
    • Accept-Encoding: identity
    • Accept: application/json, text/event-stream
    • mcp-protocol-version: 2025-06-18
  • No change in error.

Please advise whether this endpoint shape is currently unsupported by Codex MCP client, or if additional config is required for Snowflake-managed MCP
servers.

Activity

  1. added
    CLIIssues related to the Codex CLI
    mcpIssues related to the use of model context protocol (MCP) servers
    on Feb 20, 2026
  2. github-actions commented on Feb 20, 2026

    @github-actions
    Contributor

    Potential duplicates detected. Please review them and close your issue if it is a duplicate.

    Powered by Codex Action

  3. josescuderoh commented on Feb 24, 2026

    @josescuderoh
    Author

    Thanks for the triage. Confirming this is a duplicate of #11284: same failure mode (Streamable HTTP MCP initialize/handshake fails in Codex CLI while working in other clients). Our Snowflake endpoint/PAT is just a specific instance of the broader issue. Related but not the same as #11791 (WebStorm SSE mismatch). Closing in favor of #11284.

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

    bugSomething isn't workingmcpIssues related to the use of model context protocol (MCP) servers

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions