> 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/devin-mcp.md).

# Devin MCP

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

AIアシスタントは自分の出力をレビューできますが、そのレビューは完全ではありません。Aikidoは、実績のあるスキャンルールで生成されたすべてのスニペットをチェックする、信頼性が高く一貫したセキュリティレイヤーを追加します。

**Aikido MCPを使う理由**

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

MCP サーバーが公開するツールの一覧については、参照してください [利用可能なツール](/docs/docs-ja/ai-totsru/aikido-mcp/using-aikido-mcp.md#available-tools).

## インストール

{% stepper %}
{% step %}
**Aikido MCPサーバーをインストールする**

```shellscript
devin mcp add -s user aikido -- npx -y @aikidosec/mcp@latest
```

または手動で次に追加してください `~/.config/devin/mcp_config.json` (`%APPDATA%\devin\mcp_config.json` （Windows では）。

```json
{
  "mcpServers": {
    "aikido": {
      "command": "npx",
      "args": ["-y", "@aikidosec/mcp@latest"]
    }
  }
}
```

{% hint style="info" %}
使用 `-s project` の代わりに `-s user` サーバーの書き込み先として `.devin/mcp_config.json` そしてチームと共有してください。
{% endhint %}
{% endstep %}

{% step %}
**認証**

初回使用時、MCP サーバーは認証が設定されていないことを検出します。エージェントに次を実行するよう依頼してください `aikido_login`。ブラウザリンクが返されます。そのリンクを開いて Aikido にログインしてください。ログインが完了すると、トークンは安全に保存されます。
{% endstep %}

{% step %}
**Aikidoルールをグローバルな AGENTS ファイルに追加する**

まだ存在しない場合は、Devin の設定ディレクトリを作成してください。

```shellscript
mkdir -p ~/.config/devin/
```

Aikidoルールを次に追記します: `~/.config/devin/AGENTS.md`。このファイル内のルールは常に有効です。

```shellscript
curl -fsSL "https://gist.githubusercontent.com/kidk/aa48cad6db80ba4a38493016aae67712/raw/3644397b7df43423e3da06434491b40bbb79dd47/aikido-rule.txt" \
  >> ~/.config/devin/AGENTS.md
```

{% hint style="info" %}
代わりにこのルールを1つのリポジトリに限定するには、同じ内容をそのリポジトリの `AGENTS.md`、または `.devin/rules/aikido.md` と `trigger: always_on` のフロントマター。
{% endhint %}
{% endstep %}

{% step %}
**完了**

Aikido MCP は現在 Devin で利用できます。

{% hint style="info" %}
開いていた場合は Devin Desktop を再起動してください。
{% endhint %}
{% endstep %}
{% endstepper %}

Devin は MCP ツールに次の名前空間を付けます: `mcp__aikido__<tool>` そしてそれらを権限システムの背後に置くため、エージェントが初めて Aikido ツールを呼び出す際に承認してください。

エージェントに Aikido を使用させる方法については、次を参照してください [プロンプト例](/docs/docs-ja/ai-totsru/aikido-mcp/using-aikido-mcp.md#example-prompts).


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://help.aikido.dev/docs/docs-ja/ai-totsru/aikido-mcp/devin-mcp.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
