> 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/mistral-vibe-mcp.md).

# Mistral Vibe MCP

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

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

**Aikido MCPを使う理由**

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

**利用可能なツール**

* **aikido\_full\_scan**: ローカルのコードファイルを脆弱性（SAST）とハードコードされたシークレットについてスキャンします。
* **aikido\_issues\_list**: Aikidoフィードからセキュリティ問題を取得します。
  * スコープで絞り込み: `repo_name`, `cloud_name`, `vm_name`, `domain_name`, `container_name`, `workspace_name` または `team_name`
  * 必要に応じて、リポジトリのスコープを単一ブランチに絞り込むには `repo_branch_name`
  * 1つ以上の問題タイプを選択してください: `sast`, `leaked_secret`, `iac`, `open_source`, `cloud`, `cloud_instance`, `docker_container`, `malware`, `eol`, `mobile`, `surface_monitoring`, `scm_security`, `license`, `ai_pentest`, `ai_code_analysis`
  * で絞り込み `labels` 指定したラベルのいずれかを持つリポジトリまたはコンテナイメージに関する問題のみを返します
  * で絞り込み `severity` 特定の重大度、または指定したしきい値以上の問題のみを返します
  * 結果をページ送りするには `ページ` （0始まり）
  * 各問題を、タイトル、種類、重大度、対処手順とともに返します
  * 以下のフィルターを選んでSLAで絞り込みます: `out_of_sla` または `sla_due_soon`
* **aikido\_ignore\_issue**: フィード内のセキュリティ問題を無視します。必要です `issue_id` および `reason`.
* **aikido\_login**: Aikidoのサインインフローを開始します。サインインURLを返すか、すでにサインイン済みであることを確認します。
  * サインインすると、アカウントのリージョンに自動的にリダイレクトされます。設定するのは `region` (`eu`, `us`, `me`, `au`）間違ったリージョンに着いた場合のみ
  * 使用 `force_reauth` アカウントを切り替える、または再度サインインするため

{% hint style="info" %}
すべてのMCPツールがデフォルトで有効になっているわけではありません。管理者は次の場所で有効化できます [権限ページ](https://app.aikido.dev/settings/integrations/ide/mcp/permissions) 全員に対して
{% endhint %}

## インストール

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

開くか作成する `~/.vibe/config.toml` そして、以下をファイルの末尾に追加してください。

{% hint style="warning" %}
削除してください `mcp_servers = []` 続行する前に、デフォルト設定からその行を削除してください。
{% endhint %}

```shellscript
[[mcp_servers]]
name = "aikido"
transport = "stdio"
command = "npx"
args = ["-y", "@aikidosec/mcp@latest"]
```

{% endstep %}

{% step %}
**認証**

初回使用時、MCP サーバーは認証が設定されていないことを検出します。エージェントに次を実行するよう依頼してください: `aikido_login`。ブラウザリンクが返されます。そのリンクを開いて Aikido にログインしてください。ログイン完了後、トークンは安全に保存されます。
{% endstep %}

{% step %}
**Aikido ルールを Global AGENTS ファイルに追加する**

vibe の prompts ディレクトリがまだ存在しない場合は作成してください。

```shellscript
mkdir -p ~/.vibe/prompts/
```

Aikido ルールをダウンロードして、次に追加してください: `~/.vibe/prompts/aikido-rule.txt`.

```shellscript
curl -fsSL "https://gist.githubusercontent.com/kidk/aa48cad6db80ba4a38493016aae67712/raw/3644397b7df43423e3da06434491b40bbb79dd47/aikido-rule.txt" \
  -o ~/.vibe/prompts/aikido-rule.txt
```

{% endstep %}

{% step %}
**完了**

Aikido MCP は Mistral Vibe で利用できるようになりました。

{% hint style="info" %}
開いていた場合は Mistral Vibe を再起動してください。
{% endhint %}
{% 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でsurface監視の問題を表示して `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/mistral-vibe-mcp.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.
