コンテンツにスキップ

JetBrains AI / Junie MCP

Aikido MCP プラグインは、Aikidoのセキュリティエンジンを AI コーディングツールに接続します。AI が生成したコードが作成されると同時に、脆弱性やハードコードされたシークレットを自動的にスキャンします。

AI アシスタントは自身の出力をレビューできますが、そのレビューは完全ではありません。Aikido は、実績あるスキャンルールで生成されたすべてのスニペットをチェックする、信頼性の高い一貫したセキュリティレイヤーを追加します。

Aikido MCP を使う理由

  • コミット前に、AI が生成したすべてのスニペットに対して決定論的かつ独立したセキュリティチェックを実施
  • AI 支援ワークフローにおける脆弱性やハードコードされたシークレットの即時検出と修正
  • リアルタイムフィードバックにより、AI 駆動の開発をデフォルトでより安全に

1. Aikido MCP サーバーを Jetbrains IDE の設定に追加する

Section titled “1. Aikido MCP サーバーを Jetbrains IDE の設定に追加する”

IDE で Settings | Tools | AI Assistant | Model Context Protocol (MCP) を開きます。

Model Context Protocol (MCP) 設定ページで、 Add をクリックして新しい MCP サーバー設定を追加します。

New MCP Server ダイアログで、MCP サーバーへの接続方法を選択し、JSON 設定を入力します。

Terminal window
{
"mcpServers": {
"aikido": {
"command": "npx -y @aikidosec/mcp@latest",
"args": [],
"environment": {}
}
}
}

初回利用時、AI アシスタントに aikido_login を実行するよう依頼してください。ブラウザリンクが返されるので、そのリンクをたどって Aikido にログインしてください。ログインが完了すると、トークンは安全に保存されます。

以下のスキルまたは指示を追加して、Aikido MCP を使用するようエージェントの指示を調整してください。

---
name: aikido-security
description: Enforce mandatory security scanning for all code changes
license: MIT
compatibility: opencode
metadata:
audience: developers
security: aikido
---
## Purpose
Ensure that all first-party code is scanned for security issues whenever code is written or changed.
## Rules
- Always run **aikido_full_scan** on all newly written, generated, added, or modified first-party code.
- Always provide the complete file contents to the scanner.
- If any security issues are reported, apply the fixes using the remediation guidance from Aikido.
- Run **aikido_full_scan** again after fixes to confirm that no issues remain and no new ones were introduced.
- Repeat the fix and rescan cycle until the scan passes with zero issues.
- If the Aikido MCP server is not installed or not running, inform the user to install it using the official setup guide at
https://help.aikido.dev/ide-plugins/aikido-mcp

Aikido MCP が Jetbrains IDE で利用可能になりました

コードのスキャン

  • 「Aikido を使ってこのファイルのセキュリティ問題をスキャンして」
  • 「コミット前にシークレットがないか確認するため、ステージング済みの変更に Aikido スキャンを実行して」
  • 「今編集したファイルを Aikido でスキャンし、payments-api リポジトリに紐付けて」

リポジトリ別の問題確認

  • payments-api の重大な Aikido の問題をすべて見せて」
  • frontend-web の Aikido による漏洩シークレットを一覧表示して」
  • api-gateway で Aikido が検出したオープンソースの脆弱性は何?」
  • infra-core の Aikido による SAST と IaC の問題を見せて」

クラウド、VM、コンテナ別の問題確認

  • prod-aws の Aikido クラウドの問題をすべて一覧表示して」
  • web-server-01 の Aikido によるマルウェア検出結果を見せて」
  • nginx-proxy コンテナで実行されているサポート終了ソフトウェアは Aikido によると何?」
  • 「Aikido で example.com のサーフェスモニタリングの問題を見せて」

組み合わせワークフロー

  • 「Aikido で現在の変更をスキャンし、同じリポジトリの既存の重大な問題を見せて」
  • 「この PR を Aikido でチェックし、リポジトリ内の未解決の SAST の問題と比較して」