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

# Cursor 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 %}

## インストール

### Cursor Marketplace 経由（推奨）

Aikido MCP は次から直接インストールすることもできます： [Cursor Marketplace](https://cursor.com/marketplace/aikido).

{% stepper %}
{% step %}
**Cursor Marketplace から追加**

開く [Cursor Marketplace 上の Aikido](https://cursor.com/marketplace/aikido) をクリックします **Cursor に追加**.
{% endstep %}

{% step %}
**認証する**

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

{% step %}
**カスタム指示を追加**

あなたの `.cursorrules` ファイル、または Cursor のカスタム指示を設定して、エージェントが MCP サーバーを使用するようにしてください。

```
変更を確定する前に、`aikido_full_scan` で新規または変更されたコードをスキャンしてください。このセキュリティチェックは必須です。
```

{% endstep %}
{% endstepper %}

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

### Aikido IDE 拡張パック経由

Aikido MCP を Cursor に追加する最も簡単な方法は、Aikido IDE プラグインの拡張パックを使うことです。これにより、手動設定なしで構成が自動的に処理されます。

{% content-ref url="/pages/51fef9ad2eadc9573225eba7195de4143cb20116" %}
[Cursor IDE](/docs/docs-ja/ai-totsru/ide-plugins-overview/cursor-ide.md)
{% endcontent-ref %}

プラグインをインストールしたら、Aikido のサイドバーを開いて次へ進んでください： **Aikido Cursor プラグイン** Aikido MCP サーバーを有効にします。

[拡張パックの詳細を見る](/docs/docs-ja/ai-totsru/ide-plugins-overview/features/aikido-expansion-packs.md)

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

* "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問題と比較して"

### 手動インストール

カスタム設定については、次を参照してください： [npm パッケージページ](https://www.npmjs.com/package/@aikidosec/mcp) 詳細な手動インストール手順。


---

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