
Pkgverdict
io.github.CloudCorpRecords由 GitHub 账号 CloudCorpRecords 发布v0.1.1更新于 Oct 30, 2026
Pre-install verdicts for npm packages: GO, RISKY, FAKE, or MISSING. Built for humans and AI agents.
概览
在安装前检查 npm 套件,给出 GO、RISKY、FAKE 或 MISSING 结论,让助手先审查依赖再安装。
- 可以做什么
- 按名称或 name@version 检查单个 npm 套件,返回通俗结论及其依据信号
- 扫描项目的 package.json,按风险从高到低列出各依赖的结论,可选择跳过开发依赖
- 识别幻觉或拼错的名字、仿冒名称、过新或冷门套件、安装脚本、已弃用、缺少仓库或授权,以及 OSV 公告
- 提供便于脚本与 CI 使用的 JSON 输出与退出码
- 适用场景
- 当 AI 编程助手建议安装某个套件时,或需要对新的、不熟悉的 npm 依赖做安装前安全检查,以及在 CI 中拦截可疑套件时使用。
- 运行要求
- 通过 Docker 作为本地 stdio 进程运行,镜像从 GHCR 拉取;没有 npm 套件,npx 无法使用。需要能访问 npm registry 与 OSV 数据库的网络。未声明任何账号、API 密钥或环境变量。scan 命令需要挂载项目目录。
安装
在 SourceWeft 中
- 打开 控制台中的 Pkgverdict,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
pkgverdict
Check an npm package before you install it. One command, one verdict: GO, RISKY, FAKE, or MISSING — in plain words your AI coding agent can read too.
pkgverdict ships as a container image on GHCR (there is no npm package named pkgverdict, so npx pkgverdict will 404 — use Docker):
Why
AI assistants now pick half the packages developers install — and they hallucinate names attackers have already registered (slopsquatting), while typosquats and hijacked releases keep shipping postinstall malware. npm audit only sees published advisories, after the fact. pkgverdict checks before the install: existence, lookalike names, package age, install scripts, maintainers, downloads, and OSV advisories.
Use it inside your AI coding tool
One command sets it up. In your project directory, run:
That installs the MCP server config plus the instruction snippet teaching your agent the one behavior rule: check pkgverdict before installing. Supported tools: claude-code, cursor, copilot (VS Code), windsurf, cline, and generic (init --list shows them all; --all sets up everything; --dry-run previews without writing). Restart your tool, verify with a "list your MCP tools" prompt, and the pkgverdict server should appear with 2 tools (check_package, scan_dependencies). The underlying pack lives in integrations/ if you prefer to install by hand.
CLI
Exit codes: 0 when everything is GO (or RISKY without --strict), 1 when a FAKE or MISSING package is found, 2 on usage errors. For CI gates that should fail on anything suspicious: pkgverdict scan --strict.
Verdicts
Signals come from the npm registry (metadata, downloads), the OSV database (advisories), and a bundled list of well-known packages for lookalike detection. Responses cache under ~/.cache/pkgverdict (6h metadata, 1h advisories); delete that directory to force fresh checks.
Distribution
pkgverdict has exactly two distribution channels, and both are intentional:
- GHCR: the container image
ghcr.io/cloudcorprecords/pkgverdict, built and pushed by the Publish container workflow on each release. - The MCP Registry: the listing
io.github.CloudCorpRecords/pkgverdict, whoseserver.jsoncarries an OCI package only, pointing at that same GHCR image.
There is no npm package, and that is the model, not a missing step. npx pkgverdict returning 404 is expected. The unscoped name in package.json exists to build the image and version the CLI; the package is marked private so a stray npm publish from a checkout fails fast instead of claiming the name, and the old template workflow that ran npm publish on every release now sits disabled at .github/workflows/publish.yml, printing this model instead of publishing. Publishing to npm later would be a maintainer decision needing a scoped name and a token with rights to it. These facts are pinned by test/distribution.test.ts, so the residue cannot quietly come back.
Run it with Docker
The GHCR image is the primary distribution: ghcr.io/cloudcorprecords/pkgverdict.
Use it as a stdio MCP server:
Any CLI command can be passed after the image name instead of the default mcp argument:
MCP server
Point your MCP client at Docker (stdio):
Two tools: check_package (verdict on one package) and scan_dependencies (worst-first verdicts for a project's package.json).
Development
License
MIT.
来源:README.md,提交 79181b0
工具
0版本历史
2- v0.1.1最新Oct 23, 2026
- v0.1.0Oct 18, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分