一键导入
mcp-doctor
Use when the user wants to health-check MCP servers, diagnose broken connections, or find duplicate tools and missing credentials
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Use when the user wants to health-check MCP servers, diagnose broken connections, or find duplicate tools and missing credentials
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
Use when the user wants to measure MCP token waste, rank high-cost servers, or choose between project scoping and skill conversion
Use when the user wants to keep MCP but scope it to the current project with a smaller .mcp.json
Use when the user wants to convert expensive MCP tools into on-demand Claude Code skills
基于 SOC 职业分类
| name | mcp-doctor |
| description | Use when the user wants to health-check MCP servers, diagnose broken connections, or find duplicate tools and missing credentials |
Run a comprehensive health check on configured MCP servers to:
Infer options from the user's request. Mirror the explicit command /mcp-optimizer:mcp-doctor:
--server <name> : check a single server (default: check all)--fix : include actionable fix commands in outputMCP server connections can be slow, so always use the Agent tool to delegate the check and report generation. Only the final report should remain in the main context.
Use the following prompt when invoking the Agent tool:
Perform an MCP server health check.
1. Run the following command to get the health check JSON:
python3 "${CLAUDE_SKILL_DIR}/scripts/mcp_doctor.py" [--server <name>] [--timeout 15]
(Actual path for ${CLAUDE_SKILL_DIR}: <absolute path to this skill directory>)
2. Format the JSON result into the report template below and return it:
MCP Server Health Report
=========================
| Server | Source | Status | Tools | Response Time | Issues |
|--------|--------|--------|-------|---------------|--------|
| {name} | {source} | {status} | {tools_count} | {response_time_ms}ms | {issues} |
Summary: {servers_healthy}/{servers_total} servers healthy
Duplicate Tools:
(list each duplicate with the servers that provide it, or "None found")
Recommendations:
(list each recommendation with type, server/tool, and reason)
(if --fix was requested, include specific fix commands for each issue:
- remove_broken: show how to remove from config
- fix_credentials: show which env vars to set
- resolve_duplicate: suggest which server to keep)
Report rules:
- Status indicators: healthy = GREEN, timeout = YELLOW, unreachable/error = RED
- Show response times in ms
- Group recommendations by type (broken, credentials, duplicates)
- If 0 servers found, output "No MCP servers configured"
- Return only the final report text. Do NOT return the raw JSON.
Output the report returned by the sub-agent directly to the user.
After the report:
--fix was specified, provide the specific fix commands/mcp-optimizer:mcp-audit to measure token waste and find optimization opportunities"