这是一款针对Claude Desktop中Model Context Protocol (MCP) 服务器的综合诊断与修复工具。它能够自动检测、诊断并修复常见的MCP配置问题,为MCP服务器的稳定运行提供有力保障。
npx @your-username/mcp-fixer-server install
npm install -g @your-username/mcp-fixer-server
mcp-fixer install
git clone https://github.com/your-username/mcp-fixer-server.git
cd mcp-fixer-server
npm install
npm run install:claude
安装完成后,只需向Claude请求使用诊断工具:
"Claude, can you diagnose my MCP configuration?"
"Claude, check the status of my MCP servers"
"Claude, generate a comprehensive diagnostic report"
"Claude, suggest fixes for my MCP issues"
| 工具 | 描述 | 使用场景 |
|---|---|---|
diagnose_mcp_config |
全面的配置分析 | 一线诊断 |
check_mcp_server_status |
单个服务器健康检查 | 服务器连接问题 |
fix_config_syntax |
自动修复JSON语法 | 配置错误 |
validate_dependencies |
系统依赖验证 | 缺少工具/包 |
check_port_conflicts |
端口可用性扫描 | 网络冲突 |
generate_diagnostic_report |
完整的系统分析 | 全面健康评估 |
suggest_fixes |
有针对性的解决方案建议 | 问题解决 |
# 安装到Claude Desktop
mcp-fixer install
# 检查安装状态
mcp-fixer check
# 从Claude Desktop移除
mcp-fixer uninstall
# 显示当前配置
mcp-fixer config
# 直接运行服务器(开发环境)
mcp-fixer run
{
"configPath": "/path/to/claude_desktop_config.json",
"exists": true,
"valid": true,
"issues": [],
"warnings": [
{
"type": "path_escaping",
"severity": "medium",
"server": "filesystem",
"message": "Potential path escaping issue...",
"fix": "Ensure Windows paths use double backslashes"
}
],
"serverCount": 15,
"recommendations": [
"Consider disabling unused servers to improve startup time"
]
}
我们欢迎贡献!详情请参阅我们的贡献指南。
git clone https://github.com/your-username/mcp-fixer-server.git
cd mcp-fixer-server
npm install
npm test
查看CHANGELOG.md了解版本历史和更新内容。
本项目采用MIT许可证 - 详情请参阅LICENSE文件。
Made with ❤️ for the MCP community"# mcp-fixer"