npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

sca-scanner-mcp

v1.0.6

Published

SCA Scanner MCP Server - 提供SCA扫描执行、状态查询、结果获取能力(纯Node.js实现)

Readme

sca-scanner-mcp

npm version Node.js >= 18

SCA Scanner MCP Server - 为 AI 编程助手(如 Claude、Cursor 等)提供 SCA 开源组件安全扫描能力的 Model Context Protocol (MCP) 服务端。

功能特性

  • 启动安全扫描 — 对指定项目目录执行开源组件安全漏洞扫描
  • 查询分析状态 — 轮询 SCA 平台的分析进度,内置自动等待机制
  • 获取检测结果 — 获取漏洞统计、依赖组件信息、严重等级分布等摘要
  • 连接验证 — 验证平台连接和 API Token 是否有效

安装使用

无需手动安装,在 MCP 客户端中通过 npx 直接运行即可。

Claude Desktop

claude_desktop_config.json 中添加:

{
  "mcpServers": {
    "softsafeSCAScannerMcp": {
      "command": "npx",
      "args": ["-y", "sca-scanner-mcp"],
      "env": {
        "SCA_PLATFORM_URL": "https://your-sca-platform.com",
        "SCA_MCP_USER_TOKEN": "your-api-token"
      },
      "longRunning": true,
      "timeout": 3600
    }
  }
}

Cursor

Settings → Features → MCP → 添加:

{
  "softsafeSCAScannerMcp": {
    "command": "npx",
    "args": ["-y", "sca-scanner-mcp"],
    "env": {
      "SCA_PLATFORM_URL": "https://your-sca-platform.com",
      "SCA_MCP_USER_TOKEN": "your-api-token"
    },
    "longRunning": true,
    "timeout": 3600
  }
}

环境变量

| 变量名 | 必填 | 默认值 | 说明 | |---|---|---|---| | SCA_PLATFORM_URL | | — | SCA 平台地址,如 https://sca.example.com | | SCA_MCP_USER_TOKEN | | — | 平台 API Token | | SCA_SCANNER_DIR | 否 | ~/.sca-mcp/scanner/ | Scanner JAR 下载存放目录 | | SCA_JAVA_PATH | 否 | $JAVA_HOME/bin/java | Java 可执行文件路径 |

MCP Tools

| 工具名 | 说明 | |---|---| | startScan | 启动 SCA 安全扫描,提交项目目录进行开源组件漏洞分析 | | getDetectStatusByVersionId | 查询平台分析状态,支持自动等待轮询 | | getDetectResultAbstract | 获取扫描检测结果摘要(漏洞统计、严重等级分布等) | | validateConnection | 验证平台连接和 API Token 有效性 |

典型工作流

  1. 调用 startScan 提交扫描任务,获得 versionId
  2. 调用 getDetectStatusByVersionId 轮询分析状态,直到 detectFinalStatus 为终态
  3. 调用 getDetectResultAbstract 获取最终检测结果摘要

环境要求

  • Node.js >= 18
  • Java(运行 Scanner JAR 需要)