MCP Troubleshooter

by devlimelabs
Integrations
  • Supports MCP servers connecting to Firebase, with configuration validation and troubleshooting for Firebase API integrations.

MCP Troubleshooter [Work in Progress]

⚠️ IMPORTANT: This package is currently under development and not yet ready for production use. The current version is a work in progress and may contain incomplete features or breaking changes.

A self-diagnostic framework for AI models that enables them to diagnose and fix MCP-related issues.

Architecture

Overview

MCP Troubleshooter is a specialized MCP server that transforms troubleshooting from a developer-only task into a capability the AI itself can leverage, allowing AI models to:

  1. Analyze MCP logs - Automatically scan for common error patterns and provide insightful diagnostics
  2. Validate configurations - Check server configurations against best practices and identify issues
  3. Test connections - Verify network connectivity and server availability
  4. Generate templates - Create working MCP server configurations for quick setup
  5. Fix common issues - Update configurations and implement solutions directly

Installation

# Install the package globally npm install -g @devlimelabs/mcp-troubleshooter # Start the server mcp-troubleshooter

Usage

Configuration for Claude Desktop

Add this to your Claude Desktop configuration:

{ "mcpServers": { "troubleshooter": { "command": "mcp-troubleshooter" } } }

Tools

Log Management Tools

  • read-mcp-logs: Retrieves and displays MCP log files
  • analyze-mcp-logs: Uses pattern recognition to identify common error signatures

Configuration Tools

  • read-mcp-config: Extracts and validates Claude Desktop's MCP configuration
  • update-mcp-config: Safely updates configurations with proper backup mechanisms
  • validate-mcp-server-config: Performs deep validation of server configurations

Connection Testing Tools

  • test-port-availability: Checks if required ports are available for MCP servers
  • check-mcp-server-process: Verifies if MCP server processes are running correctly

Fix Implementation Tools

  • generate-mcp-server-template: Creates customized server templates for different languages
  • generate-claude-desktop-config: Builds optimized configuration files for Claude Desktop

Resources

  • common-mcp-issues: A comprehensive guide to common MCP problems and their solutions
  • mcp-config-templates: Configuration templates for various MCP server setups

Example Use Cases

Diagnosing a Broken MCP Server

User: My MCP server isn't connecting properly to Claude Desktop. Can you help diagnose it? Claude: I'll help diagnose your MCP server connection issue. First, let me run some diagnostics. [Uses check-mcp-server-process tool with the command from the user] I've identified several possible issues with your MCP server: 1. **Connection Timeout**: The server isn't responding within the expected timeframe. 2. **JSON-RPC Format Error**: There seems to be a format issue in the JSON-RPC responses. 3. **Transport Mismatch**: Claude Desktop is expecting stdio transport, but your server might be using SSE. Let me run a more specific connection test to confirm: [Uses test-port-availability tool] The connection test confirms that your server is starting, but it's timing out during the handshake phase. This is likely due to incorrect JSON-RPC message formatting in your server implementation. Recommended fixes: 1. Ensure your server returns properly formatted JSON-RPC 2.0 responses 2. Check your transport implementation, it should be using proper stdio pipes 3. Verify that your server is correctly handling the initialize method Would you like me to analyze a specific log file or check your server's code for these issues?

Validating MCP Configuration

User: Can you validate my Claude Desktop MCP configuration? Claude: I'd be happy to validate your Claude Desktop MCP configuration. [Uses read-mcp-config tool] I've analyzed your Claude Desktop configuration file. Here are my findings: ✅ **Valid Configuration Structure**: The overall structure of your configuration is valid. ⚠️ **Path Issues**: 2 servers have invalid paths: - "code-llm": The file path "/usr/local/bin/code-llm" doesn't exist - "database-tool": The command "db-tool" is not in the PATH ❌ **Environment Variables**: 1 server has missing required environment variables: - "firebase-mcp": Missing required FIREBASE_API_KEY ✅ **Transport Configuration**: All servers properly specify transport options Recommended fixes: 1. Update the path for "code-llm" to the correct location 2. Install "db-tool" or correct its path 3. Add the missing FIREBASE_API_KEY to the "firebase-mcp" server configuration Would you like me to help you implement any of these fixes?

Platform Support

  • Windows: Accesses logs and configs in %APPDATA%\Claude\
  • macOS: Accesses logs in ~/Library/Logs/Claude/ and configs in ~/Library/Application Support/Claude/
  • Linux: Accesses logs in ~/.local/share/Claude/logs/ and configs in ~/.config/Claude/

Development

# Clone the repository git clone https://github.com/devlimelabs/master-mcps.git cd master-mcps # Install dependencies pnpm install # Build the package pnpm -F @devlimelabs/mcp-troubleshooter build # Run tests pnpm -F @devlimelabs/mcp-troubleshooter test

License

MIT

You must be authenticated.

A
security – no known vulnerabilities
A
license - permissive license
A
quality - confirmed to work

local-only server

The server can only run on the client's local machine because it depends on local resources.

A specialized diagnostic framework that enables AI models to self-diagnose and fix MCP-related issues by analyzing logs, validating configurations, testing connections, and implementing solutions.

  1. Architecture
    1. Overview
      1. Installation
        1. Usage
          1. Configuration for Claude Desktop
        2. Tools
          1. Log Management Tools
          2. Configuration Tools
          3. Connection Testing Tools
          4. Fix Implementation Tools
        3. Resources
          1. Example Use Cases
            1. Diagnosing a Broken MCP Server
            2. Validating MCP Configuration
          2. Platform Support
            1. Development
              1. License

                Related MCP Servers

                • A
                  security
                  A
                  license
                  A
                  quality
                  A tool that helps manage and synchronize MCP server configurations across different AI assistant clients (Cline, Roo Code, WindSurf, Claude), automating the process of retrieving, listing, adding, and removing server configurations from client configuration files.
                  Last updated -
                  6
                  6
                  1
                  JavaScript
                  MIT License
                  • Apple
                • -
                  security
                  A
                  license
                  -
                  quality
                  An MCP server implementation that standardizes how AI applications access tools and context, providing a central hub that manages tool discovery, execution, and context management with a simplified configuration system.
                  Last updated -
                  9
                  Python
                  MIT License
                • -
                  security
                  F
                  license
                  -
                  quality
                  A task tracking and backlog management tool that enables AI assistants to create, organize, and track issues and tasks with status workflow through MCP protocol.
                  Last updated -
                  Python
                  • Linux
                  • Apple
                • A
                  security
                  A
                  license
                  A
                  quality
                  Enables AI assistants to discover, retrieve details about, and manage MCP (Model Context Protocol) servers that provide additional tools and capabilities on demand.
                  Last updated -
                  4
                  724
                  1
                  JavaScript
                  AGPL 3.0
                  • Linux
                  • Apple

                View all related MCP servers

                ID: xc5szgdfck