mcp-validator

Validate MCP endpoints against the 2024-11-05 specification and JSON-RPC 2.0.

Updated Dec 30, 2025
One-click install
npx skills add https://github.com/Rigohl/MEMORY_P --skill mcp-validator
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: mcp-validator
Source: https://github.com/Rigohl/MEMORY_P/tree/main/.github/skills/mcp-validator
Command: npx skills add https://github.com/Rigohl/MEMORY_P --skill mcp-validator

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Validates that MCP endpoints conform to the 2024-11-05 specification and JSON-RPC 2.0 to prevent integration issues.

Core Features & Use Cases

  • Request validation: ensures jsonrpc == "2.0", "method" is present, "id" is present (may be null), and "params" adheres to the tool schema.
  • Response validation: ensures jsonrpc == "2.0", "id" matches the request, and exactly one of "result" or "error" is present with proper structure.
  • Tools and schemas validation: validates tool names for uniqueness, description clarity, and that inputSchema is a valid JSON Schema with required fields defined in properties.
  • Use case: ideal when implementing a new MCP endpoint, modifying an existing handler, debugging client compatibility, or performing pre-release checks.

Quick Start

Run the validator against your MCP endpoint to verify conformance with the 2024-11-05 specification and JSON-RPC 2.0.

Frequently Asked Questions about mcp-validator

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I validate an MCP endpoint against the JSON-RPC 2.0 specification?

To validate an MCP endpoint, check that requests include jsonrpc = '2.0', a method, and an id, then verify responses contain a matching result or error with proper codes. This ensures your endpoint conforms to the 2024-11-05 specification and prevents client integration issues.

What is the correct JSON-RPC 2.0 response structure for an MCP server?

A correct JSON-RPC 2.0 response structure requires jsonrpc = '2.0', an id matching the request, and exactly one of a result or error field present with proper structure. This validation prevents malformed replies that break MCP client compatibility.

How do I validate MCP tool schemas and names during endpoint creation?

To validate MCP tool schemas, check that tool names are unique, descriptions are clear, and inputSchema is a valid JSON Schema with required fields defined in properties. This ensures your tool definitions meet the 2024-11-05 specification for client compatibility.

When do I need to run MCP endpoint specification validation?

You need MCP endpoint specification validation when implementing a new endpoint, modifying an existing handler, debugging client compatibility, or performing pre-release checks. This validation ensures your server conforms to the 2024-11-05 spec and JSON-RPC 2.0.

Why does my MCP client integration fail with a JSON-RPC error?

MCP client integration fails with JSON-RPC errors when response validation fails due to missing jsonrpc = '2.0', mismatched id, or improperly structured result or error fields. Validate your endpoint against the 2024-11-05 specification to resolve these compatibility issues.

Can I use this validator to debug MCP endpoint compatibility issues across different clients?

Yes, you can use this validator to debug MCP endpoint compatibility across clients by enforcing that requests and responses adhere to the 2024-11-05 specification and JSON-RPC 2.0. It checks method and id presence, params schemas, and error code structures.