MCP Server Tester
Point it at a remote MCP server to see which protocol revision it speaks, list and call its tools, and read every request and response — with the departures from the spec called out.
Enter an MCP server URL and press Connect.
How it connects. Most MCP servers do not send CORS headers, so a web page cannot call them directly. This tester therefore sends each
request from CodeLint's server. That is different from the other tools on this site, which run entirely in your browser:
the URL, the request and any header you add pass through the relay, in memory, and are not stored or logged. The relay
only reaches public HTTPS hostnames — it cannot reach localhost or a private network. For a server on your own machine, use the MCP Inspector,
which runs locally.
The two ways an MCP client opens a connection
The 2026-07-28 revision removed the connection handshake. A tester has to try both forms, because servers written before it only understand the older one.
| 2026-07-28 | 2025-11-25 and earlier | |
|---|---|---|
| First request | server/discover (optional — any request may be first) | initialize, then the notifications/initialized notification |
| Version | In every request: params._meta["io.modelcontextprotocol/protocolVersion"] and the MCP-Protocol-Version header, which must agree | Negotiated once in initialize; later requests send the MCP-Protocol-Version header |
| Client capabilities | In every request, under _meta | Sent once, in initialize |
| Routing headers | Mcp-Method on every request; Mcp-Name on tools/call | None |
| Sessions | None — Mcp-Session-Id was removed | Optional Mcp-Session-Id, echoed on every later request |
| Results | Carry resultType; list results also carry ttlMs and cacheScope | No such fields |
ping | Removed | Supported |
Source: the versioning and compatibility and transport pages of the 2026-07-28 specification.
Errors you will see, and what they mean
These are the responses that come back when a client and server disagree about the protocol.
-32022 Unsupported protocol version (HTTP 400)
Cause: The server does not implement the revision named in the request. Its data.supported array lists the ones it does.
Fix: Retry with a version from data.supported. If the list holds only 2025-era versions, the server needs the initialize handshake.
-32020 Header mismatch (HTTP 400)
Cause: A required header is missing, or disagrees with the body: MCP-Protocol-Version against _meta, Mcp-Method against method, or Mcp-Name against the tool name.
Fix: Send all three and build them from the same values as the body. A proxy that strips unknown headers will cause this — check what actually reaches the server.
-32602 Invalid params on every request (HTTP 400)
Cause: The request carries no io.modelcontextprotocol/protocolVersion or io.modelcontextprotocol/clientCapabilities in params._meta. Both are required on each request in 2026-07-28.
Fix: Add the _meta block to every request, not only the first.
-32601 Method not found: server/discover
Cause: The server predates 2026-07-28 and only understands the handshake.
Fix: Nothing is wrong with the request. Open with initialize instead — the tester does this automatically.
-32601 Method not found: ping (or initialize)
Cause: A 2026-07-28-only server was sent a method that revision removed.
Fix: Drop the call. With no connection state there is nothing to keep alive.
HTTP 401 with a WWW-Authenticate header
Cause: The endpoint requires authorization. The header says which scheme and, for OAuth, where the resource metadata lives.
Fix: Obtain a token for that authorization server and send it as Authorization: Bearer ….
HTTP 307 / 308 redirect
Cause: Usually a trailing-slash rule: /mcp redirects to /mcp/ or the reverse.
Fix: Configure clients with the final URL. Not every HTTP client re-sends a POST body after a redirect.
HTTP 404 or an HTML page
Cause: The URL is the site, not the MCP endpoint, or the server only offers the older SSE transport that starts with a GET.
Fix: Check the path — most servers mount at /mcp. An SSE-only server needs upgrading to Streamable HTTP; the specification describes the HTTP+SSE transport as deprecated.
The same requests by hand
What the tester sends, as curl. The first two are the current revision; the third is the handshake an older server expects.
curl -s https://codelint.dev/mcp \
-H 'content-type: application/json' \
-H 'accept: application/json, text/event-stream' \
-H 'MCP-Protocol-Version: 2026-07-28' \
-H 'Mcp-Method: server/discover' \
-d '{"jsonrpc":"2.0","id":1,"method":"server/discover","params":{"_meta":{
"io.modelcontextprotocol/protocolVersion":"2026-07-28",
"io.modelcontextprotocol/clientCapabilities":{}}}}'curl -s https://codelint.dev/mcp \
-H 'content-type: application/json' \
-H 'accept: application/json, text/event-stream' \
-H 'MCP-Protocol-Version: 2026-07-28' \
-H 'Mcp-Method: tools/call' \
-H 'Mcp-Name: hash' \
-d '{"jsonrpc":"2.0","id":2,"method":"tools/call","params":{
"name":"hash","arguments":{"text":"hello world"},
"_meta":{"io.modelcontextprotocol/protocolVersion":"2026-07-28",
"io.modelcontextprotocol/clientCapabilities":{}}}}'curl -si https://codelint.dev/mcp \
-H 'content-type: application/json' \
-H 'accept: application/json, text/event-stream' \
-d '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{
"protocolVersion":"2025-11-25","capabilities":{},
"clientInfo":{"name":"curl","version":"1"}}}'
# then, with the Mcp-Session-Id header if the response set one:
# {"jsonrpc":"2.0","method":"notifications/initialized"}
# {"jsonrpc":"2.0","id":2,"method":"tools/list"}What the spec checks cover
- Protocol revision —Whether the server answers
server/discover, and which versions it lists; otherwise which version the handshake negotiates. - Result shape —On 2026-07-28:
resultTypeon every result, andttlMs(a number ≥ 0) andcacheScope("public" or "private") on discovery and list results. - Server identity —That the server reports a name and version — in
_metaon the current revision, inserverInfoon the handshake. - Tool definitions —Each
inputSchemais a JSON Schema object of type "object"; names are unique and use the recommended characters; tools and their parameters have descriptions a model can choose by. - Tool results —
contentis an array; a tool that declares anoutputSchemareturnsstructuredContent; structured results are also given as text for clients that only read text. - HTTP behaviour —Content type of the reply, how a notification is acknowledged, authentication challenges, redirects, and whether the server sends CORS headers.
Before you publish a server
A server that passes here will connect in a client, but two checks are worth acting on even when they are only warnings. First, descriptions: a model chooses a tool from its name and description alone, so a tool with no description, or one line that restates the name, will be called at the wrong times or not at all. Second, revision support: if your server implements only the handshake, clients built for 2026-07-28 cannot use it, and if it implements only 2026-07-28, older clients cannot. Serving both from one endpoint is permitted by the specification, and is what CodeLint's own server at https://codelint.dev/mcp does — test it to see what a dual-era report looks like.
Once the server is reachable, the MCP config generator produces the configuration each client needs to connect to it, and the tool schema converter lints the tool definitions in more depth.
About
The MCP Server Tester talks to a remote Model Context Protocol server the way a client does and shows you exactly what happened. It first tries the current revision of the protocol, 2026-07-28, which has no handshake; if the server does not answer that, it falls back to the initialize handshake used by 2025-11-25 and earlier. It then lists the server's tools, lets you call any of them, and records every request and response with headers. Each answer is checked against the specification, so a missing result field, a malformed input schema or an undescribed tool is reported rather than left for a client to trip over. Requests are sent from CodeLint's server because browsers cannot reach most MCP servers directly.
How to use
- 1 Enter the server's full endpoint URL — usually ending in /mcp — and press Connect. The page opens on a test of CodeLint's own server so you can see a complete report first.
- 2 If the server needs a credential, open "Request headers" and add it, one header per line, for example "Authorization: Bearer <token>". Use a test credential.
- 3 Read "Result" for the protocol revision the server speaks, and "Spec checks" for errors, warnings and passed checks.
- 4 Pick a tool from the list. The arguments box is pre-filled from the tool's required parameters; edit the JSON and press "Call tool".
- 5 Open any row under "What was sent and received" to see the exact request and response, or copy the request as a curl command to reproduce it from a terminal.
- Can it test a server running on localhost, or a stdio server?
- No. Requests are made from CodeLint's server, which can only reach public HTTPS hostnames; it refuses localhost, private addresses and IP literals by design. A stdio server has no URL at all. For a stdio server, use the MCP Inspector, which is started with npx and runs on your own machine. For a local HTTP server, put it behind a tunnel that gives it a public HTTPS URL and test that.
- My server works in my client but the tester warns it "does not answer server/discover". Is it broken?
- No. It means the server implements the handshake-era protocol (2025-11-25 or earlier) and not the 2026-07-28 revision, which replaced the initialize handshake with per-request metadata and a server/discover method. Clients that still open with initialize will keep working. A client that speaks only the new revision will not be able to connect, which is why it is reported as a warning rather than an error.
- Does it support OAuth sign-in?
- Not the interactive flow. If the server answers 401 the tester shows its WWW-Authenticate challenge, which usually names the authorization server, and stops. Obtain an access token by other means and add it as an Authorization header to test the authenticated endpoints.
- Is the token I enter stored anywhere?
- No. It is sent from your browser to CodeLint's relay, forwarded to the server you named, and discarded when the request finishes; request bodies and headers are not logged. In the on-page log and in "Copy as curl" the value is masked. Because it does pass through a third party in transit, use a test or short-lived credential rather than a production one.
- What is the difference between a protocol error and a result with isError?
- A protocol error is a JSON-RPC error object: the request itself was wrong — an unknown tool name, a malformed message. A result with "isError": true means the request was fine and the tool ran but could not do what was asked, for example because an argument was out of range. The specification asks servers to report bad argument values the second way, because a model can read that message and try again.
- Why is a missing CORS header only an informational note?
- Because most MCP clients are not web pages. Desktop applications, command-line tools and server-side agents ignore CORS entirely. The header only matters if you want a browser-based client to call your server directly — which is also why this tester relays requests instead of making them from the page.
More in AI Tools
See all ai tools.