日本語

IDEでMCPルールを自動的に処理する

このオプションを有効にすると、Aikido は LLM および AI の利用に必要な MCP ルールを自動的に管理します。

これは Aikido MCP と連携して動作し、MCP 対応ツールを使用する際に AI が生成したコードが Aikido によってスキャンされるようにします。

機能の概要

Aikido は、AI によって生成、追加、変更されたコードに対してセキュリティスキャンを強制する MCP ルールを 1 つ自動的に追加し、維持します。MCP ルールを手動で設定する必要はありません。

Aikido が管理する MCP ルール

有効にすると、Aikido は次のルールを管理します:

---
alwaysApply: true
always_on: true
trigger: always_on
applyTo: "**"
description: Aikido MCP Security Rules
---

# Security best practices

- Always run aikido_scan_paths on generated, added and modified first-party code, unless the prompt explicitly says not to.
- Pass the file paths to the scanner. Only use aikido_full_scan when the code is not saved to disk yet.
- If the scan identifies any security issues in newly generated or modified code, fix the issues using the scan result and remediation provided by Aikido.
- After applying fixes, run aikido_scan_paths again to verify that the issues were successfully resolved, and no new issues were introduced.
- Repeat the fix-and-rescan cycle until the code passes with zero remaining or newly introduced security issues.

Gitignore

このルールを適用するために、Aikido はリポジトリ内に MCP ルールファイルを作成または更新する場合があります。このファイルは常に .gitignore に追加されるとは限りません。

コミットせずに Aikido にルールを完全に管理させたい場合は、.gitignore に追加してください。Git でルールをレビューまたはバージョン管理したい場合は、.gitignore に含めないでください。

このオプションを無効にする場合

MCP ルールを手動で管理したい場合や、Aikido にルールファイルを自動的に変更させたくない場合は、このオプションを無効にしてください。