All plugins

GitBook

Create and edit GitBook docs

Nothing opened?

GitBook installs from inside ZeroTwo. Get the desktop app, then open this plugin from Plugins.

The GitBook MCP server gives AI agents a full read/write connection to your GitBook organization. Create and configure docs sites, spaces, and sections; draft, edit, and restructure content; open change requests and push updates for review; publish OpenAPI specs; and manage site customization — all through natural conversation, with OAuth sign-in or a personal access token. Pairs with the GitBook Skills plugin, which teaches agents how to use these capabilities effectively.

GitBook MCP server

The GitBook plugin connects ZeroTwo to GitBook. Your agents get the tools of this MCP server:

  • GitBook: remote MCP server at https://mcp.gitbook.com/mcp

What an agent can do with GitBook

  • Draft and edit docs

    The agent drafts, edits and restructures content in your GitBook docs, including writing pages in Git-synced repos and keeps the structure of your spaces consistent.

  • Review change requests

    The agent opens and reviews GitBook change requests and pushes updates for review before they are published so a docs update can be checked by a person first.

  • Publish API references

    The agent publishes OpenAPI specs in GitBook and sets up docs sites, spaces and sections with their customization.

How to connect GitBook to ZeroTwo

  1. Open GitBook in ZeroTwo

    Press Open in ZeroTwo on this page, or find GitBook under Plugins in the app. Get the app first if it is not on this computer.

  2. Sign in

    Press Connect and finish the sign-in in your browser. ZeroTwo stores the token encrypted, and you can disconnect at any time.

  3. Give an agent a task

    Ask an agent for work that needs GitBook, such as one of the example prompts below. The agent uses the plugin's tools to do it.

Example prompts3

  • GitBookTurn my markdown folder into a GitBook docs site
  • GitBookUpdate the docs for this page and open a change request for review
  • GitBookPublish my OpenAPI spec as interactive API reference docs

Apps1

  • GitBook

    Create and edit GitBook docs

Skills6

  • Build integration

    Build, develop, and publish GitBook integrations — apps that run inside GitBook to add custom blocks, react to events, connect external services via OAuth, and extend the editor. Use this skill whenever a task involves the GitBook integrations platform: scaffolding an integration with the GitBook CLI (`gitbook new`), writing or editing an integration's code (`createIntegration`, `createComponent`, ContentKit TSX), configuring `gitbook-manifest.yaml` (scopes, blocks, configurations, secrets), building custom editor blocks or link unfurlers, handling GitBook events like `space_content_updated`, setting up an integration's OAuth flow, running `gitbook dev`, or publishing an integration (private/unlisted/public, marketplace submission). Trigger this even if the user just says they want to 'build an app for GitBook', 'add a custom block', or 'connect <some tool> to GitBook' without saying the word 'integration'.

  • Configure site

    Create and maintain entire GitBook documentation sites end-to-end — design the site structure from source content, scaffold a Git repository in monorepo layout, set up the GitHub/GitLab remote, drive the GitBook API (via its REST API or MCP server) to create the site/sections/spaces, apply branded customization, and hand the user clean instructions for the one UI step (Git Sync wiring) that GitBook does not expose programmatically. Trigger this skill whenever the user wants to spin up a new GitBook docs site, restructure or extend an existing one, link spaces to a Git repo for sync, change a site's branding (logo, colors, fonts, header/footer), or programmatically manage spaces, sections, or site-spaces. This skill is the orchestration layer; for authoring the markdown content of any individual page it defers to the companion `write-docs` skill.

  • Cr create

    Drive an end-to-end GitBook docs review flow from Claude Code by calling the GitBook REST API directly with curl (no CLI) — create a change request, push content (update an existing page AND create a new page), request reviewers, notify Slack, then pull review comments back in, fix them, re-push, and resolve. This is the authoring-side companion to cr-review (the reviewer side over the same API). Use this whenever someone wants to run a "docs review in GitBook" loop from the terminal/agent against the raw API (curl/HTTP), mentions creating a change request via the API, pushing content into a CR, "pull in the latest comments and fix them," requesting review on docs, or showing engineers how to collaborate on GitBook docs from Claude + Slack without a CLI.

  • Cr review

    Review GitBook change requests from Claude Code by calling the GitBook REST API directly with curl (no CLI) — the reviewer-side companion to cr-create (the authoring side over the same API). Discover the change requests that need review (filter by who opened them, by space, or across a whole org), get the GitBook app link to review the diff, summarize what actually changed in a CR, then leave comments and optionally submit a review verdict (approve / request changes). Use this whenever someone wants to review docs change requests over the raw API (curl/HTTP), asks "what CRs are open / waiting on me / opened by <person>", "show me the change requests in <space>/<org>", "summarize what changed in this CR", "review this change request", "leave a comment on a CR", or "approve / request changes on a CR". For the authoring side (create a CR, push content, request reviewers, fix comments) over the API, use cr-create instead.

  • Write docs

    Write, author, edit, and format GitBook documentation pages in Git-synced repos, IDEs, or any text editor. Use whenever a task involves creating or editing a GitBook markdown page, writing or updating a README.md or SUMMARY.md, inserting a hint, tab, stepper, card, or other GitBook block, configuring page frontmatter or layout options, setting up variables or expressions, or formatting content for GitBook outside the GitBook UI.

  • Write openapi

    Author, configure, structure, and troubleshoot OpenAPI/Swagger API reference documentation in GitBook. Use this whenever a task involves a GitBook OpenAPI block or `{% openapi %}` block, adding or updating an OpenAPI/Swagger spec in GitBook (by file or URL, via the API, MCP, CLI, or app UI), generating API reference pages from a spec, configuring the interactive "Test it" runner (auth, servers, CORS, proxy), customizing pages with GitBook `x-*` extensions (icons, titles, navigation hierarchy, code samples, enum descriptions), marking operations experimental/deprecated/hidden, or automating spec updates in CI/CD. Trigger even when the user only mentions GitBook plus OpenAPI, puts an `x-` extension on a spec destined for GitBook, or asks "why isn't my spec loading" or "why doesn't Test it work", without naming this skill.

Information6

Developer
Gitbook Inc.
Category
Documents
Version
1.0.0

Questions

Does the GitBook plugin need an API key?

No. You sign in to your own GitBook account in the browser and approve access. ZeroTwo stores the token encrypted, and the agent never sees your password.

Does it cost anything?

The plugin itself is free. Agent work uses your ZeroTwo credits as usual, and anything GitBook charges for is billed to your GitBook account.

What does GitBook receive?

GitBook gets the requests an agent sends to it for you, such as searches, new items or the files you ask it to work with. It gets no other access to your ZeroTwo workspace.