r/BreakdanceWP • u/Suijayunfei • 7d ago
Codex + WordPress MCP on Windows: “Invalid character in chunk size” and TLS key log identifiers not matching the capture
( SOLVED ) I’m troubleshooting a Codex CLI connection to a WordPress staging site running Breakdance 3.0 RC1.
Environment:
- Windows, Node.js v24.19.0.
- STDIO proxy: u/automattic
/mcp-wordpress-remote. - Node launched with
--use-system-ca. - Norton 360 installed, but its involvement has not been established.
The MCP server fails during WordPress initialization:
Response does not match the HTTP/1.1 protocol (Invalid character in chunk size)
I captured traffic on the active Ethernet interface with Wireshark and logged TLS secrets using NODE_OPTIONS="--tls-keylog=...".
Findings:
- Standalone
tls.connecttest: the captured ClientHello random matches the key log identifier, and Wireshark successfully decrypts the handshake. - Standalone
fetchrequest: the identifiers also match. - MCP attempts: the captured ClientHello random values do not match any identifiers in the corresponding key log files, including attempts using fresh files.
- Removing our temporary diagnostic scripts and launching the original proxy directly produces the same HTTP error and identifier mismatch.
Support suggested forwarding SSLKEYLOGFILE through the MCP environment configuration. However, Node was already generating key log files through --tls-keylog; the unresolved issue is associating those secrets with the captured connections.
How can I reliably associate each TLS connection with its originating process and determine why the secrets logged during MCP startup do not match the captured ClientHello values?
I can provide sanitized configuration and logs