npx-vibe

io.github.Devrajsinh-Jhala由 GitHub 账号 Devrajsinh-Jhala 发布v3.0.0更新于 Oct 24, 2026

Read-only npm package and project dependency preflight tools for AI applications.

已验证STDIO仅桌面开发者工具安全与监控

概览

AI 生成的概览

本地 stdio MCP 服务器,让助手在运行任何包代码之前审查 npm 包和锁定依赖树的风险。

可以做什么
扫描单个公开 npm 包规格,给出「继续」「谨慎」或「阻止」的结论及证据,且不执行该包代码。审查项目的锁定依赖树,可限定为直接依赖或包含开发依赖。针对 lockfile 标记有安装脚本的依赖,给出只读的安装脚本权限建议。列出支持的 AI 审查提供方及其配置。结果以 JSON 文本和结构化内容返回,审查不完整或失败会标记为错误。
适用场景
适合在助手即将安装、运行或添加 npm 依赖之前,先做一次有证据的预检。也适合需要机器可读决策后再继续的 CI 或智能体工作流。
运行要求
通过 npx 作为本地进程运行,需要 Node.js 20 或更高版本以及访问 npm registry。默认扫描不需要账号、AI 模型或 API 密钥。项目扫描需要带 packages 映射的 package-lock.json(lockfile v2/v3)。可选的 AI 审查需要在服务器环境中配置 GEMINI_API_KEY、OPENAI_API_KEY 或 ANTHROPIC_API_KEY 等提供方密钥,或使用本地 Ollama 端点。
安装前请注意
「继续」结论明确不构成安全保证;该工具不是沙箱、杀毒引擎或全面审计,可能漏掉仅在运行时、混淆或传递依赖中的行为。单独的 run 命令会在无沙箱的情况下执行包,并可能安装未经审查的传递依赖。可选的在线 AI 审查会把选定的包源码和有限元数据发送给所选提供方。提供方密钥从服务器环境读取,绝不通过工具参数传入。项目声明 3.0.0 是最终计划版本,维护已结束,不再提供安全补丁。

安装

在 SourceWeft 中

  1. 打开 控制台中的 npx-vibe,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

npx-vibe

[npm version] [npm downloads] [CI] [Node.js] [MIT]

Evidence-first npm package reviews before code executes. For developers, coding agents, MCP clients, and CI.

npx-vibe resolves registry packages, downloads and verifies their tarballs without running package code, reads bounded install-time and executable source, and reports Proceed, Caution, or Block with evidence.

3.0.0 is the final planned release. Active maintenance has ended; no further compatibility updates or security patches are scheduled. The package remains available under MIT. Read the maintenance policy and 3.0 migration guide before integrating it.

Website and demos · npm package · Changelog · npm 12 guide

Quick start

Requires Node.js 20 or newer and access to the npm registry. No account, AI model, or API key is needed for the default scan.

bash
# Review only — does not execute the target packagenpx --yes [email protected] [email protected]
# Inspect install-time behaviornpx --yes [email protected] esbuild
# Review a project's locked production dependency treenpx --yes [email protected] project
# Include development dependenciesnpx --yes [email protected] project --include-dev

The outer npx installs and runs npx-vibe itself; the review does not execute the target package. You can also install the CLI globally:

bash
npm install --global [email protected]npx-vibe [email protected]

Scanning is the default. Execution requires the separate run command:

bash
npx --yes [email protected] run cowsay -- hellonpx --yes [email protected] run --bin tsc typescript -- --version

A Proceed result permits the requested run; Caution asks for confirmation in an interactive terminal and otherwise exits without executing. Block prevents execution unless deliberately overridden with --force. Install scripts are ignored by default. Running is not sandboxed and may install unreviewed transitive dependencies; scan the project separately when that wider scope matters.

What is reviewed?

  • Exact package versions, registry metadata, and tarball integrity.
  • Install hooks, bin entry points, and reachable relative source imports within review limits.
  • Signals such as credential reads combined with network calls, downloaded payload execution, suspicious writes, and obfuscation.
  • Known vulnerability advisories from OSV, when available.
  • Repository activity, maintainers, package history, and download counts as context — not proof of trust and not a score discount.
  • Optional model interpretation, with source matching for AI findings.
  • Local integrity-keyed review history, without skipping fresh verification.

The archive is parsed in memory rather than extracted or executed. File selection and source analysis are bounded; the tool does not review every source file or recursively inspect all dependencies of a single package.

Verdicts and automation

ExitMeaningAgent action
0Proceed: no blocking signal in the reviewed scopecontinue
2Caution: evidence needs reviewreview
3Block: high-risk findingsstop
1Error or incomplete requested reviewretry

A completed Proceed scan is not a safety guarantee. An unavailable OSV lookup is shown as unavailable rather than “none found”; OSV is supplementary and its outage does not itself fail a package scan. --no-advisories explicitly disables it.

Project coverage: no silent fallback

Default project scans need package-lock.json with a packages map (npm lockfile v2/v3) for nonempty projects. Generate it without running install scripts:

bash
npm install --package-lock-only --ignore-scriptsnpx --yes [email protected] project

No lockfile? Choose a narrower review explicitly:

bash
npx --yes [email protected] project --direct-only

Workspace/local links, Git sources, aliases, and foreign-registry artifacts are outside this registry-only review boundary. They are reported as skipped, not replaced with a similarly named public package. A skipped package, package limit, or scan failure makes the result incomplete (exit 1). The default limit is 500 packages; --max-packages can raise it to 5,000.

Both registry integrity and any recorded lockfile integrity must match the downloaded artifact. Development dependencies are excluded unless --include-dev is selected.

npm install-script permissions

npx-vibe can review dependencies flagged by the lockfile as having install scripts and recommend approve, review, or deny:

bash
npx --yes [email protected] approve-scriptsnpx --yes [email protected] approve-scripts --all

Recognized local build commands may be approved; network/shell behavior, implicit native builds, and partial source reads require review. High-risk findings are denied. Recommendations are not a guarantee that a build tool or every file it consumes is safe.

To record only unambiguous decisions:

bash
npx --yes [email protected] approve-scripts --write

New allowScripts entries are always pinned to the reviewed version. Human-review entries are never silently approved, and incomplete reviews cannot write permissions. Existing broad permissions are preserved: use --all and remove or narrow them yourself. --pin remains a compatibility alias.

Reading and reviewing works with npm 10/11 as well as npm 12; enforcement of allowScripts belongs to compatible npm versions. See the npm 12 guide.

Coding agents

--agent emits the schema 3 decision envelope, disables local history writes, and rejects execution and permission-writing flags:

bash
npx --yes [email protected] --agent [email protected]npx --yes [email protected] project --agent --include-devnpx --yes [email protected] approve-scripts --agent

An abbreviated example (the full result also contains the report):

json
{  "schemaVersion": 3,  "kind": "package-scan",  "status": "complete",  "decision": {    "verdict": "proceed",    "riskScore": 0,    "action": "continue",    "exitCode": 0,    "mayContinue": true  },  "coverage": {    "scope": "package",    "complete": true,    "requested": 1,    "scanned": 1,    "skipped": 0,    "failed": 0,    "reasons": []  }}

Require schema 3, status === "complete", coverage.complete === true, and decision.action === "continue" before continuing an already authorized workflow. On review, ask a person; on stop, do not execute; on retry, resolve missing coverage or errors first. Subject coverage counts do not imply exhaustive source-file coverage.

The removed decision.safeToExecute field is intentionally not replaced with another safety promise.

Install the portable Agent Skill:

bash
npx skills add Devrajsinh-Jhala/NPM-Vibe-check --skill npx-vibe -g

Agent Skill · Agent-readable documentation

MCP support

Run the local, zero-dependency stdio MCP server:

bash
npx --yes [email protected] npx-vibe-mcp

Example client configuration (your client's configuration format may differ):

json
{  "mcpServers": {    "npx-vibe": {      "command": "npx",      "args": ["--yes", "[email protected]", "npx-vibe-mcp"]    }  }}

Tools:

ToolPurpose
scan_packageReview one public npm package spec
scan_projectReview a locked dependency tree; directOnly explicitly narrows scope
approve_scriptsRead-only install-script permission recommendations
list_providersList supported providers and configuration; not live model discovery

Tools are read-only, schema-backed, and return both JSON text and structured content. Incomplete/error results set MCP isError: true. Protocol support includes 2025-11-25; tool results use schema 3. Credentials are supplied through the server environment, never through tool arguments.

The canonical MCP Registry identity is io.github.Devrajsinh-Jhala/npx-vibe. npm and MCP Registry publication are separate; inspect the registry entry for its available version.

[Illustrative schema 3 MCP review]

The animation illustrates a Caution review flow. It is an abbreviated result, not a live provider call.

Optional AI review

AI is disabled by default, even when provider-specific keys exist in your environment. Explicit opt-in enables review when heuristic findings justify it.

Online providers include Gemini, OpenAI, Anthropic, OpenRouter, Groq, Together, and custom OpenAI-compatible endpoints. There is no frozen “latest model” list: choose an exact model ID that is available to your account.

bash
npx --yes [email protected] --modelsnpx --yes [email protected] --ai online --provider gemini --model <model-id> esbuildnpx --yes [email protected] --ai ollama --model <installed-model> esbuild

Replace angle-bracket placeholders; they are not literal shell arguments. Configure provider-specific keys such as GEMINI_API_KEY, OPENAI_API_KEY, or ANTHROPIC_API_KEY in your environment. Explicit --ai off wins over key shortcuts. The dedicated NPX_VIBE_API_KEY and --api-key deliberately opt in; prefer environment variables so secrets do not enter shell history.

Ambiguous direct keys require --provider; they are not silently forwarded to another provider. Custom endpoints additionally require --api-url (the full chat-completions endpoint) and an exact --model. Provider failures are redacted and reported without replacing the deterministic review.

Online review transmits selected package source and bounded metadata to the chosen provider. It does not upload your environment or local project files. Local Ollama review keeps that material on your configured local endpoint. AI is advisory, not a trust authority.

GitHub Actions

Pin both the Action and scanner release:

yaml
- uses: actions/checkout@v6- uses: actions/setup-node@v6  with:    node-version: 24- uses: Devrajsinh-Jhala/[email protected]  with:    version: '3.0.0'    command: project    include-dev: 'true'    fail-on: caution

The Action uses an isolated temporary installation, emits annotations and a job summary, and exposes verdict and exit-code. fail-on accepts block (default), caution, or never; errors and incomplete coverage always fail. AI and local history writes are disabled for the Action. A commit SHA provides a stronger pin than a mutable tag.

Marketplace listing · Action inputs

Limits and support

npx-vibe is not a sandbox, antivirus engine, exhaustive audit, or replacement for dependency controls. It may miss conditional, runtime-only, delayed, obfuscated, or transitive behavior and can produce false positives. Archive inspection has size, file-count, and source-selection limits. Network metadata and advisory services can be unavailable or stale.

If you run a package after scanning, npm performs installation separately; a review is not an atomic install or an attestation of everything executed. Provider APIs, model availability, npm behavior, and the MCP ecosystem may change after this frozen release.

Security boundary · Maintenance and forks · Migration

Development

bash
npm install --ignore-scriptsnpm run verifynpm run smoke:packnpm run site:preview

The test suite covers verdicts, archive limits, provider routing and redaction, locked dependency scanning, script permissions, agent schemas, and MCP transport. Packed-artifact checks exercise both CLI and MCP entry points.

License

MIT · Built by Devrajsinh Jhala.

来源:README.md,提交 e4a8d46

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

2
  1. v3.0.0最新Oct 2, 2026
  2. v1.6.0Sep 16, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分