docs/errors/MCPX_STDIO_HANDSHAKE_INVALID.md
MCPX_STDIO_HANDSHAKE_INVALIDSeverity: error Domain: STDIO
The stdio server emitted bytes on stdout in response to initialize, but
mcpproxy could not parse them as a valid MCP / JSON-RPC frame. Common shapes:
HTML, a stack trace, ANSI-coloured logs, partial JSON, or an MCP frame for an
unsupported protocol version.
set -x, echo "starting…").upstream logs records the raw stdout stream — find the offending payload:
mcpproxy upstream logs <server-name> --tail 200
echo "starting" >&2.NO_COLOR=1, TERM=dumb.set -x or set -v from start-up scripts.mcpproxy currently advertises a recent protocol version. If the upstream server only supports an old one, update the server. Project maintainers should target the MCP protocol versions that mcpproxy understands.
Running the server inside a clean container removes most sources of contamination from your shell profile and runtime:
{
"isolation": { "enabled": true }
}
MCPX_STDIO_HANDSHAKE_TIMEOUT — server didn't reply at all