SafeDep Vet MCP

io.github.safedep由 GitHub 帳號 safedep 發布v1.20.0更新於 Oct 24, 2026

Protect your AI agents and IDEs from malicious open-source packages.

概覽

AI 產生的概覽

SafeDep Vet MCP 讓助理呼叫 vet 掃描器,檢查相依套件、CI 工作流程與 AI 代理設定中的惡意套件和漏洞。

可以做什麼
  • 掃描目錄、git 儲存庫、容器映像、SBOM 或單一套件,找出惡意套件、已知漏洞與高風險 GitHub Actions 工作流程
  • 讀取 npm、PyPI、Go、Maven、Gradle、Cargo、RubyGems、NuGet、Packagist、Pub 等生態系的鎖定檔與清單,以及 AI 代理設定,但不安裝也不執行它們
  • 以 CEL 撰寫政策即程式碼規則來決定掃描何時失敗,並可在已儲存的掃描上測試規則
  • 產生 SARIF 報告,以及記錄 AI 函式庫與加密演算法使用情況的 CycloneDX xBOM 與 CBOM 清單
  • 稽核開發機上的 AI 工具、MCP 伺服器、編輯器擴充套件與全域 npm 套件
適用情境
適合在相依套件、拉取請求變更或 CI 工作流程進入正式環境前,讓助理做安全檢查,或依惡意軟體與漏洞發現來阻擋建置。也適合盤點 AI 與加密使用情況,或稽核機器上安裝的工具。
執行需求
以本機 stdio 程序執行,以容器映像(ghcr.io/safedep/vet)透過 Docker 啟動;README 另列 Homebrew、mise 與 Go 安裝方式。未宣告需要帳號、API 金鑰或環境變數。需要網路存取以查詢 SafeDep 威脅資料。
安裝前請注意
會把每個套件的身分資訊(生態系、名稱與版本)傳送給 SafeDep 以取得資料,但不傳送原始碼與檔案內容。掃描會讀取專案檔案,端點稽核還會列舉機器上安裝的工具。政策規則可能使建置失敗,使用前應先審閱。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 SafeDep Vet MCP,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

[SafeDep vet]

Find malicious packages, vulnerabilities and risky CI workflows before they reach production.

[!NOTE] This branch is vet v2, in alpha. vet v1 is on main and stays the latest release. The v2.0.0 release notes map each v1 command and flag to v2.

Why vet

Your dependencies, your GitHub Actions workflows and your AI agent configs run code that you did not write. vet finds the risk in them.

  • Malicious packages. vet checks each package against SafeDep Threat Intel. Threat Intel analyzes new package versions when the registries publish them.
  • Known vulnerabilities, with the fixed version to upgrade to.
  • Risky workflows. Dangerous triggers, template injection, exposed secrets and actions with no pinned commit SHA.
  • Lockfile tampering and fresh versions. Entries from an untrusted registry, and versions inside the cooldown window.
  • Policy as code. Rules in CEL decide when a scan fails. You can test a rule on a saved scan.
  • AI and crypto inventory. vet lists the AI libraries and the crypto algorithms that your code calls, and writes a CycloneDX xBOM and CBOM.

vet needs no account and sends no source code.

Quick start

bash
brew install --cask safedep/tap/vet@edgevet scan

[vet scan finds a malicious package, vulnerabilities and workflow injection]

bash
vet scan --fail-on high                         # exit 1 on a high or critical findingvet scan --base-ref origin/main --fail-on high  # report only what a pull request changesvet report show --report sarif=vet.sarif        # write SARIF from the saved scan, with no new scan

Install

ChannelCommand
Homebrewbrew install --cask safedep/tap/vet@edge
misemise use -g 'github:safedep/vet[prerelease=true]@2'
Gogo install github.com/safedep/vet/v2/cmd/vet@latest
Containerdocker run --rm -v "$PWD:/src" -w /src ghcr.io/safedep/vet:v2-latest scan

mise installs a release one day after its publication. install.md has the command for the newest build, the release binaries and the build attestations.

What vet scans

TargetExample
A directory (the default)vet scan, vet scan ./service
A git repositoryvet scan https://github.com/safedep/vet
A container imagevet scan oci://alpine:3.20, vet scan image.tar
An SBOM (CycloneDX or SPDX)vet scan sbom.cdx.json
One packagevet scan pkg:npm/[email protected]
The tools on this machinevet endpoint audit

vet reads the lockfiles and manifests of npm, PyPI, Go, Maven, Gradle, Cargo, RubyGems, NuGet, Packagist, Pub and more. It also reads the GitHub Actions workflows and the AI agent configs of the target. It does not install or run any of them. Controls turn this data into findings. See controls.md.

Policy

A policy decides when a scan fails. Save this file as vet-policy.yml:

yaml
version: 2rules:  - id: no-malware    description: A malicious or suspicious package fails the build.    when: finding.family == "malware"    action: fail  - id: no-workflow-injection    when: finding.control_id in ["dangerous-trigger", "template-injection"]    action: fail  - id: no-critical-vulnerability    when: finding.control_id == "vulnerability" && finding.severity == "critical"    action: fail  - id: new-dependency-age    description: A pull request cannot add a version that is less than 14 days old.    when: package.change == "ADDED" && has(package.days_since_publish) && package.days_since_publish < 14    action: failsuppressions:  - purl: pkg:npm/[email protected]    reason: The upgrade to 4.18.1 is in pull request 42.    expires: 2026-12-31

Test it on the last scan, with no new scan. Then apply it to a pull request:

bash
vet report show last --policy vet-policy.ymlvet scan --base-ref origin/main --policy vet-policy.yml

After its expiry date, the suppression no longer hides the finding. Read policy.md for the rule fields, more rules and the Agent Skill that writes a policy for you.

Use cases

  • Pull request check. The vet GitHub Action comments on a pull request that adds a package, a workflow or a finding, and fails the check on an attack. vet ci init adds it to a repository.
  • CI gate. Exit codes, SARIF for GitHub code scanning, GitLab and Bitbucket reports. See ci.md.
  • Pull request review. --base-ref reports only the packages and workflows that a change adds.
  • xBOM and CBOM. A CycloneDX 1.7 inventory of the AI libraries and the crypto that your code uses. See inventory.md.
  • AI agents. vet finds Claude Code and other agents, and then writes JSON and never prompts.
  • Endpoint audit. vet endpoint audit lists the AI tools, MCP servers, editor extensions and global npm packages on a developer machine, and checks them for malware.

Documentation

PageRead it for
InstallAll channels and how to verify a release
CommandsEvery command, its flags and its exit codes
ControlsThe controls and their options
PolicyRules, suppressions and the gate
OutputReport formats, saved scans and configuration
CI and AI agentsGitHub Actions, GitLab, Bitbucket and agent mode
InventoryCode usage, AI and crypto, xBOM and CBOM

Privacy

vet sends the identity of each package (its ecosystem, name and version) to SafeDep to get the data about it. vet sends no source code and no file content.

Community

vet also runs in the cloud. SafeDep Cloud runs vet on your repositories, with no infrastructure to manage.

[Contributors to vet]

來源:README.md,提交 b62453f

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

3
  1. v1.20.0最新Oct 7, 2026
  2. v1.19.1Sep 16, 2026
  3. v1.19.0Sep 16, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分