harness-mcp-scan
它能做什么
这项技能扫描运行框架中声明的工具服务器和权限,查找策略和安全问题。适合在信任某个 AI 设置处理真实工作之前进行审查的人。
适用场景
- ✓当你为运行框架添加新的工具服务器,想对其进行检查时。
- ✓当安全审查需要一份已声明工具中的问题清单时。
- ✓当你希望在发现严重问题时使构建失败时。
技能链接
https://github.com/ruvnet/ruflo/blob/main/plugins/ruflo-metaharness/skills/harness-mcp-scan/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请扫描我运行框架中的工具是否存在安全问题,并告诉我任何严重的问题。”
每周 5 个新技能,1 分钟读完。
工作原理
这项技能读取已声明的服务器和工具,然后按严重程度列出发现的问题。它不运行任何工具。如果有任何发现的严重程度达到或超过你选择的级别,它就以错误退出;默认级别为高。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Calls harness mcp-scan to enumerate every declared MCP server + tool
and flag policy / permission / dependency issues. Never executes any
tool; pure static analysis.
Algorithm
Implementation: scripts/mcp-scan.mjs.
- Invoke the pinned
harnessbinary (metaharness@~0.4.1, resolved from a local install or the one-time~/.ruflo/metaharness-cache-<pin>cache — never@latest):harness mcp-scan <path> --json. - Parse
findings[]with{ severity, id, server, tool, message }. --fail-on <severity>: exit 1 when any finding is at or above that level. Defaulthigh.- Output JSON (default) or markdown table.
Severity rank
| Severity | Rank |
|---|---|
| low | 1 |
| medium | 2 |
| high | 3 |
--fail-on high (default) only fails on HIGH; --fail-on medium also
fails on MEDIUM; --fail-on low fails on any finding.
CI integration
- name: MCP static scan
run: node plugins/ruflo-metaharness/scripts/mcp-scan.mjs --fail-on high
The exit code is the only thing CI watches; the JSON output goes to artifacts for human review.
Graceful degradation
When harness binary is unavailable (no network, blocked registry),
emits structured { degraded: true, reason: 'metaharness-not-available' }
and exits 0. Ruflo continues — ADR-150 architectural constraint.
常见问题
它会运行被扫描的工具吗?
不会。它是一种静态检查,只读取已声明的设置。
严重程度有哪些级别?
分为低、中、高三级。默认情况下,只有高级别的发现才会使检查失败。
如果扫描器没有安装怎么办?
它会报告扫描器不可用,并正常退出,而不会失败。
详情
作者的原始描述
Static security scan of a harness's declared MCP surface via `harness mcp-scan {path}`. Reads `.mcp/servers.json` + `.harness/claims.json`. Pure-read, no dispatch. Exits 1 on findings at or above `--fail-on` severity.
repo: ruvnet/ruflo
热度
- GitHub 星标
- 81k
- 排名
- #1651
- 许可证
- MIT
- 更新时间
- 2026/11/2
评论
- …
同一仓库的更多技能
agent-adaptive-coordinator
81k帮你的智能体在工作量变化时拆分和重新平衡一组 AI 智能体,并选择适合任务的分工方式。
agent-agent
81k教你的智能体把一个大目标拆成有顺序的行动计划,并在情况变化时重新规划。
agent-agentic-payments
81k帮你的智能体管理 AI 购物的消费授权,包括消费上限、时间窗口、商户规则和签名审批。
agent-analyze-code-quality
81k帮你的智能体检查代码质量,找出代码异味、技术债务和重构建议,且不改动文件。