跳到正文
Skillpedia
安全81k · #1651

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。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/ruvnet/ruflo/blob/main/plugins/ruflo-metaharness/skills/harness-mcp-scan/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 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.

  1. Invoke the pinned harness binary (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.
  2. Parse findings[] with { severity, id, server, tool, message }.
  3. --fail-on <severity>: exit 1 when any finding is at or above that level. Default high.
  4. 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

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能