一键导入
soleri-mcp-doctor
Triggers: "MCP not working", "tools missing", "fix MCP", "mcp doctor", "server not connecting". Diagnoses and repairs MCP server connectivity.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Triggers: "MCP not working", "tools missing", "fix MCP", "mcp doctor", "server not connecting". Diagnoses and repairs MCP server connectivity.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Triggers: "learn from this", "harvest knowledge", "harvest this codebase", "extract patterns from". Bulk-extracts patterns from code/docs/PRs/articles into vault. Use vault-capture for single patterns, intake for ingesting external sources.
Triggers: "add a facade", "new tool", "extend vault", "add brain feature", "new skill", "extend agent". Extends agent internals with vault-first knowledge gathering.
Triggers: "AgentName, ...", "Hey AgentName", "what commands do I have", "what can you do with MCP", "command reference". Routes ambiguous intent to correct facade + op. Also handles vague phrases like "save this", "remember this", "search for patterns".
Triggers: "I want to build something", "let's think about", "what if we", "creative exploration", "ideate". Open-ended creative exploration when requirements are not yet clear.
Triggers: "check against patterns", "pattern compliance", "convention check", "review against vault", "institutional review". Reviews code against vault patterns/conventions. Use deep-review for general quality/architecture.
Triggers: "curator status", "vault health", "how is the vault", "curator health", "check vault quality", "what needs grooming". Quick vault health + grooming recs. Use vault-curate for full maintenance.
| name | soleri-mcp-doctor |
| tier | default |
| description | Triggers: "MCP not working", "tools missing", "fix MCP", "mcp doctor", "server not connecting". Diagnoses and repairs MCP server connectivity. |
Systematically diagnose why MCP servers are not connecting and attempt to repair them.
Read the .mcp.json in the project root to get the list of configured servers.
cat .mcp.json
For each server entry, record:
command field)args field)cwd field, defaults to .)env field, if any)For each configured server, run these checks in order:
which <command>
# e.g. which node, which uvx, which npx
If the binary is missing, report it and suggest installation.
For node commands, check the script file exists:
ls -la <args[0]>
For npx/uvx commands, check the package resolves:
npx --yes <package> --help 2>&1 | head -5
# or
uvx --from <source> <command> --help 2>&1 | head -5
Attempt to start the server with a timeout to verify it initializes:
timeout 10 <full command> 2>&1 &
sleep 3
kill %1 2>/dev/null
Look for:
If the server binds to a port, check for conflicts:
lsof -i :<port>
If a stale process holds the port, report the PID and suggest killing it.
For Node.js servers, check if node_modules exist:
ls <cwd>/node_modules/.package-lock.json 2>/dev/null
If missing, suggest npm install.
For Python (uvx) servers, the virtual env is managed by uvx — check if the package installs cleanly.
For each issue found, apply the appropriate fix:
| Issue | Fix |
|---|---|
| Binary not found | Suggest install command |
| Entry point missing | npm run build or check path |
| Port conflict (stale process) | kill <PID> (ask user first) |
| Missing node_modules | npm install in the right directory |
| Config error in .mcp.json | Show the fix, apply with user approval |
| Package resolution failure | Clear cache, retry install |
| Server crashes on start | Show error log, diagnose root cause |
IMPORTANT: Never kill processes without user confirmation. Always show the PID and process name first.
After repairs, instruct the user:
Repairs complete. Please restart MCP connections:
- Type
/mcpin the prompt- Toggle the repaired server(s) off and back on
- Verify tools appear with a ToolSearch
Note: Claude Code does not support programmatic MCP restarts. The user must use /mcp to reconnect.
Present findings as a table:
## MCP Doctor Report
| Server | Binary | Entry Point | Starts | Port | Status |
|--------|--------|-------------|--------|------|--------|
| soleri | node OK | dist/index.js OK | OK | — | Healthy |
| serena | uvx OK | git+... OK | OK | 24285 OK | Healthy |
### Issues Found
| Server | Issue | Fix Applied |
|--------|-------|-------------|
| serena | Stale process on :24285 | Killed PID 1234 |
### Action Required
- [ ] Run `/mcp` and reconnect repaired servers
dist/ hasn't been built. Run the build command.cwd: "." resolves from where Claude Code launched, not the .mcp.json location.| Check | Command | What it tells you |
|---|---|---|
| Binary exists | which <cmd> | Is the runtime installed? |
| Script exists | ls <path> | Is the entry point built? |
| Port free | lsof -i :<port> | Is something blocking the port? |
| Deps installed | ls node_modules | Are npm packages present? |
| Server starts | timeout 10 <cmd> | Does initialization succeed? |