Proxy settings matter to MCP when the client makes a network connection. A local stdio server is a subprocess: the client talks to its standard input and output, so that link cannot go through an HTTP proxy. The subprocess might still make its own outbound requests; those are a separate part of the setup.
Decide which connection you are diagnosing
| What you configured | Where to look |
|---|---|
| A local command and arguments | Check that the subprocess launches and keeps protocol messages on stdout and diagnostics on stderr. If a tool inside it calls an API, inspect that process’s network configuration. |
| An approved remote HTTPS MCP URL | Check the client’s proxy settings, then the HTTPS origin, endpoint path and authentication. The proxy’s credentials are not the MCP server’s credentials. |
The MCP transport specification describes both modes. Keep a local server bound to localhost, retain authentication and origin checks for HTTP, and do not expose a private MCP server just to make a connection test work.
Send one initialization request to a test endpoint
Use this PowerShell 7 probe only with an operator-approved, credential-free staging endpoint for Streamable HTTP. Set MEXELA_APPROVED_MCP_URL to its exact HTTPS endpoint, MEXELA_CORPORATE_PROXY to the approved proxy URL, and MEXELA_TEST_CA to the approved origin CA bundle. Use a real MCP client for authenticated or stateful use; this diagnostic performs no tool calls and does not complete an MCP session.
$message = @{jsonrpc='2.0'; id=1; method='initialize'; params=@{protocolVersion='2025-11-25'; capabilities=@{}; clientInfo=@{name='network-check'; version='1.0.0'}}} | ConvertTo-Json -Depth 6 -Compress
$message | curl.exe --silent --show-error --include --connect-timeout 5 --max-time 10 --noproxy "" --proxy "$env:MEXELA_CORPORATE_PROXY" --cacert "$env:MEXELA_TEST_CA" --header "Content-Type: application/json" --header "Accept: application/json, text/event-stream" --data-binary '@-' "$env:MEXELA_APPROVED_MCP_URL"
Read the response before trying again
Look for a JSON-RPC response with ID 1 and a negotiated protocol version. A Streamable HTTP server may send the response as JSON or as an SSE event. A proxy CONNECT 200 is not an MCP response, and an HTML login page is not a successful handshake. A 407 points to proxy authentication; an origin 401 points to the server’s authentication. A timeout after receiving SSE headers may mean the one-shot curl command reached its time limit on an open stream.
If only the real client fails, check its own proxy support, trust configuration and which process owns the connection. For environment variable scope, see the environment guide or the developer integration hub.
Verification, December 5, 2026: The published probe made one CONNECT and one HTTPS POST to a local fixture. The fixture confirmed the initialization payload and both accepted media types, then returned a JSON-RPC response. This did not test a production MCP server, an SSE stream, OAuth, or a full session.
