
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 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 端點。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 npx-vibe,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
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.
The outer npx installs and runs npx-vibe itself; the review does not execute the target package. You can also install the CLI globally:
Scanning is the default. Execution requires the separate run command:
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
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:
No lockfile? Choose a narrower review explicitly:
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:
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:
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:
An abbreviated example (the full result also contains the report):
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:
Agent Skill · Agent-readable documentation
MCP support
Run the local, zero-dependency stdio MCP server:
Example client configuration (your client's configuration format may differ):
Tools:
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.
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:
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
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版本歷史
2- v3.0.0最新Oct 2, 2026
- v1.6.0Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分
