mcp-server-debug

Diagnose MCP server tool registration failures via handshake and schema checks.

1|Updated Apr 28, 2026
One-click install
npx skills add https://github.com/yolo-labs-hq/yolo-skills-registry --skill mcp-server-debug
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: mcp-server-debug
Source: https://github.com/yolo-labs-hq/yolo-skills-registry/tree/main/skills/mcp-server-debug
Command: npx skills add https://github.com/yolo-labs-hq/yolo-skills-registry --skill mcp-server-debug

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Diagnose MCP servers failing to register tools or return errors by guiding through handshake validation, env-var injection, tool-schema inspection, and host-side debugging to localize the fault.

Core Features & Use Cases

  • Handshake validation and diagnostic steps for the MCP initialize flow.
  • Tools-list inspection and schema mismatch detection to identify registration issues.
  • Environment-variable propagation checks and host-side debugging to isolate failures across server, transport, and host routing.

Quick Start

Execute the diagnostic workflow against your MCP server to surface actionable clues and recommended fixes.

Frequently Asked Questions about mcp-server-debug

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

FAQPage Schema
How do I debug an MCP server that fails to register tools?

Debug MCP servers failing to register tools by validating the stdio initialization handshake, checking environment-variable propagation, and inspecting tool-schema wiring to isolate the fault across the server, transport, or host routing.

Why does my MCP server return errors during the initialize flow?

MCP servers return initialization errors when the stdio handshake fails schema validation or environment variables are not properly injected, requiring step-by-step diagnostic checks of the initialize flow to surface actionable clues.

How do I validate environment variable injection in an MCP server?

Validate environment variable injection in an MCP server by running diagnostic checks on env-var propagation to verify whether the host correctly routes required variables to the server process during the stdio initialization.

What's the best way to inspect tool-schema mismatches in an MCP server?

Inspect tool-schema mismatches in an MCP server by performing tools-list inspection and schema mismatch detection to identify registration issues caused by incorrect tool-schema wiring between the server and host.

Does this diagnostic workflow work for localizing transport bugs in MCP servers?

Yes, the diagnostic workflow localizes transport bugs in MCP servers by validating the stdio handshake and environment propagation to determine whether the failure originates in the server, the transport, or the host's tool routing.