Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

Β 

History

3 Commits

Folders and files

Repository files navigation

🩺 MCP Doctor

MCP Doctor Logo

Ultimate MCP Server Diagnostic & Repair Tool

Version License: MIT Node Version Downloads GitHub Stars

πŸ” Diagnose, Fix, and Validate MCP Server Configurations in Seconds

By Lan

Quick Start β€’ Features β€’ Documentation β€’ Contributing β€’ Support


πŸ“– Overview

MCP Doctor is a comprehensive diagnostic and repair tool for Model Context Protocol (MCP) server configurations. It automatically discovers, audits, repairs, and validates MCP server setups across various client environments.

Why MCP Doctor?

  • ⚑ Instant Diagnostics - Find and fix configuration issues in seconds
  • πŸ”§ Auto-Repair - Generate and apply fix plans automatically
  • 🌐 Multi-Platform - Support for Windows, macOS, and Linux
  • πŸ“Š Detailed Reports - Get comprehensive health status and recommendations
  • πŸš€ Easy Integration - Works with popular MCP clients and IDEs

✨ Features

πŸ” Discovery & Detection

  • Auto-Discovery - Find MCP configuration files across common client locations
  • Multi-Format Support - Parse JSON, JSONC, YAML, and TOML configurations
  • Path Normalization - Validate and normalize file paths across platforms
  • Runtime Detection - Check availability of required runtimes (Node.js, Python, etc.)

πŸ› οΈ Diagnosis & Repair

  • Health Audits - Test dependency installation and startup health
  • Auto-Repair Plans - Generate step-by-step fix recommendations
  • One-Click Fixes - Apply common repairs automatically
  • Validation - Verify repairs and confirm successful resolution

πŸ“Š Reporting & Export

  • Detailed Reports - Comprehensive diagnostic summaries
  • Client Export - Generate client-ready configuration files
  • OAuth Support - Remote MCP auth templates and browser flows
  • Logging - Detailed logs for troubleshooting

πŸš€ Quick Start

Installation

# Install globally
npm install -g mcp-doctor

# Or run directly with npx
npx mcp-doctor

Usage

# Run full diagnostic
mcp-doctor

# Quick health check
mcp-doctor --quick

# Generate repair plan
mcp-doctor --repair

# Export configuration
mcp-doctor --export

MCP Configuration

Add to your MCP client configuration:

{
  "mcpServers": {
    "doctor": {
      "command": "npx",
      "args": ["-y", "mcp-doctor"]
    }
  }
}

πŸ“š Documentation

Commands

Command Description
mcp-doctor Run full diagnostic suite
mcp-doctor --quick Quick health check only
mcp-doctor --repair Generate and apply repair plans
mcp-doctor --export Export fixed configurations
mcp-doctor --help Show detailed help message

Supported Clients

  • βœ… VS Code / Cursor
  • βœ… Claude Desktop
  • βœ… Continue
  • βœ… Cline
  • βœ… Roo Code
  • βœ… Other MCP-compatible clients

Configuration Formats

Format Extension Support
JSON .json βœ… Full
JSON with Comments .jsonc βœ… Full
YAML .yaml, .yml βœ… Full
TOML .toml βœ… Full

πŸ—οΈ Development

Prerequisites

  • Node.js 18+
  • npm or yarn

Setup

# Clone the repository
git clone https://github.com/Lyx3314844-03/mcp-doctor.git
cd mcp-doctor

# Install dependencies
npm install

# Run tests
npm test

# Run linter
npm run lint

# Development mode
npm run dev

Project Structure

mcp-doctor/
β”œβ”€β”€ assets/
β”‚   └── icons/           # Project icons and branding
β”œβ”€β”€ src/
β”‚   β”œβ”€β”€ parser.js        # Configuration parser
β”‚   β”œβ”€β”€ runner.js        # Diagnostic runner
β”‚   β”œβ”€β”€ scanner.js       # File scanner
β”‚   └── utils.js         # Utility functions
β”œβ”€β”€ tests/               # Test files
β”œβ”€β”€ mcp-inspector.js     # Main entry point
β”œβ”€β”€ package.json         # Project metadata
└── README.md            # This file

πŸ§ͺ Testing

# Run all tests
npm test

# Run specific test suite
npm run test:doctor
npm run test:parser
npm run test:runner

# Run with coverage
npm run test:coverage

🀝 Contributing

We welcome contributions! Please see our Contributing Guide for details.

How to Contribute

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

Code Style

We use ESLint and Prettier for code formatting:

npm run lint
npm run format

πŸ“„ License

This project is licensed under the MIT License - see the LICENSE file for details.


πŸ™ Acknowledgments

  • Model Context Protocol team for the specification
  • Community contributors and testers
  • All users who provided feedback and bug reports

πŸ“ž Support


Made with ❀️ by Lan

⭐ Star this repo if you find it helpful!

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages