> 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` , `code_audit`
  * 次の設定で結果をページ送りします: `ページ` （0始まり）
  * 各問題を、タイトル、種類、重大度、および修復手順とともに返します
  * 次のフィルターを選んでSLAで絞り込みます: `out_of_sla` または `due_soon`
* **aikido\_ignore\_issue**: フィード内のセキュリティ問題を無視します。必要なのは `issue_id` と `理由`.
* **aikido\_login**: Aikidoのサインインフローを開始します。サインインURLを返すか、すでにサインイン済みであることを確認します。

{% 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` エージェントが MCP サーバーを使用するようにするためのファイルまたは Cursor のカスタム指示。

```
変更を確定する前に、新規または変更済みのコードを `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 プラグインの Expansion Packs を使うことです。これにより、手動設定なしで構成が自動的に処理されます。

{% 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 サーバーを有効にするには。

[Expansion Packs について詳しく見る](/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の表面監視の問題を表示して `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.
