> 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/anthropic-claude-code-mcp.md).

# Anthropic Claude Codeプラグイン

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

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

**Aikido MCPを使う理由**

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

## Claude Code CLI 用のインストール

{% stepper %}
{% step %}
**Aikido プラグインをインストール**

Aikido Claude Code プラグインのインストールは、Claude Code CLI から行えます。

* ターミナルを開いて、次を入力してください `claude`.
* これで、Claude Plugins Marketplace からプラグインをインストールできます
  * `/plugin install aikido@claude-plugins-official`
* インストール後、次を実行してください `/reload-plugins` プラグインを有効化します。
* スキルを読み込むには Claude Code CLI の再起動が必要です。Claude Code CLI を終了するには、次を入力してください `exit`.
  {% endstep %}

{% step %}
**認証**

Claude Code を再度起動したら、引数なしで setup スキルを実行してください:

```
/aikido:setup
```

これによりブラウザウィンドウが開き、Aikido にログインできます。認証が完了すると、トークンは Claude Code の設定に安全に保存され、MCP サーバーは自動的に登録されます。
{% endstep %}

{% step %}
**完了**

Aikido Claude Plugin は、Claude Code で利用可能になりました。
{% 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の表面監視の問題を表示して `example.com` Aikidoで」

**組み合わせたワークフロー**

* 「Aikidoを使って現在の変更をスキャンし、同じリポジトリ内の既存の重大な問題を表示してください」
* 「このPRをAikidoでチェックし、リポジトリ内の未解決SAST問題と比較してください」

### トラブルシューティング

setup スキルが MCP サーバーの起動に失敗する場合は、次を確認してください [トラブルシューティングガイド](https://help.aikido.dev/ai-and-dev-tools/aikido-mcp/mcp-troubleshooting).


---

# 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/anthropic-claude-code-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.
