mit einem Klick
mcp-diagnose
MCP Server 連線診斷(檢查連線、binary、基本呼叫)
Mit Codex oder Claude installieren Kopieren Sie diesen Prompt, fügen Sie ihn in Codex, Claude oder einen anderen Assistant ein und lassen Sie die Skill-Seite prüfen und installieren.
Menü
MCP Server 連線診斷(檢查連線、binary、基本呼叫)
Mit Codex oder Claude installieren Kopieren Sie diesen Prompt, fügen Sie ihn in Codex, Claude oder einen anderen Assistant ein und lassen Sie die Skill-Seite prüfen und installieren.
Basierend auf der SOC-Berufsklassifikation
Turn a journal / reference article PDF into a faithful, compile-verified LaTeX "article record" — metadata frontmatter + every theorem, definition and numbered equation (original numbers preserved) + references + flagged editorial notes — saved next to the PDF as year_author_title.tex. Reach for this whenever the user wants to transcribe, OCR, extract, "make a record of", or pull the theorems / equations out of a paper or PDF into LaTeX, or adds a reference PDF and wants it turned into a structured .tex — even when they literally say "OCR it": this skill checks for a text layer first and deliberately avoids OCR on born-digital PDFs, because re-recognizing rendered math is less accurate than reading the embedded text. Especially valuable for math-heavy papers where equation fidelity matters.
發布或更新 MCP Server 到官方 MCP Registry 及第三方平台(Glama、awesome-mcp-servers)
Unblock Apple notarization / signed releases when blocked by an updated or expired Apple Developer Program License Agreement (the notarytool / Transporter HTTP 403 "A required agreement is missing or has expired"). Accepts the pending agreement on developer.apple.com via Safari + AppleScript, then re-verifies and resumes the release. Use when: `xcrun notarytool` / `make release-signed` fails with 403 "required agreement", or user says "notarization blocked", "公證被擋", "Apple 協議過期", "accept apple agreement", "Program License Agreement", "notary 403", "release 卡在 Apple 協議". Do NOT use for 401 "Invalid credentials" (that is an app-specific-password / key problem — re-run `xcrun notarytool store-credentials`, a user-only action).
macOS native browser automation via Safari + AppleScript. Use when the user needs to automate websites that require login (Plaud, Elementor, banking, social media) — Safari preserves localStorage and cookies permanently. Also use when agent-browser fails due to session/auth issues, or when the user explicitly asks to use Safari. Triggers on: "login to site", "automate with Safari", "use Safari", "session expired with agent-browser", "Plaud upload", or any website automation where persistent auth is needed.
更新 Plugin 到最新版本(marketplace.json 同步 + marketplace update + plugin update + 安裝檢查)。當修改了任何 plugin 原始碼後需要同步、或用戶提到「更新 plugin」、「同步 plugin」、「plugin 沒生效」、「reload plugins」時使用。
LaTeX source 編譯前的 static check — punct_check(半形/全形標點)+ fonts_check(字型缺字,需既有 .log)+ source-level pattern audit。當用戶說「precompile check」「編譯前檢查」「跑 make check」「source audit」「掃半形標點」「掃缺字」時使用。對應暑期班 typesetting-checklist 的
| name | mcp-diagnose |
| description | MCP Server 連線診斷(檢查連線、binary、基本呼叫) |
| argument-hint | <mcp-server-name> |
| allowed-tools | Bash(ls:*, file:*, claude:mcp*), Read, Grep, mcp__* |
診斷 MCP Server 連線問題。功能除錯請用 /mcp-tools:mcp-debug。
$1 = MCP Server 名稱(如 che-things-mcp、che-ical-mcp)動任何事之前先用 TaskCreate 建 todo list:
TaskCreate(name="setup_log_dir", description="建立 logs/mcptools/debug/ 目錄")
TaskCreate(name="check_connection", description="Step 1: 檢查 MCP Server 連線狀態")
TaskCreate(name="basic_functional_test", description="Step 2: 跑 3 個讀取類 tool 快速測試")
TaskCreate(name="analyze_errors", description="Step 3: 錯誤訊息分析(若有)")
TaskCreate(name="output_report", description="Step 4: 輸出診斷報告到 logs")
完成每一步立即 TaskUpdate → completed。靜默完成 = 違規。
在專案根目錄建立 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 - 完整功能測試