Enables scanning of GitHub repositories for vulnerabilities and security issues by connecting to repositories like 'github.com/aquasecurity/trivy-ci-test'.
Provides vulnerability scanning capabilities for various sources including filesystems, container images, and code repositories, allowing users to identify vulnerabilities and misconfigurations through an MCP server interface.
Trivy MCP 服务器插件 -实验性 WIP
此插件启动一个 MCP 服务器,可用作 Trivy 的网关
[!IMPORTANT] 这是 MCP 服务器的早期开发阶段,因此您应该假设目前情况不会很好
安装插件
要安装插件,您可以使用 Trivy 的插件管理系统
将安装最新版本的插件
启动插件
现在您可以启动插件了,这将启动一个可与 Cursor 或 VSCode 交互的 MCP 服务器。目前,本指南将主要介绍 VSCode。
选项
除了 Trivy 支持的常用全局标志外,MCP 服务器还提供了以下标志。目前,您无需指定任何标志
争论 | 选项 | 默认 | 描述 |
---|---|---|---|
--transport / -t | sse stdio | stdio | MCP Server 运行的传输 |
--port / -p | 23456 | 启动 MCP 服务器的端口 | |
--trivy-binary | 可选择提供二进制文件来代替核心代码 |
在 VSCode 中配置 MCP 服务器
现在,我们需要在 VSCode 中配置服务器以开始用作代理
先决条件
= VS Code 版本 1.99.0
配置插件
您可以配置 Trivy mcp 自行启动或使用 sse http 端点
配置 stdio
- 在 VS Code 中,按
F1
- 搜索
"Preferences: Open User Settings (JSON)"
- 查找或创建
"mcp"
块并添加服务器,如下所示 - 保存后,将出现一条注释以
Start
服务器
配置 SSE HTTP
- 启动 MCP 服务器
- 在 VS Code 中,按
F1
- 搜索
"Preferences: Open User Settings (JSON)"
- 查找或创建
"mcp"
块并添加服务器,如下所示 - 保存后,将出现一条注释以
Start
服务器
一些示例提示
确保聊天窗口处于
Agent
模式,而不是Ask
文件系统扫描
有了开放的项目,何不尝试一下;
图像扫描
您可以询问图片以获取信息
存储库扫描
了解远程存储库
Related MCP Servers
- -securityAlicense-qualityProvides Trivy security scanning capabilities through a standardized interface, allowing users to scan projects for vulnerabilities and automatically fix them by updating dependencies.Last updated -2PythonMIT License
- -securityFlicense-qualityAn interface that enables Claude to interact with Spline 3D design tool, allowing operations like exporting scenes, importing models, and creating animations through natural language commands.Last updated -JavaScript
- AsecurityFlicenseAqualityA model context protocol server that allows interaction with TriliumNext Notes, providing tools to create, search, retrieve, update, and delete notes through natural language commands.Last updated -51JavaScript
- JavaScript