TovaHub guide

Remote MCP Endpoint Preflight: What HTTP 200 Actually Proves

A remote MCP integration can return HTTP 200 and still fail before the client shows a useful tool. The endpoint may be reachable, but the response may not be the JSON-RPC message the client expects. A client can also fail later on authentication, session handling, transport format, or tool discovery.

Before changing client configuration, run a narrow preflight against the endpoint. The goal is not to prove that the whole integration works. The goal is to separate connection, endpoint, protocol, and client failures so you do not debug the wrong layer.

This page is for developers who are trying to connect a remote MCP endpoint and have one of these symptoms:

  • the URL returns 200 but the MCP client still reports a connection error;
  • the client uses the legacy HTTP+SSE transport while the endpoint uses Streamable HTTP;
  • the client fails before any tools appear;
  • the client cannot tell whether the problem is DNS, TLS, endpoint path, JSON-RPC, authentication, or configuration.

It is not a replacement for the TovaHub MCP guide. The MCP guide explains how to obtain a token and configure supported clients. This page is about preflight and diagnosis before or while configuring a client.

The same distinction applies to generic MCP debugging guides: this page does not claim to cover every client, OAuth provider, or transport implementation. It shows how to interpret one small, repeatable initialize exchange and what remains untested.

1. Make a minimal initialize request

Use an endpoint URL, not the documentation page for the endpoint. Send a single JSON-RPC initialize request over HTTP POST:

curl -q -sS -i --connect-timeout 5 --max-time 15 \
  --cookie '' \
  -X POST "$ENDPOINT" \
  -H 'Content-Type: application/json' \
  -H 'Accept: application/json, text/event-stream' \
  --data-binary '{
    "jsonrpc": "2.0",
    "id": 1,
    "method": "initialize",
    "params": {
      "protocolVersion": "2025-03-26",
      "capabilities": {},
      "clientInfo": {
        "name": "mcp-preflight",
        "version": "0.1.0"
      }
    }
  }'

$ENDPOINT should look like https://tovahub.com/mcp, not like a documentation URL and not like a base hostname with no path. The exact endpoint required by a client can differ; use the client's current configuration guidance.

MCP Streamable HTTP permits a POST response to use either application/json for a single JSON-RPC message or text/event-stream for an SSE stream. Streamable HTTP clients must accept both; SSE alone is not the only valid response shape. See the MCP Streamable HTTP transport specification.

Keep this request limited to a test. Do not add real credentials to a command you will paste into a public issue.

2. Classify the failure before changing the client

Failure class 1: transport and reachability

Symptoms:

  • connection timeout;
  • DNS lookup failure;
  • TLS handshake failure;
  • connection reset or proxy error;
  • no HTTP response at all.

What to check:

  • resolve the hostname separately;
  • test the exact public HTTPS URL;
  • check whether a reverse proxy is accepting POST;
  • check whether the network blocks outbound traffic;
  • confirm whether the endpoint is intentionally private and whether the client runs on a network that can reach it.

Do not start by changing MCP configuration when the endpoint is not reachable over the same network path the client will use.

Failure class 2: endpoint and HTTP method

Symptoms:

  • 404 Not Found;
  • 405 Method Not Allowed;
  • a documentation page or marketing page is returned instead of JSON;
  • a redirect lands on the wrong path.

What to check:

  • use the full endpoint path, including /mcp when that is what the provider documents;
  • use POST for an initialize request;
  • follow redirects only deliberately;
  • compare the URL in the client configuration with the URL used in the successful preflight.

A server can be healthy while the client is configured with the wrong path. A 404 is an endpoint-routing problem, not evidence that the MCP protocol implementation is broken.

Failure class 3: response and JSON-RPC shape

Symptoms:

  • HTTP 200 with an empty body;
  • HTML instead of JSON;
  • malformed JSON;
  • a JSON-RPC error object;
  • an id that does not match the request;
  • a protocol version the client does not accept;
  • a client configured for the legacy HTTP+SSE transport while the endpoint uses Streamable HTTP;
  • a client that cannot parse the negotiated Streamable HTTP response framing.

What to check:

  • inspect the Content-Type header;
  • treat both application/json and text/event-stream as valid Streamable HTTP response types;
  • parse the body as JSON-RPC when the response is JSON;
  • read SSE event and data frames when the response is an event stream;
  • verify the returned protocol version and server information;
  • keep the request id visible so a response can be matched to its request.

A valid HTTP response is not automatically a usable MCP response. The body and framing matter.

Failure class 4: authentication, session, and client behavior

Symptoms:

  • 401 or 403;
  • OAuth discovery or token exchange failure;
  • a missing or expired Mcp-Session-Id when the server issued one during initialize;
  • the client connects to the endpoint but never lists tools;
  • the client reports a transport error after a successful-looking HTTP request.

What to check:

  • read the client's own log or traceback;
  • confirm whether the client expects a bearer token, OAuth, or another authorization flow;
  • if initialize returned Mcp-Session-Id, confirm later requests include it; stateless servers may omit sessions entirely;
  • check whether the client requires tools/list before showing a connection as ready;
  • keep authentication failures separate from protocol-shape failures.

This class is often where the most misleading 200 reports come from. A successful low-level request does not prove that authentication, session handling, or tool discovery passed.

3. A real TovaHub preflight observation

On 2026-12-02, TovaHub's publicly reachable remote MCP endpoint was checked with three recorded unauthenticated initialize requests: two initial requests plus one later recheck. All three returned HTTP 200 OK with Content-Type application/json and the same JSON-RPC body; the recorded total times were roughly 1.3 to 1.4 seconds in that test environment. These timings are one observation, not a latency guarantee.

The response body was:

{"result":{"protocolVersion":"2025-03-26","capabilities":{"tools":{"listChanged":true}},"serverInfo":{"name":"tovahub","version":"1.0.0"}},"jsonrpc":"2.0","id":1}

What this confirmed:

  • the endpoint accepted the JSON-RPC initialize request format;
  • the server returned protocol version 2025-03-26;
  • the response identified the server as tovahub version 1.0.0;
  • the tested response used application/json, which is valid for Streamable HTTP; the checks did not exercise text/event-stream;
  • the response advertised a tools capability in capabilities.tools.listChanged.

What this did not confirm:

  • that authentication is required or unnecessary for later methods;
  • that tools/list works;
  • that any tools/call works;
  • that session behavior is correct;
  • that Dify or another client is compatible;
  • that OAuth discovery, PKCE, or dynamic client registration works;
  • that rate limits, billing, payment, or real tool results work;
  • that browser cross-origin use works;
  • that the endpoint is production-monitoring-ready.

The tools.listChanged capability is a declaration in the response. It is not proof that tool listing or tool calls passed.

4. A safer debugging order

Use this order to avoid changing several layers at once:

  1. Test DNS and public HTTPS reachability.
  2. Send one POST to the exact endpoint path.
  3. Inspect HTTP status and response headers.
  4. Parse the body according to its actual content type.
  5. Verify JSON-RPC shape, request id, protocol version, and server information.
  6. Check authentication and session behavior required by the client.
  7. Check tools/list and tools/call only after the initialize path is understood.
  8. Compare the client log with the request and response you captured.

Do not treat a successful initialize response as a complete client test. It is one checkpoint.

FAQ

Does HTTP 200 mean the MCP endpoint is working?

No. HTTP 200 only means the HTTP layer returned a successful response. The body can still be malformed, incomplete, incompatible, or unsuitable for the client's expected transport.

Why did I receive JSON instead of an SSE stream?

MCP Streamable HTTP allows a POST response to use application/json or text/event-stream, and compliant clients must accept both. Receiving JSON is not itself an error. An SSE-only client configured for the legacy HTTP+SSE transport is a transport mismatch.

Does this preflight test authentication?

No. The TovaHub observation used an unauthenticated initialize request. It does not establish whether later methods, tools, or business operations require authentication.

Does this prove that tools/list or tools/call works?

No. The response advertises a tools capability, but the preflight did not call tools/list or tools/call.

Does this prove Dify compatibility?

No. The check did not test Dify, a real client configuration, OAuth, a tool call, or a client traceback. It only tested the endpoint's response to one initialize request.

Are MCP sessions always required?

No. A stateless server may omit sessions entirely. If a server returns Mcp-Session-Id during initialize, the client must use that session ID on later requests; a missing or expired ID is then an authentication, session, or client-behavior problem rather than evidence that JSON is invalid.

Where do I configure a TovaHub client?

Use the Connect to TovaHub MCP link at the end of this page for the current token and client configuration steps. If you are still diagnosing the endpoint itself, keep this page's preflight result separate from the client setup result.

Next step

If you want to inspect the TovaHub endpoint from a compatible client, start with the current MCP setup guide:

Connect to TovaHub MCP

For endpoint and API details, use API documentation. For plan capacity and pricing, see VPS pricing.

Facts checked on 2026-12-02. The checked response proves only the stated initialize exchange. Authentication, tool listing, tool calls, third-party client compatibility, rate limits, billing, and production monitoring remain unverified.