> ## Documentation Index
> Fetch the complete documentation index at: https://ayakaleaf-pro.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Claude または Codex を使う

> AI コーディングエージェントをドキュメントに接続し、Ayakaleaf Pro をデプロイします。

Claude Code または Codex を使用して、Ayakaleaf Pro のデプロイを計画・実行できます。エージェントは作業中に MCP を通じてこのドキュメントを検索できます。

エージェントはデプロイを支援するものです。コマンドの確認と認証情報の保護は、引き続きあなたの責任です。

### 始める前に

SSH でアクセスできる、サポート対象の Linux サーバーを用意してください。続行する前に[要件](/ja/on-premises/getting-started/requirements "mention")を確認してください。

<Warning>
  パスワード、秘密鍵、トークン、ライセンスキーをエージェントのプロンプトに貼り付けないでください。すべてのコマンドは実行前に確認してください。特に、ファイル、ネットワーク、コンテナを変更するコマンドには注意してください。
</Warning>

### ドキュメントを接続する

ローカルのエージェントにドキュメントの MCP エンドポイントを追加します。

<Tabs>
  <Tab title="Claude Code">
    ```bash wrap theme={null}
    claude mcp add ayakaleaf-pro --scope user --transport http https://ayakaleaf-pro.ayaka.space/~gitbook/mcp
    ```
  </Tab>

  <Tab title="Codex">
    ```bash wrap theme={null}
    codex mcp add ayakaleaf-pro --url https://ayakaleaf-pro.ayaka.space/~gitbook/mcp
    ```
  </Tab>
</Tabs>

サーバーを追加したら、新しいセッションを開始します。エージェントに、Ayakaleaf Pro のドキュメントを検索できることを確認するよう依頼してください。

### Ayakaleaf Pro をデプロイする

デプロイ先のサーバーでターミナルを開きます。そこで Claude Code または Codex を起動し、次のプロンプトを送信します:

```text wrap theme={null}
Use the Ayakaleaf Pro documentation MCP server to guide this deployment.
First, inspect the requirements and installation guides.
Ask me for missing deployment details before making changes.
Use the Ayakaleaf Toolkit unless the documentation requires another approach.
Before configuring the instance, summarize relevant optional features.
Ask which features and integrations I want to enable.
Include TLS, sandboxed compiles, Git integration, external MongoDB or Redis,
SSO (OIDC, SAML, or LDAP), GitHub Synchronisation, Zotero, S3 storage,
email delivery, branding, and localization when relevant.
Explain each selected option's prerequisites, security impact, and configuration steps.
Keep unselected optional features disabled.
Show each command before running it.
Do not expose, store, or request secrets in chat.
After deployment, verify that the service is healthy and summarize the changes.
```

エージェントは、Docker のセットアップ、Toolkit の設定、イメージの取得、起動までを案内してくれるはずです。標準的なワークフローについては、[using-the-toolkit](/ja/on-premises/installation/using-the-toolkit "mention") ガイドに従ってください。

### オプション機能を選択する

環境に合った機能だけを推奨するようエージェントに依頼してください。一般的な選択肢は次のとおりです:

* <strong>アクセスとセキュリティ:</strong> TLS、サンドボックスコンパイル、OIDC・SAML・LDAP による SSO。
* <strong>外部サービス:</strong> MongoDB、Redis、S3 ストレージ、メール配信。
* <strong>コラボレーション:</strong> Git 連携、GitHub Synchronisation、Zotero。

エージェントは、設定を編集する前に依存関係を説明する必要があります。本番環境で連携機能を有効にする前に、[toolkit-settings.md](/ja/on-premises/configuration/overleaf-toolkit/toolkit-settings "mention") と [authentication](/ja/on-premises/configuration/overleaf-toolkit/authentication "mention") を確認してください。

### デプロイを確認する

エージェントが手順を完了したら:

1. すべてのコマンドがエラーなく完了したことを確認します。
2. 設定した Ayakaleaf Pro の URL をブラウザで開きます。
3. [6.-post-installation-tasks.md](/ja/on-premises/installation/using-the-toolkit/6.-post-installation-tasks "mention") を完了します。

既存の Community Edition のインストール環境がある場合は、新規デプロイではなく [migrate-from-existing.md](/ja/on-premises/installation/migrate-from-existing "mention") ガイドを使用してください。


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.