Skip to content

Latest commit

 

History

History
101 lines (80 loc) · 2.95 KB

MCP.md

File metadata and controls

101 lines (80 loc) · 2.95 KB

MCP integration

MoppScan uses the official MCP Python SDK 2.x and exposes a local stdio server. There is no remote HTTP listener, authentication service, or daemon.

Install and inspect

python -m pip install ".[mcp]"
moppscan-mcp --version
npx -y @modelcontextprotocol/inspector moppscan-mcp
npx -y @modelcontextprotocol/inspector --cli moppscan-mcp \
  --method tools/list --format json

The Inspector command needs Node.js. A normal MCP host launches moppscan-mcp directly as a child process.

Safe default

{
  "mcpServers": {
    "moppscan": {
      "command": "moppscan-mcp"
    }
  }
}

This exposes local catalog search and documentation resources. Network calls are denied because no host is in scope.

Passive target scope

{
  "mcpServers": {
    "moppscan": {
      "command": "moppscan-mcp",
      "args": [
        "--allow-host", "app.example.com",
        "--allow-host", "*.cdn.example.com"
      ]
    }
  }
}

An exact hostname matches only itself. *.example.com matches subdomains but not the apex. Redirects and fetched assets must remain on an allowlisted host and cannot resolve to loopback, private, link-local, reserved, multicast, or unspecified addresses by default. Add required CDN hosts explicitly.

Active tools

Client-side canary scans require --allow-active. SSPP additionally requires --allow-sspp:

{
  "command": "moppscan-mcp",
  "args": [
    "--allow-host", "api.example.com",
    "--allow-active",
    "--allow-sspp"
  ]
}

For an authorized development service on localhost, add both the exact host and the explicit private-network override:

moppscan-mcp --allow-host 127.0.0.1 --allow-private --allow-active

Tool behavior

Tool Network Startup gate Notes
moppscan_catalog_search No None Bounded local metadata only.
moppscan_sca GET --allow-host Passive, but still makes outbound requests.
moppscan_client_scan Browser GET --allow-host --allow-active Adds canary query/hash parameters.
moppscan_sspp_scan HTTP mutation --allow-host --allow-active --allow-sspp Attempts and verifies cleanup; stops after failure.

Active calls also require authorization_confirmed=true. That argument documents user intent; it is not trusted as the security boundary. Only process startup configuration is operator-controlled.

Output handling

  • Query values and URL credentials are removed from model-visible output.
  • Finding lists, evidence, errors, and PoC URLs are bounded.
  • SCA, client, and SSPP results carry the same conservative evidence levels as the CLI; model-generated prose cannot promote a candidate.
  • Cookies, arbitrary headers, proxy configuration, output paths, deep crawling, and gadget exploitation are not exposed through MCP.
  • Tool errors are returned as MCP errors rather than protocol-breaking stdout.

See THREAT_MODEL.md for limitations and deployment guidance.