> 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/ide-plugins-overview/cursor-ide.md).

# Cursor IDE

Aikido は、ハードコードされたシークレット（APIキー、トークン）や安全でないコードパターン（SQLインジェクション、パストラバーサルなど）をプロジェクト全体で自動スキャンし、問題を早期に発見してコードベースを安全に保てるようにします。

ファイルを開いたり変更を保存したりするたびにスキャンが自動的に実行されるため、開発の早い段階で問題を簡単に見つけられます。

セキュリティ上の問題が見つかると、コード内で直接ハイライトされ、Aikido ウィンドウにも一覧表示されます。

{% stepper %}
{% step %}

### 拡張機能を開いて「Aikido Security」をインストールしてください

<figure><img src="/files/c261a4c368ffae52ba892bf8e31480138975f70c" alt=""><figcaption></figcaption></figure>

または、これらのリンクを使って各マーケットプレイスへ移動してください

* [VS Code](https://marketplace.visualstudio.com/items?itemName=AikidoSecurity.aikido)
* [Windsurf](https://open-vsx.org/extension/AikidoSecurity/aikido) / [Cursor](https://open-vsx.org/extension/AikidoSecurity/aikido) / [Kiro](https://open-vsx.org/extension/AikidoSecurity/aikido) / [Google Antigravity](https://open-vsx.org/extension/AikidoSecurity/aikido)
  {% endstep %}

{% step %}

### Aikidoで認証する

<img src="/files/a1939d179552c9444ed8ceda22b3be145c9c243f" alt="" data-size="line"> サイドバーのアイコンをクリックしてAikidoプラグインを開き、「Connect to Aikido」をクリックしてAikidoプラットフォームで認証してください。

<figure><img src="/files/820c87b70e3546a64fc6036302bcee3f04709fcb" alt=""><figcaption></figcaption></figure>

または、コマンドパレットを開いて次を実行できます `Aikido: ログイン`

自動認証が機能しない場合は、Aikido内で手動で個人用アクセスを作成できます。次のページに移動してください: [統合ページで指示に従ってください](https://app.aikido.dev/settings/integrations?section=ide).
{% endstep %}

{% step %}

### サンプルを試してみてください

以下に例があります `index.js` このファイルを使って拡張機能が正しく動作しているか確認できます。SASTの問題（SQLインジェクション）を1件と、漏えいしたシークレット（SQL Server接続文字列）を1件検出するはずです。

```javascript
const app = {}

app.get("/user", (req, res) => {
    const connStr = "Server=tcp:myserver.database.windows.net,1433;Initial Catalog=mydb;Persist Security Info=False;User ID=myuser;Password=$uperSecret123!@#";
    const username = req.query.username
    const unsafeQuery = `SELECT * FROM users WHERE username = '${username}'`
    sql.connect(connStr).query(unsafeQuery, (err, result) => {
        res.status(200).send(result)
    })
})
```

{% endstep %}

{% step %}

### 追加のセキュリティツールを有効にする

IDEでAikidoを拡張パックで拡張できます。たとえば [AIエージェント向けMCP](/docs/docs-ja/ai-totsru/aikido-mcp.md), [pre-commitフック](/docs/docs-ja/ai-totsru/aikido-secrets-pre-commit-hook.md)、そして [Safe Chain](/docs/docs-ja/kdosukyan/aikido-malware-scanning.md)。詳細については、以下のドキュメントを参照してください。

{% content-ref url="/pages/22e70f9450fcdcd2a38b4535fb8a9cf951d68cd2" %}
[Aikido拡張パック](/docs/docs-ja/ai-totsru/ide-plugins-overview/features/aikido-expansion-packs.md)
{% endcontent-ref %}
{% endstep %}
{% endstepper %}

プラグインをインストールしたので、作業しながらセキュリティ上の問題を見つけるのに役立つ機能を見ていきましょう:

{% content-ref url="/pages/3dfde686ecf7d74a621887ca00e5f424b7977ac7" %}
[IDEでのリアルタイムSAST、Secrets、IaCスキャン](/docs/docs-ja/ai-totsru/ide-plugins-overview/features/real-time-code-scanning-in-ide.md)
{% endcontent-ref %}

{% content-ref url="/pages/b92562cb2024df554e808edc27e5331630c25e76" %}
[Broken mention](broken://pages/b92562cb2024df554e808edc27e5331630c25e76)
{% endcontent-ref %}

{% content-ref url="/pages/fff307894e2c08dfd40a07ab0f4892e23b70da2d" %}
[IDEでのオープンソース依存関係スキャン（SCA）](/docs/docs-ja/ai-totsru/ide-plugins-overview/features/open-source-dependency-scanning-sca-in-ide.md)
{% endcontent-ref %}

{% content-ref url="/pages/29e684dbc14043d4f997ce83025f0d97ebccf593" %}
[IDEでのワークスペース全体スキャン](/docs/docs-ja/ai-totsru/ide-plugins-overview/features/full-workspace-scan-in-ide.md)
{% endcontent-ref %}

{% content-ref url="/pages/f1c11358da27d679d241d27159a227eee3d517fb" %}
[IDE内のAikido AI](/docs/docs-ja/ai-totsru/ide-plugins-overview/features/aikido-ai-in-ide.md)
{% endcontent-ref %}

{% content-ref url="/pages/b65694ed0557e5a962ebbb85aac5b0a82784cf41" %}
[VS Code - 拡張機能の接続が切れ続ける](/docs/docs-ja/ai-totsru/ide-plugins-overview/troubleshooting/vs-code-extension-keeps-disconnecting.md)
{% endcontent-ref %}

{% content-ref url="/pages/e0ef2730dd79e43791f0305e22201871e5ff6a87" %}
[VS Code - サポート向け情報](/docs/docs-ja/ai-totsru/ide-plugins-overview/troubleshooting/vs-code-information-for-support.md)
{% endcontent-ref %}

## Cursor向けAikido MCP

Expansion PacksまたはCursor Marketplaceを通じて、Aikido Cursor PluginをCursorのAIワークフローに追加できます。このプラグインを使うと、Cursorが開発中にコードのセキュリティ問題をスキャンできます。

[Cursor向けAikido MCPをセットアップする](https://help.aikido.dev/ai-and-dev-tools/aikido-mcp/cursor-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/ide-plugins-overview/cursor-ide.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.
