コンテンツにスキップ

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

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

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

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

有効にすると、Aikido は以下のルールを管理します。

---
alwaysApply: true
always_on: true
trigger: always_on
applyTo: "**"
description: Aikido MCP Security Rules
---
# Security best practices
- Always run aikido_full_scan on generated, added and modified first-party code, unless the prompt explicitly says not to.
- Always provide the full file content to the scanner.
- 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_full_scan 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.

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

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

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

Section titled “このオプションを無効にする場合”

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