Test your MCP client
Point the MCP client, agent or AI app you are building at mcptest.io’s public test servers and check it against a protocol checklist: the handshake, version negotiation, tool calls, bearer auth, errors, timeouts, progress and structured output.
Each check below names the fixture to use, what a correct client does, and the exact HTTP request and response to compare with your client’s debug log or a proxy capture. The fixtures are deterministic, so the only thing that can differ is your client.
Point your client at the fixtures
- Add https://mcptest.io/fixtures/echo/mcp to your client as a remote Streamable HTTP server. No account or API key is needed.
- Turn on your client’s protocol logging, or route it through a proxy that shows HTTP requests, so you can see the raw JSON-RPC.
- Work through the checklist one fixture at a time, swapping the URL: /fixtures/auth-bearer/mcp, /fixtures/errors/mcp, /fixtures/slow/mcp and /fixtures/schemas/mcp.
- For the auth-bearer fixture, configure the static header Authorization: Bearer mcptest-public-token. The token is public and protects nothing.
Copy-paste configs for Claude Code, Cursor, VS Code, Windsurf, Codex and ChatGPT are on the test servers page.
The checklist
- Echo: handshake, version negotiation and tool calls
- Bearer auth: static headers and 401 handling
- Errors: JSON-RPC errors versus isError results
- Slow: timeouts and progress
- Schemas: complex inputs and structuredContent
Reading the examples
- The examples use the stateful 2025-11-25 flow unless they say otherwise. A 2026-07-28 client sends no initialize and no session; instead every request carries _meta with the protocol version and client capabilities, plus matching MCP-Protocol-Version, Mcp-Method and Mcp-Name headers.
- Mcp-Session-Id: <Mcp-Session-Id from initialize> stands for the ID your client received. Issued IDs look like mcptest-fx- followed by a random part and a digest.
- Response headers shown are the MCP, session and auth headers; every response also carries CORS headers and Cache-Control: no-store.
Echo: handshake, version negotiation and tool calls
Start here. If your client cannot complete these against the echo fixture, nothing else on this page will work.
https://mcptest.io/fixtures/echo/mcpCompare with mcptest.io’s clientAll Echo tools
Completes initialize, then sends notifications/initialized
The 2025 handshake is an initialize request, its result, then the notifications/initialized notification before any other request. The fixture answers the notification with an empty 202. It keeps no state, so it cannot tell whether you sent it: check that the notification appears in your client's log.
initialize, asking for the newest stateful revision:
Request
POST /fixtures/echo/mcp HTTP/1.1
Host: mcptest.io
Content-Type: application/json
Accept: application/json, text/event-stream
{
"jsonrpc": "2.0",
"id": 1,
"method": "initialize",
"params": {
"protocolVersion": "2025-11-25",
"capabilities": {},
"clientInfo": {
"name": "my-client",
"version": "1.0.0"
}
}
}Expected response
HTTP/1.1 200 OK
Content-Type: application/json
MCP-Protocol-Version: 2025-11-25
Mcp-Session-Id: mcptest-fx-<32 hex>.<16 hex>
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"protocolVersion": "2025-11-25",
"capabilities": {
"tools": {
"listChanged": false
},
"resources": {
"subscribe": false,
"listChanged": false
},
"prompts": {
"listChanged": false
}
},
"serverInfo": {
"name": "mcptest-fixture-echo",
"title": "mcptest.io echo fixture",
"version": "1.0.0"
},
"instructions": "Deterministic public test server. Tools: echo, add, whoami, headers. One static resource and one prompt."
}
}notifications/initialized, with the session ID from the response above:
Request
POST /fixtures/echo/mcp HTTP/1.1
Host: mcptest.io
Content-Type: application/json
Accept: application/json, text/event-stream
MCP-Protocol-Version: 2025-11-25
Mcp-Session-Id: <Mcp-Session-Id from initialize>
{
"jsonrpc": "2.0",
"method": "notifications/initialized"
}Expected response
HTTP/1.1 202 AcceptedNegotiates the protocol version and sends it on every request
If the server answers initialize with a different protocolVersion, the client uses that version or disconnects if it does not support it. After the handshake every HTTP request carries MCP-Protocol-Version with the negotiated value. A 2026-capable client instead starts with server/discover and reads supportedVersions; the fixture lists 2026-07-28 first.
initialize with a version the fixture does not know: it answers with its own default, and the client must accept it or disconnect.
Request
POST /fixtures/echo/mcp HTTP/1.1
Host: mcptest.io
Content-Type: application/json
Accept: application/json, text/event-stream
{
"jsonrpc": "2.0",
"id": 1,
"method": "initialize",
"params": {
"protocolVersion": "2099-01-01",
"capabilities": {},
"clientInfo": {
"name": "my-client",
"version": "1.0.0"
}
}
}Expected response
HTTP/1.1 200 OK
Content-Type: application/json
MCP-Protocol-Version: 2025-11-25
Mcp-Session-Id: mcptest-fx-<32 hex>.<16 hex>
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"protocolVersion": "2025-11-25",
"capabilities": {
"tools": {
"listChanged": false
},
"resources": {
"subscribe": false,
"listChanged": false
},
"prompts": {
"listChanged": false
}
},
"serverInfo": {
"name": "mcptest-fixture-echo",
"title": "mcptest.io echo fixture",
"version": "1.0.0"
},
"instructions": "Deterministic public test server. Tools: echo, add, whoami, headers. One static resource and one prompt."
}
}server/discover, the stateless 2026-07-28 entry point: no session, and the version travels in _meta and in the header.
Request
POST /fixtures/echo/mcp HTTP/1.1
Host: mcptest.io
Content-Type: application/json
Accept: application/json, text/event-stream
MCP-Protocol-Version: 2026-07-28
Mcp-Method: server/discover
{
"jsonrpc": "2.0",
"id": 1,
"method": "server/discover",
"params": {
"_meta": {
"io.modelcontextprotocol/protocolVersion": "2026-07-28",
"io.modelcontextprotocol/clientInfo": {
"name": "my-client",
"version": "1.0.0"
},
"io.modelcontextprotocol/clientCapabilities": {}
}
}
}Expected response
HTTP/1.1 200 OK
Content-Type: application/json
MCP-Protocol-Version: 2026-07-28
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"supportedVersions": [
"2026-07-28",
"2025-11-25",
"2025-06-18",
"2025-03-26",
"2024-11-05"
],
"capabilities": {
"tools": {
"listChanged": false
},
"resources": {
"subscribe": false,
"listChanged": false
},
"prompts": {
"listChanged": false
}
},
"instructions": "Deterministic public test server. Tools: echo, add, whoami, headers. One static resource and one prompt.",
"resultType": "complete",
"ttlMs": 0,
"cacheScope": "public",
"_meta": {
"io.modelcontextprotocol/serverInfo": {
"name": "mcptest-fixture-echo",
"title": "mcptest.io echo fixture",
"version": "1.0.0"
}
}
}
}A stateless request whose Mcp-Method header disagrees with the body gets -32020:
Request
POST /fixtures/echo/mcp HTTP/1.1
Host: mcptest.io
Content-Type: application/json
Accept: application/json, text/event-stream
MCP-Protocol-Version: 2026-07-28
Mcp-Method: tools/list
{
"jsonrpc": "2.0",
"id": 2,
"method": "tools/call",
"params": {
"name": "echo",
"arguments": {
"message": "hi"
},
"_meta": {
"io.modelcontextprotocol/protocolVersion": "2026-07-28",
"io.modelcontextprotocol/clientInfo": {
"name": "my-client",
"version": "1.0.0"
},
"io.modelcontextprotocol/clientCapabilities": {}
}
}
}Expected response
HTTP/1.1 400 Bad Request
Content-Type: application/json
{
"jsonrpc": "2.0",
"id": 2,
"error": {
"code": -32020,
"message": "Mcp-Method header does not match the JSON-RPC method"
}
}Sends the Mcp-Session-Id it was given on every stateful request
In the stateful flow the session ID from the initialize response goes on every later request, notifications included. A missing ID is a 400; an ID the server did not issue is a 404, which tells a client to start a new session with initialize.
tools/list without the session header:
Request
POST /fixtures/echo/mcp HTTP/1.1
Host: mcptest.io
Content-Type: application/json
Accept: application/json, text/event-stream
MCP-Protocol-Version: 2025-11-25
{
"jsonrpc": "2.0",
"id": 2,
"method": "tools/list"
}Expected response
HTTP/1.1 400 Bad Request
Content-Type: application/json
{
"jsonrpc": "2.0",
"id": 2,
"error": {
"code": -32600,
"message": "Bad Request: Mcp-Session-Id header is required; send initialize first, or server/discover for the stateless revision"
}
}tools/list with a session ID the fixture did not issue:
Request
POST /fixtures/echo/mcp HTTP/1.1
Host: mcptest.io
Content-Type: application/json
Accept: application/json, text/event-stream
MCP-Protocol-Version: 2025-11-25
Mcp-Session-Id: mcptest-fx-00000000000000000000000000000000.0000000000000000
{
"jsonrpc": "2.0",
"id": 2,
"method": "tools/list"
}Expected response
HTTP/1.1 404 Not Found
Content-Type: application/json
{
"jsonrpc": "2.0",
"id": 2,
"error": {
"code": -32001,
"message": "Session not found"
}
}Lists tools and calls them with arguments that match the input schema
tools/list returns echo, add, whoami and headers. A client should show each tool with its schema and send arguments as JSON values of the declared types: add takes numbers, not strings. add also returns structuredContent next to the text.
tools/list:
Request
POST /fixtures/echo/mcp HTTP/1.1
Host: mcptest.io
Content-Type: application/json
Accept: application/json, text/event-stream
MCP-Protocol-Version: 2025-11-25
Mcp-Session-Id: <Mcp-Session-Id from initialize>
{
"jsonrpc": "2.0",
"id": 2,
"method": "tools/list"
}Expected response
HTTP/1.1 200 OK
Content-Type: application/json
MCP-Protocol-Version: 2025-11-25
{
"jsonrpc": "2.0",
"id": 2,
"result": {
"tools": [
{
"name": "echo",
"title": "Echo",
"inputSchema": {
"type": "object",
"properties": {
"message": {
"type": "string",
"maxLength": 1000,
"description": "Text to echo back."
}
},
"required": [
"message"
],
"additionalProperties": false
}
},
{
"name": "add",
"title": "Add",
"inputSchema": {
"type": "object",
"properties": {
"a": {
"type": "number",
"description": "First addend."
},
"b": {
"type": "number",
"description": "Second addend."
}
},
"required": [
"a",
"b"
],
"additionalProperties": false
}
},
{
"name": "whoami",
"title": "Who am I",
"inputSchema": {
"type": "object",
"properties": {},
"additionalProperties": false
}
},
{
"name": "headers",
"title": "Request headers",
"inputSchema": {
"type": "object",
"properties": {},
"additionalProperties": false
}
}
]
}
}Abbreviated: the real response also carries descriptions, add's outputSchema and annotations on every tool.
tools/call add:
Request
POST /fixtures/echo/mcp HTTP/1.1
Host: mcptest.io
Content-Type: application/json
Accept: application/json, text/event-stream
MCP-Protocol-Version: 2025-11-25
Mcp-Session-Id: <Mcp-Session-Id from initialize>
{
"jsonrpc": "2.0",
"id": 3,
"method": "tools/call",
"params": {
"name": "add",
"arguments": {
"a": 2,
"b": 3
}
}
}Expected response
HTTP/1.1 200 OK
Content-Type: application/json
MCP-Protocol-Version: 2025-11-25
{
"jsonrpc": "2.0",
"id": 3,
"result": {
"content": [
{
"type": "text",
"text": "5"
}
],
"structuredContent": {
"sum": 5
}
}
}Bearer auth: static headers and 401 handling
The echo tools behind the public token mcptest-public-token. Connect once without it and once with it.
https://mcptest.io/fixtures/auth-bearer/mcpCompare with mcptest.io’s clientAll Bearer auth tools
Handles a 401 with WWW-Authenticate instead of retrying blindly
Without a token the fixture answers 401 with a Bearer challenge. A client should stop and ask for credentials, or report that the server needs a token. The challenge has no resource_metadata and there is no OAuth metadata, so a client that tries OAuth discovery must fail with a clear message rather than loop.
initialize with no Authorization header:
Request
POST /fixtures/auth-bearer/mcp HTTP/1.1
Host: mcptest.io
Content-Type: application/json
Accept: application/json, text/event-stream
{
"jsonrpc": "2.0",
"id": 1,
"method": "initialize",
"params": {
"protocolVersion": "2025-11-25",
"capabilities": {},
"clientInfo": {
"name": "my-client",
"version": "1.0.0"
}
}
}Expected response
HTTP/1.1 401 Unauthorized
Content-Type: application/json
WWW-Authenticate: Bearer realm="mcptest.io fixtures"
{
"jsonrpc": "2.0",
"id": null,
"error": {
"code": -32001,
"message": "Unauthorized: send Authorization: Bearer mcptest-public-token"
}
}A wrong token adds error="invalid_token" to the challenge:
Request
POST /fixtures/auth-bearer/mcp HTTP/1.1
Host: mcptest.io
Content-Type: application/json
Accept: application/json, text/event-stream
Authorization: Bearer not-the-token
{
"jsonrpc": "2.0",
"id": 1,
"method": "initialize",
"params": {
"protocolVersion": "2025-11-25",
"capabilities": {},
"clientInfo": {
"name": "my-client",
"version": "1.0.0"
}
}
}Expected response
HTTP/1.1 401 Unauthorized
Content-Type: application/json
WWW-Authenticate: Bearer realm="mcptest.io fixtures", error="invalid_token", error_description="Use the public token mcptest-public-token"
{
"jsonrpc": "2.0",
"id": null,
"error": {
"code": -32001,
"message": "Unauthorized: send Authorization: Bearer mcptest-public-token"
}
}Sends the bearer token on every request, not only on initialize
Configure the static header Authorization: Bearer mcptest-public-token. The fixture checks it before anything else, so a notification or tool call without it gets the same 401 even inside a valid session.
initialize with the public token:
Request
POST /fixtures/auth-bearer/mcp HTTP/1.1
Host: mcptest.io
Content-Type: application/json
Accept: application/json, text/event-stream
Authorization: Bearer mcptest-public-token
{
"jsonrpc": "2.0",
"id": 1,
"method": "initialize",
"params": {
"protocolVersion": "2025-11-25",
"capabilities": {},
"clientInfo": {
"name": "my-client",
"version": "1.0.0"
}
}
}Expected response
HTTP/1.1 200 OK
Content-Type: application/json
MCP-Protocol-Version: 2025-11-25
Mcp-Session-Id: mcptest-fx-<32 hex>.<16 hex>
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"protocolVersion": "2025-11-25",
"capabilities": {
"tools": {
"listChanged": false
},
"resources": {
"subscribe": false,
"listChanged": false
},
"prompts": {
"listChanged": false
}
},
"serverInfo": {
"name": "mcptest-fixture-auth-bearer",
"title": "mcptest.io bearer-auth fixture",
"version": "1.0.0"
},
"instructions": "Same tools as the echo fixture. Requires Authorization: Bearer mcptest-public-token (a documented public token)."
}
}notifications/initialized in that session, but without the header:
Request
POST /fixtures/auth-bearer/mcp HTTP/1.1
Host: mcptest.io
Content-Type: application/json
Accept: application/json, text/event-stream
MCP-Protocol-Version: 2025-11-25
Mcp-Session-Id: <Mcp-Session-Id from initialize>
{
"jsonrpc": "2.0",
"method": "notifications/initialized"
}Expected response
HTTP/1.1 401 Unauthorized
Content-Type: application/json
WWW-Authenticate: Bearer realm="mcptest.io fixtures"
{
"jsonrpc": "2.0",
"id": null,
"error": {
"code": -32001,
"message": "Unauthorized: send Authorization: Bearer mcptest-public-token"
}
}Errors: JSON-RPC errors versus isError results
Connecting and tools/list succeed; every tools/call fails in a different, fixed way. The examples continue a session started with initialize.
https://mcptest.io/fixtures/errors/mcpCompare with mcptest.io’s clientAll Errors tools
Shows JSON-RPC errors as failed requests
protocol_error and invalid_params answer with a JSON-RPC error object and HTTP 200. There is no result: the client should report the code and message as an error, not hand an empty result to the model.
tools/call protocol_error:
Request
POST /fixtures/errors/mcp HTTP/1.1
Host: mcptest.io
Content-Type: application/json
Accept: application/json, text/event-stream
MCP-Protocol-Version: 2025-11-25
Mcp-Session-Id: <Mcp-Session-Id from initialize>
{
"jsonrpc": "2.0",
"id": 4,
"method": "tools/call",
"params": {
"name": "protocol_error",
"arguments": {}
}
}Expected response
HTTP/1.1 200 OK
Content-Type: application/json
{
"jsonrpc": "2.0",
"id": 4,
"error": {
"code": -32603,
"message": "Deterministic protocol error from the errors fixture",
"data": {
"fixture": "errors"
}
}
}tools/call invalid_params:
Request
POST /fixtures/errors/mcp HTTP/1.1
Host: mcptest.io
Content-Type: application/json
Accept: application/json, text/event-stream
MCP-Protocol-Version: 2025-11-25
Mcp-Session-Id: <Mcp-Session-Id from initialize>
{
"jsonrpc": "2.0",
"id": 5,
"method": "tools/call",
"params": {
"name": "invalid_params",
"arguments": {}
}
}Expected response
HTTP/1.1 200 OK
Content-Type: application/json
{
"jsonrpc": "2.0",
"id": 5,
"error": {
"code": -32602,
"message": "Invalid params: deterministic error from the errors fixture",
"data": {
"fixture": "errors"
}
}
}Passes isError tool results to the model as a failed tool result
tool_error is a successful JSON-RPC response whose result has isError: true. It is a tool execution error the model can read and react to, so the client should show it as a failed call with its text, not as a transport or protocol failure.
tools/call tool_error:
Request
POST /fixtures/errors/mcp HTTP/1.1
Host: mcptest.io
Content-Type: application/json
Accept: application/json, text/event-stream
MCP-Protocol-Version: 2025-11-25
Mcp-Session-Id: <Mcp-Session-Id from initialize>
{
"jsonrpc": "2.0",
"id": 6,
"method": "tools/call",
"params": {
"name": "tool_error",
"arguments": {}
}
}Expected response
HTTP/1.1 200 OK
Content-Type: application/json
MCP-Protocol-Version: 2025-11-25
{
"jsonrpc": "2.0",
"id": 6,
"result": {
"content": [
{
"type": "text",
"text": "Deterministic tool execution error from the errors fixture."
}
],
"isError": true
}
}Reports an HTTP 500 and keeps the connection usable
http_500 fails at the HTTP layer, with a JSON-RPC error in the body. The client should surface the status, and the next request in the same session should work: one failed call is not a reason to drop the session.
tools/call http_500:
Request
POST /fixtures/errors/mcp HTTP/1.1
Host: mcptest.io
Content-Type: application/json
Accept: application/json, text/event-stream
MCP-Protocol-Version: 2025-11-25
Mcp-Session-Id: <Mcp-Session-Id from initialize>
{
"jsonrpc": "2.0",
"id": 7,
"method": "tools/call",
"params": {
"name": "http_500",
"arguments": {}
}
}Expected response
HTTP/1.1 500 Internal Server Error
Content-Type: application/json
{
"jsonrpc": "2.0",
"id": 7,
"error": {
"code": -32603,
"message": "Internal error: deterministic HTTP 500 from the errors fixture"
}
}Slow: timeouts and progress
Bounded delays and a streamed progress tool, for checking that your client neither hangs nor gives up too early.
https://mcptest.io/fixtures/slow/mcpCompare with mcptest.io’s clientAll Slow tools
Enforces a request timeout and cancels cleanly
sleep waits for ms milliseconds, capped at 10,000. Set your client timeout below the delay: it should give up, tell the user, and cancel the request. In the stateful flow that is a notifications/cancelled with the request ID, which the fixture accepts with 202; in the stateless flow closing the response stream is the cancellation.
tools/call sleep, which answers after about two seconds:
Request
POST /fixtures/slow/mcp HTTP/1.1
Host: mcptest.io
Content-Type: application/json
Accept: application/json, text/event-stream
MCP-Protocol-Version: 2025-11-25
Mcp-Session-Id: <Mcp-Session-Id from initialize>
{
"jsonrpc": "2.0",
"id": 8,
"method": "tools/call",
"params": {
"name": "sleep",
"arguments": {
"ms": 2000
}
}
}Expected response
HTTP/1.1 200 OK
Content-Type: application/json
MCP-Protocol-Version: 2025-11-25
{
"jsonrpc": "2.0",
"id": 8,
"result": {
"content": [
{
"type": "text",
"text": "{\n \"requestedMs\": 2000,\n \"sleptMs\": 2000,\n \"capped\": false\n}"
}
],
"structuredContent": {
"requestedMs": 2000,
"sleptMs": 2000,
"capped": false
}
}
}The cancellation a stateful client sends when its timeout fires first:
Request
POST /fixtures/slow/mcp HTTP/1.1
Host: mcptest.io
Content-Type: application/json
Accept: application/json, text/event-stream
MCP-Protocol-Version: 2025-11-25
Mcp-Session-Id: <Mcp-Session-Id from initialize>
{
"jsonrpc": "2.0",
"method": "notifications/cancelled",
"params": {
"requestId": 8,
"reason": "Request timed out"
}
}Expected response
HTTP/1.1 202 AcceptedAccepts an SSE response and handles progress notifications
With a progressToken in _meta and text/event-stream in Accept, progress answers with an event stream: one notifications/progress per step, then the result. The client should parse both response types, match the token, show or log progress, and may reset its timeout on each notification while keeping an overall limit.
tools/call progress with two steps:
Request
POST /fixtures/slow/mcp HTTP/1.1
Host: mcptest.io
Content-Type: application/json
Accept: application/json, text/event-stream
MCP-Protocol-Version: 2025-11-25
Mcp-Session-Id: <Mcp-Session-Id from initialize>
{
"jsonrpc": "2.0",
"id": 9,
"method": "tools/call",
"params": {
"name": "progress",
"arguments": {
"steps": 2
},
"_meta": {
"progressToken": "p1"
}
}
}Expected response
HTTP/1.1 200 OK
Content-Type: text/event-stream
MCP-Protocol-Version: 2025-11-25
event: message
data: {"jsonrpc":"2.0","method":"notifications/progress","params":{"progressToken":"p1","progress":1,"total":2,"message":"Step 1 of 2"}}
event: message
data: {"jsonrpc":"2.0","method":"notifications/progress","params":{"progressToken":"p1","progress":2,"total":2,"message":"Step 2 of 2"}}
event: message
data: {"jsonrpc":"2.0","id":9,"result":{"content":[{"type":"text","text":"Completed 2 steps."}]}}Schemas: complex inputs and structuredContent
Tools with nested, enum, array and optional fields, an outputSchema and structuredContent.
https://mcptest.io/fixtures/schemas/mcpCompare with mcptest.io’s clientAll Schemas tools
Represents nested, enum, array and optional input fields faithfully
create_order nests an object, an array of objects with a pattern and number ranges, an optional shipping address with an enum, and optional fields. classify accepts values of any JSON type. A client should pass the schema to the model or build its form from it without dropping enums, nesting or required lists, and send nulls, objects and arrays as JSON rather than strings.
tools/call classify with one value of each JSON type:
Request
POST /fixtures/schemas/mcp HTTP/1.1
Host: mcptest.io
Content-Type: application/json
Accept: application/json, text/event-stream
MCP-Protocol-Version: 2025-11-25
Mcp-Session-Id: <Mcp-Session-Id from initialize>
{
"jsonrpc": "2.0",
"id": 10,
"method": "tools/call",
"params": {
"name": "classify",
"arguments": {
"values": [
"a",
1,
true,
null,
{
"k": "v"
},
[
1
]
],
"mode": "list"
}
}
}Expected response
HTTP/1.1 200 OK
Content-Type: application/json
MCP-Protocol-Version: 2025-11-25
{
"jsonrpc": "2.0",
"id": 10,
"result": {
"content": [
{
"type": "text",
"text": "{\n \"total\": 6,\n \"counts\": {\n \"string\": 1,\n \"number\": 1,\n \"boolean\": 1,\n \"null\": 1,\n \"object\": 1,\n \"array\": 1\n },\n \"types\": [\n \"string\",\n \"number\",\n \"boolean\",\n \"null\",\n \"object\",\n \"array\"\n ]\n}"
}
],
"structuredContent": {
"total": 6,
"counts": {
"string": 1,
"number": 1,
"boolean": 1,
"null": 1,
"object": 1,
"array": 1
},
"types": [
"string",
"number",
"boolean",
"null",
"object",
"array"
]
}
}
}Arguments that break the schema get -32602 with the failing paths:
Request
POST /fixtures/schemas/mcp HTTP/1.1
Host: mcptest.io
Content-Type: application/json
Accept: application/json, text/event-stream
MCP-Protocol-Version: 2025-11-25
Mcp-Session-Id: <Mcp-Session-Id from initialize>
{
"jsonrpc": "2.0",
"id": 11,
"method": "tools/call",
"params": {
"name": "create_order",
"arguments": {
"customer": {
"name": "Ada",
"tier": "gold"
},
"items": [
{
"sku": "abc",
"quantity": 0,
"unitPrice": 5
}
]
}
}
}Expected response
HTTP/1.1 200 OK
Content-Type: application/json
{
"jsonrpc": "2.0",
"id": 11,
"error": {
"code": -32602,
"message": "Invalid params for tool create_order",
"data": {
"errors": [
{
"path": "/customer/tier",
"message": "expected one of [\"free\",\"pro\",\"enterprise\"]"
},
{
"path": "/items/0/sku",
"message": "does not match ^[A-Z]{3}-[0-9]{3}quot;
},
{
"path": "/items/0/quantity",
"message": "below minimum 1"
}
]
}
}
}Reads structuredContent and validates it against outputSchema
Tools with an outputSchema return structuredContent that conforms to it, plus the same JSON as text for older clients. A client that supports structured output should validate structuredContent against the advertised schema and prefer it over parsing the text.
tools/call create_order, a dry run with a deterministic quote:
Request
POST /fixtures/schemas/mcp HTTP/1.1
Host: mcptest.io
Content-Type: application/json
Accept: application/json, text/event-stream
MCP-Protocol-Version: 2025-11-25
Mcp-Session-Id: <Mcp-Session-Id from initialize>
{
"jsonrpc": "2.0",
"id": 12,
"method": "tools/call",
"params": {
"name": "create_order",
"arguments": {
"customer": {
"name": "Ada",
"tier": "pro"
},
"items": [
{
"sku": "ABC-123",
"quantity": 2,
"unitPrice": 9.5,
"options": [
"gift-wrap"
]
},
{
"sku": "XYZ-789",
"quantity": 1,
"unitPrice": 20
}
],
"shipping": {
"street": "1 Main St",
"city": "London",
"country": "GB"
}
}
}
}Expected response
HTTP/1.1 200 OK
Content-Type: application/json
MCP-Protocol-Version: 2025-11-25
{
"jsonrpc": "2.0",
"id": 12,
"result": {
"content": [
{
"type": "text",
"text": "{\n \"orderId\": \"ORD-003-123789\",\n \"itemCount\": 3,\n \"subtotal\": 39,\n \"discount\": 3.9,\n \"total\": 35.1,\n \"currency\": \"USD\",\n \"shipsTo\": \"London, GB\"\n}"
}
],
"structuredContent": {
"orderId": "ORD-003-123789",
"itemCount": 3,
"subtotal": 39,
"discount": 3.9,
"total": 35.1,
"currency": "USD",
"shipsTo": "London, GB"
}
}
}Self-check: what did the server receive?
Ask your client, or the model behind it, to call the whoami and headers tools on the echo or auth-bearer fixture. The answer comes back in the tool result to your client only; nothing is stored. Compare it with what you configured:
| Field | What it tells you |
|---|---|
protocolEra, protocolVersion | Which flow your client used and the version it sent. stateless means 2026-07-28 with _meta; stateful means initialize and a session. The version should be the one your client negotiated, not a default it fell back to. |
session | present when the request carried an Mcp-Session-Id, none in the stateless flow. A stateful client that shows no session never reaches whoami: the fixture answers 400 first. |
clientInfo | The name and version from _meta, so only in the stateless flow. The fixture keeps no session state, so it cannot repeat what a stateful client sent in initialize. |
authorization | Whether an Authorization header arrived and its scheme. The value is never echoed. On auth-bearer you only get this far with the right token. |
headers (whoami) | Values of Accept, Content-Type, the MCP headers, Origin and User-Agent. Accept should list both application/json and text/event-stream; mcp-protocol-version should match the negotiated version. |
headers (headers tool) | Every header name the fixture received, apart from CDN and proxy headers. Credential-shaped values show as [redacted] and other custom headers as [present], so you can confirm a static header was sent without exposing it. |
whoami from a 2026-07-28 client:
Request
POST /fixtures/echo/mcp HTTP/1.1
Host: mcptest.io
Content-Type: application/json
Accept: application/json, text/event-stream
MCP-Protocol-Version: 2026-07-28
Mcp-Method: tools/call
Mcp-Name: whoami
User-Agent: my-client/1.0.0
{
"jsonrpc": "2.0",
"id": 20,
"method": "tools/call",
"params": {
"name": "whoami",
"arguments": {},
"_meta": {
"io.modelcontextprotocol/protocolVersion": "2026-07-28",
"io.modelcontextprotocol/clientInfo": {
"name": "my-client",
"version": "1.0.0"
},
"io.modelcontextprotocol/clientCapabilities": {}
}
}
}Expected response
HTTP/1.1 200 OK
Content-Type: application/json
MCP-Protocol-Version: 2026-07-28
{
"jsonrpc": "2.0",
"id": 20,
"result": {
"content": [
{
"type": "text",
"text": "{\n \"fixture\": \"echo\",\n \"protocolEra\": \"stateless\",\n \"protocolVersion\": \"2026-07-28\",\n \"clientInfo\": {\n \"name\": \"my-client\",\n \"version\": \"1.0.0\"\n },\n \"session\": \"none\",\n \"authorization\": {\n \"present\": false\n },\n \"headers\": {\n \"accept\": \"application/json, text/event-stream\",\n \"content-type\": \"application/json\",\n \"mcp-method\": \"tools/call\",\n \"mcp-name\": \"whoami\",\n \"mcp-protocol-version\": \"2026-07-28\",\n \"user-agent\": \"my-client/1.0.0\"\n }\n}"
}
],
"structuredContent": {
"fixture": "echo",
"protocolEra": "stateless",
"protocolVersion": "2026-07-28",
"clientInfo": {
"name": "my-client",
"version": "1.0.0"
},
"session": "none",
"authorization": {
"present": false
},
"headers": {
"accept": "application/json, text/event-stream",
"content-type": "application/json",
"mcp-method": "tools/call",
"mcp-name": "whoami",
"mcp-protocol-version": "2026-07-28",
"user-agent": "my-client/1.0.0"
}
},
"resultType": "complete",
"_meta": {
"io.modelcontextprotocol/serverInfo": {
"name": "mcptest-fixture-echo",
"title": "mcptest.io echo fixture",
"version": "1.0.0"
}
}
}
}whoami from a stateful 2025-11-25 client on the auth-bearer fixture:
Request
POST /fixtures/auth-bearer/mcp HTTP/1.1
Host: mcptest.io
Content-Type: application/json
Accept: application/json, text/event-stream
MCP-Protocol-Version: 2025-11-25
Mcp-Session-Id: <Mcp-Session-Id from initialize>
Authorization: Bearer mcptest-public-token
User-Agent: my-client/1.0.0
{
"jsonrpc": "2.0",
"id": 21,
"method": "tools/call",
"params": {
"name": "whoami",
"arguments": {}
}
}Expected response
HTTP/1.1 200 OK
Content-Type: application/json
MCP-Protocol-Version: 2025-11-25
{
"jsonrpc": "2.0",
"id": 21,
"result": {
"content": [
{
"type": "text",
"text": "{\n \"fixture\": \"auth-bearer\",\n \"protocolEra\": \"stateful\",\n \"protocolVersion\": \"2025-11-25\",\n \"session\": \"present\",\n \"authorization\": {\n \"present\": true,\n \"scheme\": \"Bearer\"\n },\n \"headers\": {\n \"accept\": \"application/json, text/event-stream\",\n \"content-type\": \"application/json\",\n \"mcp-protocol-version\": \"2025-11-25\",\n \"user-agent\": \"my-client/1.0.0\"\n }\n}"
}
],
"structuredContent": {
"fixture": "auth-bearer",
"protocolEra": "stateful",
"protocolVersion": "2025-11-25",
"session": "present",
"authorization": {
"present": true,
"scheme": "Bearer"
},
"headers": {
"accept": "application/json, text/event-stream",
"content-type": "application/json",
"mcp-protocol-version": "2025-11-25",
"user-agent": "my-client/1.0.0"
}
}
}
}headers in the same session, listing every header name it received:
Request
POST /fixtures/auth-bearer/mcp HTTP/1.1
Host: mcptest.io
Content-Type: application/json
Accept: application/json, text/event-stream
MCP-Protocol-Version: 2025-11-25
Mcp-Session-Id: <Mcp-Session-Id from initialize>
Authorization: Bearer mcptest-public-token
User-Agent: my-client/1.0.0
{
"jsonrpc": "2.0",
"id": 22,
"method": "tools/call",
"params": {
"name": "headers",
"arguments": {}
}
}Expected response
HTTP/1.1 200 OK
Content-Type: application/json
MCP-Protocol-Version: 2025-11-25
{
"jsonrpc": "2.0",
"id": 22,
"result": {
"content": [
{
"type": "text",
"text": "{\n \"headers\": {\n \"accept\": \"application/json, text/event-stream\",\n \"authorization\": \"[redacted]\",\n \"content-type\": \"application/json\",\n \"mcp-protocol-version\": \"2025-11-25\",\n \"mcp-session-id\": \"[redacted]\",\n \"user-agent\": \"my-client/1.0.0\"\n },\n \"omitted\": 0,\n \"note\": \"Values are shown only for MCP and content-negotiation headers; credentials and cookies are never echoed.\"\n}"
}
],
"structuredContent": {
"headers": {
"accept": "application/json, text/event-stream",
"authorization": "[redacted]",
"content-type": "application/json",
"mcp-protocol-version": "2025-11-25",
"mcp-session-id": "[redacted]",
"user-agent": "my-client/1.0.0"
},
"omitted": 0,
"note": "Values are shown only for MCP and content-negotiation headers; credentials and cookies are never echoed."
}
}
}FAQ
How do I test an MCP client?
Add the public fixture https://mcptest.io/fixtures/echo/mcp to your client, turn on protocol logging, and check the handshake, version negotiation and a tool call against the expected exchanges on this page. Then switch to the auth-bearer, errors, slow and schemas fixtures to check authentication, error handling, timeouts, progress and structured output.
Does mcptest.io record my client’s traffic?
No. The fixtures have no database or key-value storage and make no outbound requests, so there is nothing to look up later. The whoami and headers tools return what the server received in the tool result itself, only to your client, and never echo Authorization, Cookie or other credential values.
How can I tell whether my client sent notifications/initialized?
Check your client’s log or a proxy capture. The fixture accepts the notification with HTTP 202, but it keeps no session state, so it cannot report whether the notification arrived or in which order.
Why does whoami show no clientInfo for my client?
clientInfo is reported only for 2026-07-28 requests, which carry it in _meta on every request. A stateful client sends clientInfo once in initialize, and the fixture does not store it.
What should my client do with the 401 from the auth-bearer fixture?
Stop and ask for credentials or report that a token is needed, without retrying in a loop. The WWW-Authenticate header is a plain Bearer challenge with no resource_metadata, so OAuth discovery has nothing to find. Configure Authorization: Bearer mcptest-public-token as a static header and reconnect.
Can I run these checks in CI?
Yes. Every fixture returns the same result for the same input, so a client test suite can connect to them and assert on results: echo for the happy path, errors for error mapping, slow for timeouts and schemas for structured output. They are public internet endpoints, so assert on results rather than latency.
Client setup guides
- Claude, Claude Code and Claude Desktop
- ChatGPT
- Cursor
- VS Code
- Windsurf, Gemini CLI and Codex
- GitHub Copilot CLI and coding agent
- JetBrains AI Assistant
- Zed