> 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 を再度起動したら、引数なしでセットアップスキルを実行します:

```
/aikido:setup
```

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

{% step %}
**完了**

Aikido Claude プラグインが 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でsurface監視の問題を表示して `example.com` Aikidoで"

**複合ワークフロー**

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

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

セットアップスキルが 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.
