> For the complete documentation index, see [llms.txt](https://gitbook.com/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://gitbook.com/docs/documentation/ja-gitbook-documentation/gai-yao.md).

# 概要

{% columns %}
{% column width="33.33333333333333%" %}

## 5分以内でドキュメントを公開

GitBookでドキュメントを公開するのは、エージェントにお願いするのと同じくらい簡単です

<a href="https://app.gitbook.com/" class="button primary">サインアップ</a><a href="https://www.gitbook.com/enterprise" class="button secondary">デモを見る</a>
{% endcolumn %}

{% column width="66.66666666666667%" %}
{% code overflow="wrap" expandable="true" %}

```markdown
# GitBook セットアップエージェント

## 目標
公開された GitBook サイトでドキュメントを公開します。完了 = 公開URLをあなたが私に渡し、読み込めることを確認すること。私の対応が必要な手順は、はっきり知らせてください。それ以外はすべて自分で進めてください。

**まず、ツールを確認してください:** GitBook の MCP ツールがすでに接続されている場合は、下の接続手順は飛ばしてください。このプロンプトは以前にも貼り付けられている可能性があります（たとえば再起動後）。その場合は、最初からやり直さず、途中から続けてください。

## 準備（すぐ開始）
ドキュメントを提示してください。ローカルフォルダでもリポジトリでも構いません。ビルドする前にソースを確認してください。今読んでいる内容をそのまま復唱し、トップレベルの内容を一覧にして、正しいか確認できるようにしてください。こちらが指定したものにアクセスできない場合（非公開リポジトリは存在しない場合と同じく 404 になります）は、作業を止めて確認を求めてください。別のソースで代用してはいけません。GitBook で何かを作成する前に、サイトの構成案を見せてください。

## 接続
GitBook の MCP サーバーに接続してください: `https://mcp.gitbook.com/mcp`（ストリーミング HTTP、OAuth）。

- **Claude Code**: `claude plugin marketplace add GitbookIO/gitbook-skills` の後に `claude plugin install gitbook@gitbook-skills` を実行します。サインインするために私が `/reload-plugins` と `/mcp` を実行します。
- **Codex**: `codex mcp add gitbook --url https://mcp.gitbook.com/mcp`
- **Cursor**: `.cursor/mcp.json` の `mcpServers` に URL を追加し、その後 Settings → MCP で有効化します。
- **ターミナルのないチャットアプリ**: アプリの設定で、URL をカスタムコネクタとして追加するよう案内してください。
- **それ以外**: 設定手順として https://gitbook.com/docs/getting-started/ai-documentation/gitbook-mcp.md を取得するか、https://app.gitbook.com/account/developer で PAT を使って REST API に切り替えてください。

ほとんどのツールは、セッション途中で新しい MCP サーバーを読み込みません。設定後に GitBook のツールが表示されない場合は、アプリを再起動してこのプロンプトをもう一度貼り付けるよう伝えてください。接続を検出して続行します。コマンドを実行できる場合は、GitBook のスキルもインストールしてください: `npx -y skills add GitbookIO/gitbook-skills -y`

サインインに失敗して、アカウントがないことが原因であれば、https://app.gitbook.com/join に誘導してアカウントを作成してもらい、その後再試行させてください。

## 作成前の確認
接続したら、これらのドキュメントにすでに GitBook サイトがあるか確認してください。リポジトリの Git Sync 状態を確認し、私の組織のサイトを一覧表示してください。既存サイトがある場合は重複を作成しないでください。更新に切り替えてください（Git Sync が連携されているならローカルで編集してプッシュ、または変更リクエストを開く）。何も存在しない場合のみ、新しいサイトを作成してください。

## 作成と公開
GitBook の MCP ツールでサイトを作成し、私のコンテンツを取り込み、公開してください。最初の公開では Git Sync は使わないでください。サイトが公開されたあとに提案してください。公開URLを取得して読み込めることを確認し、それから私に渡してください。

```

{% endcode %}

<p align="center"><a href="claude://code/new?q=%23%20GitBook%20Setup%20Agent%0AGet%20my%20docs%20live%20on%20a%20published%20GitBook%20site.%20Done%20%3D%20you%20give%20me%20the%20live%20URL%20and%20confirm%20it%20loads.%20Tell%20me%20when%20a%20step%20needs%20me%3B%20do%20the%20rest%20yourself.%0AAsk%20for%20my%20docs%20%28folder%20or%20repo%29.%20Echo%20what%20you%20read%20and%20list%20its%20top%20contents%20so%20I%20can%20confirm.%20If%20a%20source%20is%20unreachable%20%28private%20repos%20return%20404%29%2C%20stop%20and%20ask%20-%20never%20substitute%20another.%20Show%20me%20the%20site%20plan%20before%20creating%20anything.%0AConnect%20%28skip%20if%20gitbook%20MCP%20tools%20already%20available%29%3A%0Aclaude%20plugin%20marketplace%20add%20GitbookIO%2Fgitbook-skills%0Aclaude%20plugin%20install%20gitbook%40gitbook-skills%0AThen%20I%20run%20%2Freload-plugins%20and%20%2Fmcp%20to%20sign%20in.%20If%20tools%20don%27t%20appear%2C%20I%20restart%20and%20paste%20this%20prompt%20again%3B%20detect%20the%20connection%20and%20continue.%0ACheck%20my%20org%20for%20an%20existing%20site%20for%20these%20docs%20first%3B%20if%20found%2C%20update%20it%2C%20don%27t%20duplicate.%0ACreate%20the%20site%20via%20MCP%2C%20import%20content%2C%20publish%20%28no%20Git%20Sync%20yet%3B%20offer%20it%20after%20live%29.%20Verify%20the%20URL%20loads%2C%20then%20share%20it." class="button secondary" data-icon="claude">Claude Code</a><a href="cursor://anysphere.cursor-deeplink/prompt?text=%23%20GitBook%20Setup%20Agent%0AGet%20my%20docs%20live%20on%20a%20published%20GitBook%20site.%20Done%20%3D%20you%20give%20me%20the%20live%20URL%20and%20confirm%20it%20loads.%20Tell%20me%20when%20a%20step%20needs%20me%3B%20do%20the%20rest%20yourself.%0AAsk%20for%20my%20docs%20%28folder%20or%20repo%29.%20Echo%20what%20you%20read%20and%20list%20its%20top%20contents%20so%20I%20can%20confirm.%20If%20a%20source%20is%20unreachable%20%28private%20repos%20return%20404%29%2C%20stop%20and%20ask%20-%20never%20substitute%20another.%20Show%20me%20the%20site%20plan%20before%20creating%20anything.%0AConnect%20%28skip%20if%20gitbook%20MCP%20tools%20already%20available%29%3A%0AAdd%20server%20gitbook%20with%20url%20https%3A%2F%2Fmcp.gitbook.com%2Fmcp%20to%20.cursor%2Fmcp.json%20under%20mcpServers.%20Install%20skills%3A%20npx%20-y%20skills%20add%20GitbookIO%2Fgitbook-skills%20-y%0ACursor%20won%27t%20load%20new%20MCP%20servers%20mid-session%3A%20I%20enable%20it%20in%20Settings%20%3E%20MCP%2C%20sign%20in%2C%20reload%20Cursor%2C%20and%20paste%20this%20prompt%20again%3B%20detect%20the%20connection%20and%20continue.%0ACheck%20my%20org%20for%20an%20existing%20site%20for%20these%20docs%20first%3B%20if%20found%2C%20update%20it%2C%20don%27t%20duplicate.%0ACreate%20the%20site%20via%20MCP%2C%20import%20content%2C%20publish%20%28no%20Git%20Sync%20yet%3B%20offer%20it%20after%20live%29.%20Verify%20the%20URL%20loads%2C%20then%20share%20it." class="button secondary" data-icon="cursor">Cursor</a><a href="codex://threads/new?prompt=%23%20GitBook%20Setup%20Agent%0AGet%20my%20docs%20live%20on%20a%20published%20GitBook%20site.%20Done%20%3D%20you%20give%20me%20the%20live%20URL%20and%20confirm%20it%20loads.%20Tell%20me%20when%20a%20step%20needs%20me%3B%20do%20the%20rest%20yourself.%0AAsk%20for%20my%20docs%20%28folder%20or%20repo%29.%20Echo%20what%20you%20read%20and%20list%20its%20top%20contents%20so%20I%20can%20confirm.%20If%20a%20source%20is%20unreachable%20%28private%20repos%20return%20404%29%2C%20stop%20and%20ask%20-%20never%20substitute%20another.%20Show%20me%20the%20site%20plan%20before%20creating%20anything.%0AConnect%20%28skip%20if%20gitbook%20MCP%20tools%20already%20available%29%3A%0Acodex%20mcp%20add%20gitbook%20--url%20https%3A%2F%2Fmcp.gitbook.com%2Fmcp%0Anpx%20-y%20skills%20add%20GitbookIO%2Fgitbook-skills%20-y%0ANew%20servers%20don%27t%20load%20mid-session%3A%20after%20these%20run%2C%20I%20restart%20Codex%2C%20approve%20sign-in%20in%20my%20browser%2C%20and%20paste%20this%20prompt%20again%3B%20detect%20the%20connection%20and%20continue.%0ACheck%20my%20org%20for%20an%20existing%20site%20for%20these%20docs%20first%3B%20if%20found%2C%20update%20it%2C%20don%27t%20duplicate.%0ACreate%20the%20site%20via%20MCP%2C%20import%20content%2C%20publish%20%28no%20Git%20Sync%20yet%3B%20offer%20it%20after%20live%29.%20Verify%20the%20URL%20loads%2C%20then%20share%20it." class="button secondary" data-icon="openai">Codex</a></p>
{% endcolumn %}
{% endcolumns %}

#### クイックスタートガイド

<table data-card-size="large" data-view="cards"><thead><tr><th></th><th></th><th data-hidden data-card-target data-type="content-ref"></th></tr></thead><tbody><tr><td><h4><i class="fa-robot">:robot:</i></h4></td><td><strong>AI クイックスタート</strong></td><td><a href="/pages/f014daf5b69fcda9df8bf557d8bf4e132c061b7e">/pages/f014daf5b69fcda9df8bf557d8bf4e132c061b7e</a></td></tr><tr><td><h4><i class="fa-hand-pointer">:hand-pointer:</i></h4></td><td><strong>エディターのクイックスタート</strong></td><td><a href="/pages/fa1831b99d2b016ed37ba71b17b4815b2d104ebe">/pages/fa1831b99d2b016ed37ba71b17b4815b2d104ebe</a></td></tr></tbody></table>

#### GitBook の機能を探る

<table data-view="cards"><thead><tr><th></th><th></th><th></th><th></th><th></th><th data-hidden data-card-cover data-type="image">カバー画像</th><th data-hidden data-type="image">カバー画像（ダーク）</th><th data-hidden data-type="image">カバー画像（ダーク）</th><th data-hidden data-type="image">カバー画像（ダーク）</th><th data-hidden data-type="image">カバー画像（ダーク）</th><th data-hidden data-type="image">カバー画像（ダーク）</th><th data-hidden data-card-cover-dark data-type="image">カバー画像（ダーク）</th></tr></thead><tbody><tr><td><h4>GitBook エージェント</h4></td><td><a href="/spaces/hMBa7q4krJX0GpAhDwLc/pages/056d4d54fb57eafaa7dd77c46051432d19b07d11">GitBook エージェントで執筆する</a></td><td><a href="/spaces/hMBa7q4krJX0GpAhDwLc/pages/56d8c0a5316af738cb2ada7644589fc0f538d4cb">変更リクエストを確認する</a></td><td><a href="/spaces/hMBa7q4krJX0GpAhDwLc/pages/eaec644623862134e9fdcf2d253a3730847bdd26">コンテンツのギャップを特定する</a></td><td><a href="/spaces/hMBa7q4krJX0GpAhDwLc/pages/3c480f73dc79252c8af756a7239cac89bf0206a1">チャネル</a></td><td><a href="/files/7cdbaf9b320ad8f079d79206d84fc55361db7eb7">/files/7cdbaf9b320ad8f079d79206d84fc55361db7eb7</a></td><td><a href="/files/9424c295392caa9ae4e4d79aaa7dc503f523279b">/files/9424c295392caa9ae4e4d79aaa7dc503f523279b</a></td><td></td><td></td><td></td><td></td><td></td></tr><tr><td><h4>GitBook アシスタント</h4></td><td><a href="/spaces/hMBa7q4krJX0GpAhDwLc/pages/46908704adc35d791ea0e298c23b5b858a847334">接続</a></td><td><a href="/spaces/hMBa7q4krJX0GpAhDwLc/pages/54d25975b74bfc2a2b1a946ab3a8ea5aa2659229">Docs Embed</a></td><td><a href="/spaces/hMBa7q4krJX0GpAhDwLc/pages/6939a160a34461b6f78738feafc0ce4a77f64af4">カスタムツールに接続する</a></td><td></td><td><a href="/files/6de9275efa51923f9fe3c73f7d44a800f8ac8bb8">/files/6de9275efa51923f9fe3c73f7d44a800f8ac8bb8</a></td><td></td><td><a href="/files/61494848c05f29024594a27719f6936ad66f5502">/files/61494848c05f29024594a27719f6936ad66f5502</a></td><td></td><td></td><td></td><td></td></tr><tr><td><h4>Git Sync</h4></td><td><a href="/spaces/hMBa7q4krJX0GpAhDwLc/pages/9f5c91631cf2369237bfc9cadc5d6ef254c671ec">GitHub Sync を有効にする</a></td><td><a href="/spaces/hMBa7q4krJX0GpAhDwLc/pages/22fea8f9e0edd3d7102360da8856699e6b5d311c">コンテンツ設定</a></td><td><a href="/spaces/hMBa7q4krJX0GpAhDwLc/pages/9f909b7863b8a3554ec865c87129f2eac3dd0e71">GitHub プルリクエストのプレビュー</a></td><td><a href="/spaces/hMBa7q4krJX0GpAhDwLc/pages/75c6d5170888336e89e3b678d3489091b7c9a1c4">モノレポ</a></td><td><a href="/files/9161ad8182f7f6f0f46b5a8c09d0e49e0bd71f07">/files/9161ad8182f7f6f0f46b5a8c09d0e49e0bd71f07</a></td><td></td><td></td><td><a href="/files/1b26e4abf0fd94b342abbfee62cd9e8316fd9d4c">/files/1b26e4abf0fd94b342abbfee62cd9e8316fd9d4c</a></td><td></td><td></td><td></td></tr><tr><td><h4>AI インサイト</h4></td><td><a href="/spaces/hMBa7q4krJX0GpAhDwLc/pages/44842b79db5cc370a06d6f65fc9c12ce7803ffcd">AI インサイト</a></td><td><a href="/spaces/hMBa7q4krJX0GpAhDwLc/pages/d74007c5891dbdec7feb5c3c8732f5a684aa5e91">GitBook アシスタント</a></td><td><a href="/spaces/hMBa7q4krJX0GpAhDwLc/pages/eaec644623862134e9fdcf2d253a3730847bdd26">コンテンツのギャップを特定する</a></td><td><a href="/spaces/hMBa7q4krJX0GpAhDwLc/pages/fde014aaa6aebaaa1a909804747fce75f331d76d">サイト分析</a></td><td><a href="/files/0f4f8192cd07045e1b1e0732f44b00dd2eeca427">/files/0f4f8192cd07045e1b1e0732f44b00dd2eeca427</a></td><td></td><td></td><td></td><td><a href="/files/03b7e2b21836bc48b5473c2bd8ad9d73743e008e">/files/03b7e2b21836bc48b5473c2bd8ad9d73743e008e</a></td><td></td><td></td></tr><tr><td><h4>MCP サーバー</h4></td><td><a href="/spaces/hMBa7q4krJX0GpAhDwLc/pages/98969ccc8e2a5792b969687905dd77255b66c62b">GitBook MCP</a></td><td><a href="/spaces/hMBa7q4krJX0GpAhDwLc/pages/64e124c96c6789fbf2b7181db00b7a3d230421e1">公開済みドキュメント向けの MCP サーバー</a></td><td><a href="/spaces/hMBa7q4krJX0GpAhDwLc/pages/12ec393b56534f5869c4957ea13f79584aa511ad">AI コーディングアシスタントと skill.md</a></td><td><a href="/spaces/hMBa7q4krJX0GpAhDwLc/pages/84f2511f69dc56ce6b27ee0a59dafac8984f2205">AI 向けの最適化</a></td><td><a href="/files/789f668ed60871277aebe6d0c713b094fb73163b">/files/789f668ed60871277aebe6d0c713b094fb73163b</a></td><td></td><td></td><td></td><td></td><td><a href="/files/0d83f38a9eb2e885f9dafcba1204422afff3c393">/files/0d83f38a9eb2e885f9dafcba1204422afff3c393</a></td><td></td></tr><tr><td><h4>API</h4></td><td><a href="/spaces/2SyQSbIa1iYS7z6Dx5di/pages/fPDrhpoBpT2XvowhteEg">GitBook API</a></td><td><a href="/spaces/2SyQSbIa1iYS7z6Dx5di/pages/6OzUWR95VKSzFiOfDRak">クイックスタート</a></td><td><a href="/spaces/2SyQSbIa1iYS7z6Dx5di/pages/RUvdmIKeuCU1QCU5Uett">API リファレンス</a></td><td></td><td><a href="/files/058ac524d987c401a4153893136da36b78634637">/files/058ac524d987c401a4153893136da36b78634637</a></td><td></td><td></td><td></td><td></td><td></td><td><a href="/files/3a9b0dd6cf8bcda09b8280cf2d49fad71e869bd9">/files/3a9b0dd6cf8bcda09b8280cf2d49fad71e869bd9</a></td></tr></tbody></table>

#### 他にお探しですか？

<button type="button" class="button primary" data-action="ask" data-icon="gitbook-assistant">質問する…</button>


---

# 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://gitbook.com/docs/documentation/ja-gitbook-documentation/gai-yao.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.
