Claude Desktop中Model Context Protocol (MCP)服务器的综合诊断和修复工具。自动检测、诊断并修复常见的MCP配置问题。
npx @kajdep/mcp-fixer install
npm install -g @kajdep/mcp-fixer
mcp-fixer install
git clone https://github.com/kajdep/mcp-fixer.git
cd mcp-ffier
npm install
npm run install:claude
安装后,只需让Claude使用诊断工具:
"Claude,你能诊断我的MCP配置吗?"
"Claude,检查我的MCP服务器状态"
"Claude,生成一份全面的诊断报告"
"Claude,为我的MCP问题提供建议"
| 工具 | 描述 | 使用场景 |
|---|---|---|
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": "潜在的路径转义问题...",
"fix": "确保Windows路径使用双反斜杠"
}
],
"serverCount": 15,
"recommendations": [
"考虑禁用未使用的服务器以提高启动时间"
]
}
我们欢迎贡献!请参阅我们的贡献指南了解详情。
git clone https://github.com/kajdep/mcp-fixer.git
cd mcp-fixer
npm install
npm test
查看CHANGELOG.md了解版本历史和更新。
本项目采用MIT许可证 - 查看LICENSE文件了解详细信息。
为MCP社区制作 ❤️