> 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/aitotsru/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_scan_paths** を実行します。
- スキャナーにはファイルパスを渡します。コードがまだディスクに保存されていない場合にのみ **aikido_full_scan** を使用します。
- セキュリティ問題が報告された場合は、Aikido の修正ガイダンスに従って修正を適用します。
- 修正後に再度 **aikido_scan_paths** を実行し、問題が残っていないことと新たな問題が導入されていないことを確認します。
- スキャンが問題ゼロで通過するまで、修正と再スキャンのサイクルを繰り返します。
- 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/aitotsru/aikido-mcp/token-authentication.md).
{% endhint %}

MCP サーバーが公開するツールの完全な一覧については、次を参照してください [利用可能なツール](/docs/docs-ja/aitotsru/aikido-mcp/using-aikido-mcp.md#available-tools)。エージェントに Aikido を使用するよう依頼する方法については、を参照してください [プロンプト例](/docs/docs-ja/aitotsru/aikido-mcp/using-aikido-mcp.md#example-prompts).


---

# 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/aitotsru/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.
