mcp-inspector-integration

Set up MCP Inspector for debugging and testing MCP servers with request logging, response inspection, and protocol validation.

509 stars

Best use case

mcp-inspector-integration is best used when you need a repeatable AI agent workflow instead of a one-off prompt.

Set up MCP Inspector for debugging and testing MCP servers with request logging, response inspection, and protocol validation.

Teams using mcp-inspector-integration should expect a more consistent output, faster repeated execution, less prompt rewriting.

When to use this skill

  • You want a reusable workflow that can be run more than once with consistent structure.

When not to use this skill

  • You only need a quick one-off answer and do not need a reusable workflow.
  • You cannot install or maintain the underlying files, dependencies, or repository context.

Installation

Claude Code / Cursor / Codex

$curl -o ~/.claude/skills/mcp-inspector-integration/SKILL.md --create-dirs "https://raw.githubusercontent.com/a5c-ai/babysitter/main/library/specializations/cli-mcp-development/skills/mcp-inspector-integration/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/mcp-inspector-integration/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How mcp-inspector-integration Compares

Feature / Agentmcp-inspector-integrationStandard Approach
Platform SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexityUnknownN/A

Frequently Asked Questions

What does this skill do?

Set up MCP Inspector for debugging and testing MCP servers with request logging, response inspection, and protocol validation.

Where can I find the source code?

You can find the source code on GitHub using the link provided at the top of the page.

SKILL.md Source

# MCP Inspector Integration

Set up MCP Inspector for debugging and testing MCP servers.

## Capabilities

- Configure MCP Inspector connection
- Set up request/response logging
- Implement protocol debugging
- Create test scenarios
- Generate inspection reports
- Configure development workflows

## Usage

Invoke this skill when you need to:
- Debug MCP server communication
- Test tool and resource handlers
- Inspect protocol messages
- Validate MCP implementation

## Inputs

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| serverPath | string | Yes | Path to MCP server entry |
| transport | string | No | Transport type (stdio, sse) |
| logging | boolean | No | Enable verbose logging |

## Generated Patterns

### Inspector Configuration

```json
{
  "mcpServers": {
    "my-server": {
      "command": "node",
      "args": ["dist/index.js"],
      "env": {
        "DEBUG": "mcp:*",
        "NODE_ENV": "development"
      }
    }
  }
}
```

### Debug Wrapper Script

```typescript
#!/usr/bin/env node
import { createServer } from './server';

// Enable debug logging
process.env.DEBUG = 'mcp:*';

// Log all stdin/stdout for debugging
const originalWrite = process.stdout.write.bind(process.stdout);
process.stdout.write = (chunk: any, ...args: any[]) => {
  if (process.env.MCP_DEBUG_LOG) {
    const fs = require('fs');
    fs.appendFileSync(
      process.env.MCP_DEBUG_LOG,
      `[OUT] ${new Date().toISOString()} ${chunk}\n`
    );
  }
  return originalWrite(chunk, ...args);
};

process.stdin.on('data', (chunk) => {
  if (process.env.MCP_DEBUG_LOG) {
    const fs = require('fs');
    fs.appendFileSync(
      process.env.MCP_DEBUG_LOG,
      `[IN] ${new Date().toISOString()} ${chunk}\n`
    );
  }
});

// Start server
createServer();
```

### NPM Scripts for Development

```json
{
  "scripts": {
    "dev": "tsx watch src/index.ts",
    "debug": "MCP_DEBUG_LOG=./debug.log tsx src/index.ts",
    "inspect": "npx @anthropic/mcp-inspector node dist/index.js",
    "test:mcp": "npx @anthropic/mcp-inspector --test node dist/index.js"
  }
}
```

### Test Scenarios

```typescript
// tests/mcp-scenarios.ts
export const testScenarios = [
  {
    name: 'List Tools',
    request: {
      jsonrpc: '2.0',
      method: 'tools/list',
      id: 1,
    },
    validate: (response: any) => {
      return response.result?.tools?.length > 0;
    },
  },
  {
    name: 'Call Tool - search_files',
    request: {
      jsonrpc: '2.0',
      method: 'tools/call',
      params: {
        name: 'search_files',
        arguments: { pattern: '*.ts', path: './src' },
      },
      id: 2,
    },
    validate: (response: any) => {
      return !response.error && response.result?.content;
    },
  },
  {
    name: 'List Resources',
    request: {
      jsonrpc: '2.0',
      method: 'resources/list',
      id: 3,
    },
    validate: (response: any) => {
      return Array.isArray(response.result?.resources);
    },
  },
];

// Run test scenarios
export async function runScenarios(
  send: (msg: any) => Promise<any>
): Promise<void> {
  for (const scenario of testScenarios) {
    console.log(`Testing: ${scenario.name}`);
    const response = await send(scenario.request);
    const passed = scenario.validate(response);
    console.log(`  ${passed ? '✓ PASS' : '✗ FAIL'}`);
    if (!passed) {
      console.log('  Response:', JSON.stringify(response, null, 2));
    }
  }
}
```

## Workflow

1. **Install Inspector** - Set up MCP Inspector
2. **Configure connection** - Server path and args
3. **Enable logging** - Debug output
4. **Create scenarios** - Test cases
5. **Run inspection** - Debug session
6. **Generate report** - Inspection results

## Target Processes

- mcp-server-monitoring-debugging
- mcp-server-testing-suite
- mcp-tool-implementation

Related Skills

Debugger Integration Skill

509
from a5c-ai/babysitter

Advanced debugging integration for vulnerability research

ros-integration

509
from a5c-ai/babysitter

Deep integration with ROS/ROS2 middleware for node development, launch files, package management, and robot communication. Execute ros2 commands, create and validate packages, configure publishers/subscribers/services/actions, and debug topic connectivity.

maya-integration

509
from a5c-ai/babysitter

Maya to engine pipeline skill for FBX export and rigging workflows.

blender-integration

509
from a5c-ai/babysitter

Blender to engine pipeline skill for GLTF/FBX export.

freertos-integration

509
from a5c-ai/babysitter

Expert skill for FreeRTOS configuration, debugging, and optimization

mixed-methods-integration

509
from a5c-ai/babysitter

Design and execute convergent, explanatory sequential, and exploratory sequential mixed methods research designs

health-data-integration

509
from a5c-ai/babysitter

Facilitate interoperability between health IT systems including EHR, HIE, and clinical decision support through HL7, FHIR, and other healthcare data standards

avionics-integration

509
from a5c-ai/babysitter

Skill for avionics architecture design and system integration

ats-integration

509
from a5c-ai/babysitter

Integration with Applicant Tracking Systems and automated recruitment workflow management

support-platform-integration

509
from a5c-ai/babysitter

Integration with support and ticketing platforms

crm-integration

509
from a5c-ai/babysitter

Deep integration with CRM platforms for customer data and actions

amplitude-desktop-integration

509
from a5c-ai/babysitter

Integrate Amplitude analytics with privacy controls for desktop applications