Trivy

by aquasecurity
MIT License
10
Integrations
  • 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のプラグイン管理システムを使用することができます。

trivy plugin install mcp

プラグインの最新バージョンがインストールされます

プラグインの起動

これでプラグインを起動する準備が整いました。これにより、CursorまたはVSCodeが操作できるMCPサーバーが起動します。ここではVSCodeを例に説明します。

trivy mcp

オプション

Trivyでサポートされている通常のグローバルフラグに加えて、MCPサーバーでは以下のフラグが利用可能です。今のところ、これらのフラグを指定する必要はありません。

口論オプションデフォルト説明
--transport / -tssestdiostdioMCPサーバーのトランスポートを実行する
--port / -p23456MCPサーバーを起動するポート
--trivy-binaryオプションでコアコードの代わりに使用するバイナリを提供する

VSCode で MCP サーバーを構成する

さて、エージェントとして使用するためにVSCodeでサーバーを構成する必要があります。

前提条件

  • VS Code バージョン 1.99.0 以上

プラグインの設定

Trivy mcp を自動起動するように設定したり、sse http エンドポイントを使用することもできます。

stdioの設定
  1. VS CodeでF1を押します
  2. "Preferences: Open User Settings (JSON)"を検索します
  3. "mcp"ブロックを見つけるか作成し、以下のようにサーバーを追加します。
    "mcp": { "servers": { "Trivy MCP": { "command": "trivy", "args": [ "mcp", "-t", "stdio" ] } } }
  4. 保存すると、サーバーStartための注釈が表示されます
SSE HTTP の設定
  1. MCPサーバーを起動する
    trivy mcp -t sse -p 23456
  2. VS CodeでF1を押します
  3. "Preferences: Open User Settings (JSON)"を検索します
  4. "mcp"ブロックを見つけるか作成し、以下のようにサーバーを追加します。
    "mcp": { "servers": { "Trivy SSE": { "type": "sse", "url": "http://localhost:23456/sse" } } }
  5. 保存すると、サーバーStartための注釈が表示されます

いくつかのサンプルプロンプト

[!重要] チャットウィンドウがAskではなくAgentモードになっていることを確認してください。

ファイルシステムのスキャン

オープンプロジェクトなら、ぜひ試してみてはいかがでしょうか。

Are there any vulnerabilities or misconfigurations in this project?

画像スキャン

画像について質問して情報を得ることができます

Does the python:3.12 image have any vulnerabilities?

リポジトリスキャン

リモートリポジトリについて調べる

What are the vulnerabilities in github.com/aquasecurity/trivy-ci-test

Related MCP Servers

  • -
    security
    A
    license
    -
    quality
    Provides Trivy security scanning capabilities through a standardized interface, allowing users to scan projects for vulnerabilities and automatically fix them by updating dependencies.
    Last updated -
    2
    Python
    MIT License
    • Apple
  • -
    security
    F
    license
    -
    quality
    An 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
  • A
    security
    F
    license
    A
    quality
    A 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 -
    5
    7
    JavaScript
    • Apple
  • -
    security
    F
    license
    -
    quality
    Fastly
    Last updated -
    JavaScript

View all related MCP servers

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/aquasecurity/trivy-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server