Mcp Troubleshooter — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited Mcp Troubleshooter (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
A Model Context Protocol (MCP) server that provides comprehensive system troubleshooting and diagnostic tools for developers and system administrators. This server enables LLMs to help diagnose system issues, monitor resources, check logs, test connectivity, and more.
Version: 1.0.0 | License: MIT | Python: 3.10+
Get comprehensive details about the operating system, hardware specifications, CPU architecture, memory capacity, and installed software versions.
Real-time monitoring of system resources including:
Read and analyze system log files with:
Test network connectivity with:
Search and monitor running processes:
Inspect system environment including:
Execute whitelisted diagnostic commands with:
troubleshooting_mcp/
├── src/
│ └── troubleshooting_mcp/ # Main package
│ ├── __init__.py # Package initialization
│ ├── server.py # MCP server entry point
│ ├── constants.py # Shared constants
│ ├── models.py # Pydantic input validation models
│ ├── utils.py # Utility functions
│ └── tools/ # Individual diagnostic tools
│ ├── __init__.py # Tool registration
│ ├── system_info.py # System information tool
│ ├── resource_monitor.py # Resource monitoring tool
│ ├── log_reader.py # Log file reader tool
│ ├── network_diagnostic.py # Network diagnostic tool
│ ├── process_search.py # Process search tool
│ ├── environment_inspect.py # Environment inspection tool
│ └── safe_command.py # Safe command execution tool
│
├── tests/ # Test suite
│ ├── __init__.py
│ └── test_server.py # Server validation tests
│
├── docs/ # Documentation
│ ├── QUICKSTART.md # Quick start guide
│ ├── EXAMPLES.md # Detailed usage examples
│ └── CHANGELOG.md # Version history
│
├── config/ # Configuration files
│ └── claude_desktop_config.example.json # Claude Desktop example config
│
├── troubleshooting_mcp.py # Backward compatibility entry point
├── setup.py # Package setup script
├── pyproject.toml # Modern Python project configuration
├── requirements.txt # Python dependencies
├── .gitignore # Git ignore rules
├── LICENSE # MIT License
└── README.md # This filetroubleshooting_mcp.py maintains compatibility with existing configurationspip install -e . for system-wide access# Navigate to the project directory
cd troubleshooting_mcp
# Install required packages
pip install -r requirements.txt
# Or install as a package (recommended)
pip install -e .# Method 1: Run directly (backward compatible)
python troubleshooting_mcp.py --help
# Method 2: Run as module
python -m troubleshooting_mcp.server --help
# Method 3: If installed as package
troubleshooting-mcp --help
# Run validation tests
python tests/test_server.pymacOS: ~/Library/Application Support/Claude/claude_desktop_config.json Windows: %APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"troubleshooting": {
"command": "python",
"args": ["/absolute/path/to/troubleshooting_mcp.py"]
}
}
}Alternative (if installed as package):
{
"mcpServers": {
"troubleshooting": {
"command": "troubleshooting-mcp"
}
}
}python troubleshooting_mcp.pyPros: Simple, no installation needed Cons: Not accessible system-wide
pip install -e .
troubleshooting-mcpPros: System-wide access, easy to modify, auto-updates Cons: Requires pip install
pip install .
troubleshooting-mcpPros: Clean installation, system-wide access Cons: Requires reinstall after changes
python -m troubleshooting_mcp.serverPros: No installation, proper Python module syntax Cons: Requires being in parent directory
| Tool | Description | Example Usage |
|---|---|---|
troubleshooting_get_system_info | Get comprehensive system details | "What are the system specs?" |
troubleshooting_monitor_resources | Monitor CPU, memory, disk, network | "Show current resource usage" |
troubleshooting_read_log_file | Read and filter log files | "Show last 100 lines of syslog" |
troubleshooting_test_network_connectivity | Test host/port connectivity | "Can I reach google.com?" |
troubleshooting_search_processes | Search running processes | "Is nginx running?" |
troubleshooting_inspect_environment | Check environment variables & tools | "What dev tools are installed?" |
troubleshooting_execute_safe_command | Run whitelisted commands | "Run df -h to check disk space" |
For detailed tool documentation and examples, see docs/EXAMPLES.md.
mcp>=1.0.0 - MCP Python SDK with FastMCP frameworkpsutil>=5.9.0 - System and process monitoringpydantic>=2.0.0 - Input validationThe server respects standard Python environment variables:
PYTHONPATH - For module resolutionPATH - For locating diagnostic commandsLog Paths: Edit src/troubleshooting_mcp/constants.py:
COMMON_LOG_PATHS = [
"/var/log/syslog",
"/custom/app/logs/error.log",
# Add your custom paths
]Safe Commands: Edit src/troubleshooting_mcp/constants.py:
SAFE_COMMANDS = {
"ping", "traceroute", "netstat",
# Add approved commands only
}Character Limit: Edit src/troubleshooting_mcp/constants.py:
CHARACTER_LIMIT = 25000 # Adjust as neededOnly pre-approved diagnostic commands can be executed. The whitelist includes common troubleshooting tools but excludes any commands that could:
Default Whitelist: ping, traceroute, nslookup, dig, netstat, ss, ip, ifconfig, df, du, free, uptime, uname, lsblk, lsof, whoami, hostname
All long-running operations have configurable timeouts:
All inputs are validated using Pydantic models with:
# Clone the repository
git clone <repository-url>
cd troubleshooting_mcp
# Create virtual environment (optional but recommended)
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
# Install in editable mode with dev dependencies
pip install -e .
# Run tests
python tests/test_server.pysrc/troubleshooting_mcp/tools/:# src/troubleshooting_mcp/tools/my_tool.py
def register_my_tool(mcp):
@mcp.tool(name="troubleshooting_my_tool", annotations={...})
async def troubleshooting_my_tool(params: MyInput) -> str:
# Implementation
passsrc/troubleshooting_mcp/models.py:class MyInput(BaseModel):
model_config = ConfigDict(str_strip_whitespace=True)
param: str = Field(..., description="...")src/troubleshooting_mcp/tools/__init__.py:from .my_tool import register_my_tool
def register_all_tools(mcp):
# ... existing registrations ...
register_my_tool(mcp)# Run all tests
python tests/test_server.py
# Test specific functionality
python -c "from src.troubleshooting_mcp import mcp; print('Import successful')"| Document | Description |
|---|---|
| README.md | This file - Overview and getting started |
| docs/QUICKSTART.md | 5-minute quick start guide |
| docs/EXAMPLES.md | Detailed usage examples for each tool |
| docs/CHANGELOG.md | Version history and changes |
| config/claude_desktop_config.example.json | Example Claude Desktop configuration |
Once configured in Claude Desktop, try these prompts:
"What operating system and hardware does this machine have?"
"Show me current CPU and memory usage""What log files are available on this system?"
"Search nginx error logs for 500 errors in the last 200 lines""Can this server reach google.com?"
"Test if port 443 is open on api.example.com""Is docker running on this system?"
"Show me the top 10 processes by CPU usage""What development tools are installed?"
"Show me all AWS-related environment variables"~/Library/Logs/Claude/mcp*.log%APPDATA%\Claude\logs\mcp*.log# Reinstall dependencies
pip install --upgrade -r requirements.txt
# Or use virtual environment
python -m venv venv
source venv/bin/activate # Windows: venv\Scripts\activate
pip install -e .# Check Python is in PATH
which python # macOS/Linux
where python # Windows
# Or use full path in config
# "command": "/usr/bin/python3" # macOS/Linux
# "command": "C:/Python310/python.exe" # WindowsContributions are welcome! When contributing:
This project is licensed under the MIT License - see the LICENSE file for details.
Built using:
For issues, questions, or suggestions:
Made for developers and system administrators
Last Updated: 2025-11-05 | Version: 1.0.0
~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.