# Jetbrains AI / Junie MCP


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

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

**Aikido MCPを使用する理由**

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

## インストール

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

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) Add をクリックして新しいMCPサーバー設定を追加します。

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: 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_scan_paths** on all newly written, generated, added, or modified first-party code.
- Pass the file paths to the scanner. Only use **aikido_full_scan** when the code is not saved to disk yet.
- If any security issues are reported, apply the fixes using the remediation guidance from Aikido.
- Run **aikido_scan_paths** 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
```
{% endstep %}

{% step %}
**完了**

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

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

MCPサーバーが提供するツールの一覧については、[利用可能なツール](https://help.aikidogov.us/docs/docs-ja/ai-and-dev-tools/aikido-mcp/using-aikido-mcp#available-tools)を参照してください。エージェントにAikidoを使用させる方法については、[プロンプトの例](https://help.aikidogov.us/docs/docs-ja/ai-and-dev-tools/aikido-mcp/using-aikido-mcp#example-prompts)を参照してください。
