Example scan

A real config, scanned end to end.

This is output from a committed CLI run, not a live scanner. The config is built from the official MCP server READMEs. To scan your own, run the CLI on your machine.

run log: docs/live-evidence/ your config: node packages/cli/dist/index.js scan --mcp <file>

Scan summary

567
leak paths
2
private resources
3
servers involved
9
grants to revoke

The CLI prints the route count (567) and the revoke count (9). The two private resources and three servers are derived from the same labelled config.

The config that was scanned

input config mcp-public-readmes.json
{
  "mcpServers": {
    "github": {
      "command": "npx",
      "args": ["-y", "@modelcontextprotocol/server-github"],
      "env": { "GITHUB_PERSONAL_ACCESS_TOKEN": "<YOUR_TOKEN>" }
    },
    "filesystem": {
      "command": "npx",
      "args": ["-y", "@modelcontextprotocol/server-filesystem",
               "/Users/username/Desktop", "/path/to/other/allowed/dir"]
    },
    "git": {
      "command": "uvx",
      "args": ["mcp-server-git", "--repository", "path/to/git/repo"]
    }
  }
}
CLI log: redacted 1 value before the graph · 40 tools labelled by rule · 0 unlabelled

Entries are copied from the public MCP server READMEs; the token is a placeholder. The labeler drops env values and secret-shaped keys before anything reaches the graph.

label confidence self-assessed rule confidence
Label confidence for three tools in the scanned config
toollabelsourceconf
github.get_issueuntrustedrule0.70
filesystem.write_fileprivaterule0.60
git.pushsinkrule0.70

These are the labeler’s own rule scores, not measured accuracy. The 50-row gold set is a regression check; see Evidence.

What the scanner reports

567 leak paths computed, not scored
stranger's words github issue
  ↓ github.get_issue · reads untrusted
  ↓ agent context · now tainted
private local repo · the project itself
  ↓ git.diff · reads private
  ↓ agent context
  ↓ git.push · writes remote
  ↓ public sink public repo · origin/main

one of 567 routes — scan prints the 25 shortest by hops; --json carries the same 25 plus the full count.

THE FIX — CALL algo.maxFlow ⇒ 9 grants

Breaks 567 of 567 paths · revokes 9 write grants (every github write plus git.push) · verified 0 remain when the same query re-runs without them. When cuts tie on cost the engine prefers the write side — the agent keeps its read and loses only the publish.

Why this edge?

example deny list · illustrative

- allow: git.push, github.* writes # 567 paths end in a public sink
+ deny: the nine write grants # re-run without them: 0 remain

The CLI prints a revoke list; it does not export a policy file. This block shows how that list maps onto a deny list.

The queries, verbatim

Cypher executed — leak-path query · read-only · 3 s timeout · LIMIT capped at 100
MATCH inj = (u:Resource {trust:'untrusted'})-[:FLOWS]->(:Tool)-[:FLOWS]->(ctx:Context)
MATCH leak = (p:Resource {sensitivity:'private'})
              -[:FLOWS*1..5]->(ctx)
              -[:FLOWS*1..5]->(s:Resource {visibility:'public'})
RETURN u.kind AS injected_from,
       [n IN nodes(inj) | coalesce(n.kind, n.name, n.id)] AS injection,
       [n IN nodes(leak) | coalesce(n.kind, n.name, n.id)] AS chain,
       [n IN nodes(leak) WHERE n:Tool | n.name] AS tools,
       length(leak) AS hops
ORDER BY hops ASC LIMIT 25
Cypher executed — minimum cut · one algo.maxFlow call; both canonical cuts derived in code
MATCH (p:Resource {sensitivity:'private'})
WHERE p.visibility IS NULL OR p.visibility <> 'public'
WITH collect(p) AS src
MATCH (s:Resource {visibility:'public'})
WHERE s.sensitivity IS NULL OR s.sensitivity <> 'private'
WITH src, collect(s) AS dst
CALL algo.maxFlow({
  sourceNodes: src,
  targetNodes: dst,
  relationshipTypes: ['FLOWS'],
  capacityProperty: 'capacity'
})
YIELD maxFlow, edges, edgeFlows
RETURN maxFlow, edges, edgeFlows

One call, one relationship type (all 6.0.2 accepts); it returns flows, not the cut, so the residual graph is walked in mincut.ts to produce the edge set above. The cut is chosen by grant count, then declared-task cost, then the write side.

Engine note: the public-readmes transcript was recorded on the 6.0.1 module build. A config with the same three servers (data/fixtures/mcp-demo.json) was run on the pinned 6.0.2 container in docs/live-evidence/run-2026-10-17T13:52:42Z.log and gives the same 567 routes.