How this skill is triggered — by the user, by Claude, or both
Slash command
/mcp-tools:mcp-diagnoseThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
診斷 MCP Server 連線問題。**功能除錯請用 `/mcp-tools:mcp-debug`**。
診斷 MCP Server 連線問題。功能除錯請用 /mcp-tools:mcp-debug。
$1 = MCP Server 名稱(如 che-things-mcp、che-ical-mcp)在專案根目錄建立 logs/mcptools/debug/ 結構(diagnose 報告也存在 debug 目錄):
cd ~/Library/CloudStorage/Dropbox/che_workspace/projects/mcp/$1
mkdir -p logs/mcptools/debug
claude mcp list 2>&1 | grep -A1 "$1"
結果判讀:
✓ Connected → 進入 Step 2✗ Failed 或找不到 → 進入「未連接診斷」如果已連接:直接呼叫一個 read-only tool 測試:
# 例如 che-things-mcp
呼叫 mcp__che-things-mcp__get_projects
# 例如 che-ical-mcp
呼叫 mcp__che-ical-mcp__list_calendars
成功 → MCP Server 運作正常
失敗 → 進入 /mcp-tools:mcp-debug 進行功能除錯
將報告存到 logs/mcptools/debug/diagnose-report-<timestamp>.md:
# 報告檔案路徑
REPORT_FILE="logs/mcptools/debug/diagnose-report-$(date +%Y%m%d-%H%M%S).md"
報告格式:
# MCP Diagnose Report: <server-name>
Generated: <timestamp>
## 連線狀態
- 狀態: ✓ 已連接 / ✗ 未連接
- Binary: /path/to/binary
## 測試結果
- 基本連線測試: ✓ / ✗
## 診斷結論
- 結果: 正常 / 需要進一步除錯
- 建議: <如果需要>
使用 Write 工具將報告寫入 $REPORT_FILE。
完成後輸出:
✅ 診斷報告已儲存: logs/mcptools/debug/diagnose-report-<timestamp>.md
# 從 settings.json 找
grep -A5 "$1" ~/.claude/settings.json
# 確認檔案存在且可執行
ls -la "$BINARY_PATH"
file "$BINARY_PATH"
claude mcp add <name> /path/to/binary
| 問題 | 可能原因 | 解決方案 |
|---|---|---|
| Server disconnected | Binary crash | 檢查 binary 是否有 waitUntilCompleted() |
| Tool 呼叫卡住 | Event Loop 阻塞 | 使用背景執行緒處理同步操作 |
| Permission denied | 權限問題 | → /mcp-tools:mcp-debug |
/mcp-tools:mcp-debug - 功能除錯(權限、框架特定問題)/mcp-tools:mcp-test - 完整功能測試npx claudepluginhub psychquant/psychquant-claude-plugins --plugin mcp-toolsTests and debugs MCP servers: lists tools, calls with params, interactive shell, web UI via mcptools CLI. For diagnosing tool responses and connectivity.
Detects MCPProxy connection by checking for mcp__MCPProxy__* tools, suggests /mcp reconnect if missing, and guides MCP tools usage over HTTP API for debugging.
Diagnoses and fixes MCP server connection issues between Claude Code, Claude Desktop, and MCP servers. Covers Windows argument parsing, authentication failures, transport issues, and platform-specific debugging.