MCP Protocol Inspector & Response Debugger

Validate Model Context Protocol (MCP) JSON-RPC 2.0 payloads, verify content block schemas, catch protocol errors, and preview how AI clients display execution results.

Load Sample Protocol Payloads

Protocol Diagnostic Report

Valid Protocol Format
JSON Syntax
Valid JSON format.
JSON-RPC Specification
Header contains jsonrpc: "2.0".
Content Block Structure
Found array of 1 content item(s).
Execution Status
isError is set to false (Clean execution).

Visual AI Client Preview

Simulates how Claude Desktop, Cursor, and Windsurf render this tool output in their chat stream.

AI Client Tool Execution Window
MCP Transport: Stdio / SSE
Content Block #1 — [text]
Successfully processed 42 records. Database migration completed in 140ms.

Understanding Model Context Protocol JSON-RPC Specifications

The Model Context Protocol communicates over standard JSON-RPC 2.0 transports (stdio pipes or Server-Sent Events). When an AI client like Claude Desktop, Cursor, or Windsurf calls a tool or queries a resource, it expects responses to adhere strictly to protocol schemas.

Common integration issues — such as missing content arrays, unhandled base64 image strings, or omitted mimeTypeheaders — can cause AI clients to silently drop tool outputs or fail turns. Use this diagnostic inspector during development to verify payload compliance instantly.

Frequently Asked Questions (FAQ)

How do I debug MCP JSON-RPC protocol messages?

Paste any JSON-RPC request or tool execution response payload into the inspector above. The diagnostic engine checks specification compliance (jsonrpc: "2.0", content array structures, MIME types, isError flags) and renders a live visual preview of how AI clients display the result.

What makes an MCP tool call response valid?

A valid MCP tool call response must contain a content array of objects. Each content object requires a type property ("text", "image", or "resource"). Text objects must have a string text property, and image objects must specify a valid mimeType (e.g. "image/png") and base64-encoded data string.

How do images and resources render in Claude Desktop MCP?

When a tool returns an image content block with mimeType and base64 data, Claude Desktop and Cursor render the image inline within the conversation turn. Resource content blocks with URIs allow clients to read text or binary files directly.

What does isError: true mean in an MCP response?

Setting isError: true inside a tool call result tells the AI model that the tool execution failed (e.g. network error, invalid SQL query, or missing file), allowing the model to analyze the error output and adjust its strategy.

← Read How to Build an MCP ServerValidate Config Files →