Command · Knowledge & Docs
GitBook
Import pages from GitBook spaces, plus an MCP server so agents can browse spaces and read page content.
How it works
GitBook is a token-based import connector. Command calls the GitBook API with a personal access token, pulls the pages of the spaces you select, converts them to Markdown, and indexes them into your project's vector store.
Before you start
- A GitBook organization you are a member of
- Permission to create a personal access token in GitBook
- A raia Command project with a destination folder
What you need to make the connection
| Field | Where to get it |
|---|---|
| Personal access token | GitBook → click your avatar → Settings → Developer → Access tokens → Create token. Starts with gb_api_. Copy it immediately — GitBook shows it once. |
| Organization / space | Selected from a dropdown in raia Command after the token validates — no manual ID needed. |
Recommended practice: keep credentials private. If one is exposed, revoke or rotate it with the provider before reconnecting.
Setup steps
- 01
Create the personal access token in GitBook and copy it.
- 02
In raia Command, click Connectors in the left sidebar, open the connector, and click its connect button (Add connection on most connectors).
The GitBook connector page in raia Command (Connectors → GitBook) — review Setup instructions before connecting. - Highlight 1: The Setup & Import (or Setup) and Agent Access (MCP) tabs
- Highlight 2: Setup instructions — the provider runbook. Open it for what to configure in the third-party service first.
- Highlight 3: Paste the key in the field, then click Connect.
- 03
Paste the token and save. Command validates it and lists your organizations.
- 04
Pick the spaces to import and the destination project folder.
- 05
Choose the destination project folder, run the first import, then set a sync schedule. Review Sync History for recorded runs and errors; a saved connection does not prove an import succeeded.
Good to know
- The token inherits your GitBook permissions — it can only read spaces your account can read.
- Rotate the token in GitBook and re-paste it in Command if it is ever exposed.