SafeDep Vet MCP

平台与服务

by safedep

为 AI agents 和 IDEs 提供防护,识别恶意开源软件包,降低依赖引入与开发流程中的安全风险。

给 AI agents 和 IDEs 加一道依赖安全闸,能提前识别恶意开源包,把风险拦在引入和开发流程之前。

1.1kGitHub

什么是 SafeDep Vet MCP?

为 AI agents 和 IDEs 提供防护,识别恶意开源软件包,降低依赖引入与开发流程中的安全风险。

README

<p align="center"> <a href="https://safedep.io"> <picture> <source srcset="docs/assets/vet-banner-dark.svg" media="(prefers-color-scheme: dark)"> <source srcset="docs/assets/vet-banner-light.svg" media="(prefers-color-scheme: light)"> <img src="docs/assets/vet-banner-light.svg" alt="SafeDep vet" width="100%"> </picture> </a> </p> <p align="center"> <strong>Find malicious packages, vulnerabilities and risky CI workflows before they reach production.</strong> </p> <div align="center">

Release Build OpenSSF Scorecard License Discord

Install • Docs • Commands • Policy • Discord

</div>

[!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@edge
vet scan
<p align="center"> <img src="docs/assets/vet-scan.png" alt="vet scan finds a malicious package, vulnerabilities and workflow injection" width="100%"> </p>
bash
vet scan --fail-on high                         # exit 1 on a high or critical finding
vet scan --base-ref origin/main --fail-on high  # report only what a pull request changes
vet 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/express@4.19.2
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: 2
rules:
  - 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: fail
suppressions:
  - purl: pkg:npm/lodash@4.17.20
    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.yml
vet 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.

<a href="https://github.com/safedep/vet/graphs/contributors"> <img src="https://contrib.rocks/image?repo=safedep/vet" alt="Contributors to vet" /> </a>

常见问题

SafeDep Vet MCP 是什么?

为 AI agents 和 IDEs 提供防护,识别恶意开源软件包,降低依赖引入与开发流程中的安全风险。

相关 Skills

MCP构建

by anthropics

Universal
热门

聚焦高质量 MCP Server 开发,覆盖协议研究、工具设计、错误处理与传输选型,适合用 FastMCP 或 MCP SDK 对接外部 API、封装服务能力。

✎ 想让 LLM 稳定调用外部 API,就用 MCP构建:从 Python 到 Node 都有成熟指引,帮你更快做出高质量 MCP 服务器。

平台与服务
未扫描176.4k

Slack动图

by anthropics

Universal
热门

面向Slack的动图制作Skill,内置emoji/消息GIF的尺寸、帧率和色彩约束、校验与优化流程,适合把创意或上传图片快速做成可直接发送的Slack动画。

✎ 帮你快速做出适配 Slack 的动图,内置约束规则和校验工具,少踩上传与播放坑,做表情包和演示都更省心。

平台与服务
未扫描176.4k

接口测试套件

by alirezarezvani

Universal
热门

扫描 Next.js、Express、FastAPI、Django REST 的 API 路由,自动生成覆盖鉴权、参数校验、错误码、分页、上传与限流场景的 Vitest 或 Pytest 测试套件。

✎ 帮你把API与集成测试自动化跑顺,减少回归漏测;能力全面,尤其适合复杂接口场景的QA团队。

平台与服务
未扫描26.0k

相关 MCP Server

Slack 消息

编辑精选

by Anthropic

热门

Slack 是让 AI 助手直接读写你的 Slack 频道和消息的 MCP 服务器。

✎ 这个服务器解决了团队协作中需要 AI 实时获取 Slack 信息的痛点,特别适合开发团队让 Claude 帮忙汇总频道讨论或发送通知。不过,它目前只是参考实现,文档有限,不建议在生产环境直接使用——更适合开发者学习 MCP 如何集成第三方服务。

平台与服务
89.7k

by netdata

热门

io.github.netdata/mcp-server 是让 AI 助手实时监控服务器指标和日志的 MCP 服务器。

✎ 这个工具解决了运维人员需要手动检查系统状态的痛点,最适合 DevOps 团队让 Claude 自动分析性能数据。不过,它依赖 NetData 的现有部署,如果你没用过这个监控平台,得先花时间配置。

平台与服务
80.0k

by d4vinci

热门

Scrapling MCP Server 是专为现代网页设计的智能爬虫工具,支持绕过 Cloudflare 等反爬机制。

✎ 这个工具解决了爬取动态网页和反爬网站时的头疼问题,特别适合需要批量采集电商价格或新闻数据的开发者。不过,它依赖外部浏览器引擎,资源消耗较大,不适合轻量级任务。

平台与服务
72.9k

评论