MCP Inspector

The Inspector (examples/inspector) is a debugging tool for MCP developers. It allows you to connect to any MCP server URL and visualize its capabilities.

Features

  • Dynamic Connection: Connect to arbitrary URLs at runtime.
  • Tool Tester: Auto-generates forms based on tool JSON schemas to easily test tool execution.
  • Resource Browser: Tree view for resources with content preview.
  • Log Viewer: Visualizes the internal log from use-mcp to debug connection issues.

Running the Inspector

cd examples/inspector
pnpm install
pnpm dev

This example is an excellent reference for building generic MCP clients that need to handle unknown tools or resources dynamically.