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-ai-mcp-kb

v1.1.0

Published

SCA MCP Server Tools - Knowledge Base (Java JAR wrapper for npx usage)

Readme

sca-ai-mcp-kb

SCA MCP Server Tools - Knowledge Base

这是一个 npm wrapper 包,将 Java JAR 形式的 MCP Server 包装为可以通过 npx 直接运行的 Node.js CLI 工具。

前置条件

  • Node.js >= 18
  • JDK >= 21

快速开始

方式一:通过环境变量指向已有 JAR(推荐用于开发)

# 设置 Java 路径
set SCA_MCP_JAVA_HOME=C:\developer\Java\jdk-21

# 设置 JAR 路径
set SCA_MCP_JAR=C:\softsafe-sca\codes\sca-ai\sca-ai-hub\sca-ai-mcp-kb\target\sca-ai-mcp-kb.jar

# 运行
npx sca-ai-mcp-kb

方式二:发布到 npm registry 后直接使用

npx sca-ai-mcp-kb

MCP 客户端配置

Claude Desktop (claude_desktop_config.json)

{
  "mcpServers": {
    "sca-ai-mcp-kb": {
      "command": "npx",
      "args": ["sca-ai-mcp-kb"],
      "env": {
        "SCA_MCP_JAVA_HOME": "C:\\developer\\Java\\jdk-21"
      }
    }
  }
}

全局安装后使用

npm install -g sca-ai-mcp-kb

然后配置:

{
  "mcpServers": {
    "sca-ai-mcp-kb": {
      "command": "sca-ai-mcp-kb",
      "env": {
        "SCA_MCP_JAVA_HOME": "C:\\developer\\Java\\jdk-21"
      }
    }
  }
}

环境变量

| 变量名 | 说明 | 示例 | |--------|------|------| | SCA_MCP_JAVA_HOME | JDK 安装路径(优先级最高) | C:\developer\Java\jdk-21 | | SCA_MCP_JAVA | java 可执行文件的完整路径 | C:\developer\Java\jdk-21\bin\java.exe | | JAVA_HOME | JDK 安装路径(兜底) | C:\developer\Java\jdk-21 | | SCA_MCP_JAR | JAR 文件完整路径 | ./target/sca-ai-mcp-kb.jar |

传递 Spring Boot 参数

npx sca-ai-mcp-kb -- --spring.profiles.active=prod --server.port=8080

发布流程

# 1. 构建 JAR
cd sca-ai-mcp-kb
mvn clean package -DskipTests

# 2. 复制 JAR 到 npm-wrapper/jar/
cp target/sca-ai-mcp-kb.jar npm-wrapper/jar/

# 3. 发布 npm 包
cd npm-wrapper
npm publish

目录结构

npm-wrapper/
├── bin/
│   └── sca-ai-mcp-kb.js   # 启动脚本
├── jar/
│   └── sca-ai-mcp-kb.jar  # 打包的 JAR(发布时放入)
├── package.json
├── README.md
└── .npmignore