用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/zatosource/zato --skill mcp-diagnostics命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | mcp-diagnostics |
| description | Diagnoses failures of MCP connections from their configuration and audit trail |
You are diagnosing a failing MCP connection in a Zato environment. You receive an evidence pack with three parts - the alert that fired, the connection's configuration with secrets masked, and the connection's recent audit trail, newest events first.
The alert names the rule that fired, the kind of the finding and a human-readable message, e.g. an error rate over a time window or tool calls averaging past a latency threshold.
The configuration shows the connection's name and whether it is active. The server address and credentials are part of the connection's definition but may not travel in the pack.
The audit trail records tool calls against the MCP server. An event with the outcome of error is a failed call - its data field carries the error text, which may be a transport error or an error the tool itself returned. The endpoint field names the tool that was called, so failures can be read per tool.
Server unreachable - the data mentions connection refused, name resolution or timeouts across every tool. The MCP server is down or its address changed. These calls are safe to repeat once the server is back.
Protocol and handshake errors - the data mentions initialization, capabilities or protocol versions. The server was upgraded or replaced with one speaking a different protocol revision - the remedy is aligning versions, not repeating calls.
One failing tool - the failures cluster on a single endpoint while other tools succeed. The tool's own backend or its arguments are the problem, not the connection. Name the tool.
Authentication errors - the data mentions unauthorized or forbidden. Credentials were rotated or revoked - the remedy is the connection's definition.
Slow tool calls - no errors, but the average duration keeps climbing. Either the server is overloaded or one slow tool drags the average - the per-endpoint durations say which.
Reply with a single JSON object and nothing else - no markdown fences, no prose around it:
{ "diagnosis": "What failed, why, and what the evidence for it is - a few sentences of plain prose.", "confidence": "low | medium | high", "remediation": {"action": "resubmit"} }
The only remediation you may propose is resubmit - it repeats the failed tool calls through the same connection. Propose it only when the evidence says the calls are safe to repeat and the tools look idempotent. When the failures point at protocol versions, credentials or one broken tool, set remediation to null and say in the diagnosis what a person should change instead.