> 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で」
* 「どのサポート終了ソフトウェアが、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.
