> For the complete documentation index, see [llms.txt](https://help.aikido.dev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.aikido.dev/docs/docs-ja/ai-totsru/aikido-mcp/jetbrains-ai.md).

# JetBrains AI / Junie MCP

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

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

**なぜ Aikido MCP を使うのか**

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

## インストール

{% stepper %}
{% step %}
**JetBrains IDE の設定に Aikido MCP サーバーを追加する**

IDE で Settings | Tools | AI Assistant | Model Context Protocol (MCP) に移動します。

{% hint style="info" %}
[詳細は JetBrains のドキュメントをご覧ください](https://www.jetbrains.com/help/ai-assistant/mcp.html)
{% endhint %}

Model Context Protocol (MCP) の設定ページで、 ![](https://resources.jetbrains.com/help/img/idea/2025.3/app-client.expui.general.add.svg) 新しい MCP サーバー構成を追加するには \[Add] をクリックします。

［New MCP Server］ダイアログで、MCP サーバーへの接続方法を選択し、JSON 構成を指定します：

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

{% endstep %}

{% step %}
**認証**

初回使用時には、AI アシスタントに次を実行するよう依頼します `aikido_login`。ブラウザーのリンクが返されるので、それに従って Aikido にログインします。ログインが完了すると、トークンは安全に保存されます。
{% endstep %}

{% step %}
次のスキルまたは指示を追加して、Aikido MCP を使用するようエージェントの指示を調整します。

```
---
name: aikido-security
description: すべてのコード変更に対して必須のセキュリティスキャンを強制する
license: MIT
compatibility: opencode
metadata:
  audience: 開発者
  security: aikido
---

## 目的

すべてのファーストパーティコードが、コードの記述や変更のたびにセキュリティ上の問題がないかスキャンされるようにします。

## ルール

- 新しく書かれた、生成された、追加された、または変更されたファーストパーティコードには、必ず **aikido_full_scan** を実行します。
- スキャナーには常にファイルの完全な内容を提供します。
- セキュリティ上の問題が報告された場合は、Aikido の修正ガイダンスに従って対処します。
- 修正後に再度 **aikido_full_scan** を実行し、問題が残っておらず、新たな問題も発生していないことを確認します。
- スキャンが問題ゼロで通過するまで、修正と再スキャンのサイクルを繰り返します。
- Aikido MCP サーバーがインストールされていない、または実行されていない場合は、ユーザーに公式セットアップガイドでインストールするよう案内します：  
  https://help.aikido.dev/ide-plugins/aikido-mcp
```

{% endstep %}

{% step %}
**完了**

Aikido MCP が JetBrains IDE で利用可能になりました
{% endstep %}
{% endstepper %}

{% hint style="info" %}
ブラウザでのログインができない CI/CD やヘッドレス環境については、次を参照してください [トークン認証](/docs/docs-ja/ai-totsru/aikido-mcp/token-authentication.md).
{% endhint %}

**コードをスキャン中**

* 「Aikidoでこのファイルをセキュリティ上の問題についてスキャンしてください」
* 「コミットする前に、ステージング済みの変更をAikidoでスキャンしてシークレットを確認してください」
* 「Aikidoで今編集したファイルをスキャンして、その `payments-api` リポジトリ」

**リポジトリ別に問題を確認**

* 「のすべての重大なAikidoの問題を表示してください `payments-api`"
* 「にある漏えいしたシークレットをすべて一覧表示してください `frontend-web` 「Aikidoで」
* 「Aikidoは `api-gateway`?"
* 「のSASTおよびIaCの問題を表示してください `infra-core` 「Aikidoで」

**クラウド、VM、またはコンテナ別に問題を確認**

* 「のAikidoクラウドの問題をすべて一覧表示してください `prod-aws`"
* 「でのマルウェア検出結果を表示してください `web-server-01` 「Aikidoで」
* 「サポート終了ソフトウェアは、 `nginx-proxy` コンテナをAikidoによると？"
* 「のサーフェス監視の問題を表示してください `example.com` Aikidoで"

**複合ワークフロー**

* 「Aikidoで現在の変更をスキャンし、次に同じリポジトリ内の既存の重大な問題を表示してください」
* 「このPRをAikidoでチェックし、リポジトリ内の未解決SAST問題と比較してください」


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://help.aikido.dev/docs/docs-ja/ai-totsru/aikido-mcp/jetbrains-ai.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
