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 サーバープラグイン -実験的作業中
このプラグインは、Trivyへのゲートウェイとして使用できるMCPサーバーを起動します。
[!重要] これは MCP サーバーの開発の初期段階であるため、現時点ではうまく動作しないことを前提としてください。
プラグインのインストール
プラグインをインストールするには、Trivyのプラグイン管理システムを使用することができます。
プラグインの最新バージョンがインストールされます
プラグインの起動
これでプラグインを起動する準備が整いました。これにより、CursorまたはVSCodeが操作できるMCPサーバーが起動します。ここではVSCodeを例に説明します。
オプション
Trivyでサポートされている通常のグローバルフラグに加えて、MCPサーバーでは以下のフラグが利用可能です。今のところ、これらのフラグを指定する必要はありません。
口論 | オプション | デフォルト | 説明 |
---|---|---|---|
--transport / -t | sse 、 stdio | stdio | MCPサーバーのトランスポートを実行する |
--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
ための注釈が表示されます
いくつかのサンプルプロンプト
[!重要] チャットウィンドウが
Ask
ではなくAgent
モードになっていることを確認してください。
ファイルシステムのスキャン
オープンプロジェクトなら、ぜひ試してみてはいかがでしょうか。
画像スキャン
画像について質問して情報を得ることができます
リポジトリスキャン
リモートリポジトリについて調べる
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 -57JavaScript
- JavaScript