Skip to content
Skillpedia
Security81k · #1651

harness-mcp-scan

What it does

This skill scans the declared tool servers and permissions of a harness for policy and security problems. It is for people reviewing an AI setup before trusting it with real work.

When to use it

  • ✓When you add a new tool server to a harness and want to check it.
  • ✓When a security review needs a list of issues in the declared tools.
  • ✓When you want a build to fail if a serious problem is found.

Skill link

https://github.com/ruvnet/ruflo/blob/main/plugins/ruflo-metaharness/skills/harness-mcp-scan/SKILL.md

Copy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.

How to use

The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.

Ready-to-paste message

Use this skill to help me: https://github.com/ruvnet/ruflo/blob/main/plugins/ruflo-metaharness/skills/harness-mcp-scan/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
Want your AI to find skills like this on its own?Install the free Skillpedia MCP: one line, and it searches 15,000+ skills before each task.Install in 1 minute →

Example of what to ask your AI

“Scan the tools in my harness for security problems and tell me anything serious.”

5 new skills a week. 1 minute to read.

How it works

The skill reads the declared servers and tools, then lists findings by severity. It does not run any tool. It exits with an error if any finding is at or above the level you choose, with high as the default.

Technical content (original SKILL.md)

Original text by the author, straight from 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.

FAQ

Does it run the tools it scans?

No. It is a static check that reads the declared setup only.

What severity levels are there?

The levels are low, medium and high. The default fails only on high findings.

What if the scanner is not installed?

It reports that the scanner is unavailable and exits cleanly instead of failing.

Details

Original description by the author

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

Popularity

GitHub stars
81k
Ranking position
#1651
License
MIT
Updated
11/2/2026

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills