Volver al catálogo

GitBook MCP

gitbook_mcp

Browse GitBook sites and pages, open and merge change requests, and run any GitBook API operation through GitBook's hosted MCP server.

Acciones
13
Triggers
0
Autenticación
—
OAuth gestionado
No
Información técnica: el detalle de parámetros, schemas y triggers de esta página está pensado para equipos de integración. Si solo necesitas saber si tu herramienta favorita está disponible, basta con ver la lista de acciones.

Acciones disponibles (13)

Cada acción es una operación que el agente puede ejecutar contra este conector. Haz clic en una acción para ver sus parámetros.

Create change requestGITBOOK_MCP_CREATE_CHANGE_REQUESTAcción

Opens a change request on a space. Published content is never edited directly: create a change request, edit pages within it, then submit/merge it. Returns the new change request id needed for those follow-ups. Pass a description to tell reviewers what changes and why. Pass siteFindingIds to link up to 25 site findings this change request fixes. Merging does not resolve outbound broken-link findings; the outbound checker confirms those fixes. See get_usage_guide("editing").

Parámetros de entrada

  • spaceIdstringObligatorio

    ID of the space to open the change request against.

  • subjectstring

    Short title for the change request.

  • descriptionstring

    What the change request changes and why, for whoever reviews it. Plain text; separate paragraphs with a blank line.

  • siteFindingIdsstring[]

    IDs of the site findings this change request fixes, from listSiteFindings. Outbound broken-link findings are resolved by the outbound checker, not by merging.

Parámetros de salida

Sin parámetros.

Describe operationGITBOOK_MCP_DESCRIBE_OPERATIONAcción

Describes one GitBook API operation found via search: its path/query parameters and request-body JSON Schema, so you can build params for invoke_operation. Read-only.

Parámetros de entrada

  • operationIdstringObligatorio

    Operation id to describe (discover ids with search).

Parámetros de salida

Sin parámetros.

Get pageGITBOOK_MCP_GET_PAGEAcción

Returns a page from the space's main content as markdown plus its id, title and path. Look the page up by pageId or by path. For editing a change request, use get_usage_guide with topic editing for reading its content and using the optional concurrency guard. Links to other pages and files are stable references such as `/pages/<pageId>` or `/files/<fileId>`; keep them as they are when writing the content back. Find a space with get_site_structure; to list that space's pages, use the operation surface — invoke_operation getSpaceById to read its `revision`, then getRevisionById to get the revision's pages.

Parámetros de entrada

  • pathstring

    Path of the page to read, relative to the space, e.g. "guides/install" (alternative to pageId).

  • pageIdstring

    ID of the page to read.

  • spaceIdstringObligatorio

    ID of the space the page belongs to.

Parámetros de salida

Sin parámetros.

Get schema definitionGITBOOK_MCP_GET_SCHEMA_DEFINITIONAcción

Returns the JSON Schema of a type that a tool's input schema leaves out, such as a document block, along with the types it contains. Call it when a schema says to, before building that part of the input. Any type still left out is named, so you can expand it in turn. For worked examples of document content, see get_usage_guide("editing").

Parámetros de entrada

  • namestringObligatorio

    Name of the type to expand, exactly as a schema names it, e.g. "DocumentBlockTable".

Parámetros de salida

Sin parámetros.

Get site structureGITBOOK_MCP_GET_SITE_STRUCTUREAcción

Returns a site's navigation structure: its sections, groups, external links (with destination URLs), and published spaces, with the paths and ids needed to read content. Pass the organization id (the same one used with list_sites) and the site id. Use it to map a site before reading or editing. Find a site first with list_sites; read page content with get_page.

Parámetros de entrada

  • siteIdstringObligatorio

    ID of the site to describe.

  • organizationIdstringObligatorio

    ID of the organization that owns the site.

Parámetros de salida

Sin parámetros.

Get subscription informationGITBOOK_MCP_GET_SUBSCRIPTION_INFORMATIONAcción

Returns a GitBook organization's subscription: whether it is on a trial, the free plan or a paid plan, when an active trial ends and how many days are left, and where to upgrade. Use it to answer questions such as "What plan am I on?", "How long is left on my trial?" or "How do I upgrade?", and before relying on features that need a paid site plan (sections, advanced customization, custom domains). Give the user upgradeUrl only when canManageBilling is true; otherwise, tell them an administrator of the organization has to upgrade, and share pricingUrl to compare plans.

Parámetros de entrada

  • organizationIdstringObligatorio

    ID of the organization whose subscription to read.

Parámetros de salida

  • planobjectObligatorio

    The plan in effect, which is the trial's plan while trialing.

  • trialobject

    The current or last trial. Absent when the organization never had one.

  • objectstringObligatorio
  • statusstringObligatorioenum

    Whether the organization is on a trial, the free plan, or a paid plan.

    trialfreepaid
  • pricingUrlstringObligatorio

    Public page comparing the GitBook plans.

  • upgradeUrlstring

    Where to upgrade in the application. Only set when canManageBilling is true.

  • canManageBillingbooleanObligatorio

    Whether the user is an administrator of the organization, and so can upgrade. Otherwise, they have to ask an administrator to upgrade.

Get usage guideGITBOOK_MCP_GET_USAGE_GUIDEAcción

Returns procedural guidance for working with GitBook through this server (content model and step-by-step recipes). Call it when unsure how to orient, read, or edit content. Omit topic to list available topics.

Parámetros de entrada

  • topicstring

    Guide topic to fetch. One of: content-model, orientation, membership, analytics, onboarding, editing, feedback, billing, site-structure, content-blocks. Omit to list topics.

Parámetros de salida

Sin parámetros.

Invoke operationGITBOOK_MCP_INVOKE_OPERATIONAcción

Runs one GitBook API operation discovered via search, for capabilities not covered by a curated tool. Pass operationId and params (path/query/body). Returns the operation's JSON response, or a one-line status when the operation answers with no content. The surface includes operations that are visible to the public or cannot be undone (for example publishing a site or merging a change request), so confirm before invoking one.

Parámetros de entrada

  • paramsobject
  • operationIdstringObligatorio

    Operation id to run (discover ids with search).

Parámetros de salida

Sin parámetros.

List sitesGITBOOK_MCP_LIST_SITESAcción

Lists the published sites in a GitBook organization, the usual entry point for orientation. Returns each site's title, visibility, hostname and id. To reach site content, use this first to find a site, then get_site_structure to see the spaces (where content lives) within it. Not for listing a site's content directly (use get_site_structure).

Parámetros de entrada

  • pagestring

    Pagination cursor from a previous call.

  • limitinteger

    Max number of sites to fetch (default 50).

  • organizationIdstringObligatorio

    ID of the organization whose sites to list.

Parámetros de salida

Sin parámetros.

List site topicsGITBOOK_MCP_LIST_SITE_TOPICSAcción

Lists the topics and subtopics a site's content and visitor questions are organised under, ranked by how many Ask AI questions they drew over the range, with each one's answered rate, open findings and id. Use it to find which topics visitors ask about most or struggle with, to resolve a topic by name, or to discover a topic id before filtering Ask AI questions, answers or stats by topic (the `topic` parameter of getSiteQuestionStats, listSiteQuestions and listSiteQuestionAnswers). Use getSiteTopicById for a single topic's summary.

Parámetros de entrada

  • tostring

    Count questions asked at or before this ISO timestamp.

  • fromstring

    Count questions asked at or after this ISO timestamp. Defaults to all time.

  • siteIdstringObligatorio

    ID of the site whose topics to list.

  • answeredstring[]

    Count only questions answered this way.

  • relevancestring[]

    Count only questions of this relevance, e.g. ["relevant"] to leave out spam.

  • channelTypestring[]

    Count only questions asked through these channels.

  • visitorTypestring[]

    Count only questions from these visitor types: humans, AI agents, or callers of unknown kind.

  • organizationIdstringObligatorio

    ID of the organization that owns the site.

Parámetros de salida

Sin parámetros.

Report tool feedbackGITBOOK_MCP_REPORT_TOOL_FEEDBACKAcción

Sends a feedback report to GitBook about this MCP server's tools or operations: a confusing tool or parameter, a failed or unusable call, or a missing capability. Use it only when the user asks to send feedback to GitBook. Describe the tool or operation itself; do not include the content it returned or any personal or workspace data.

Parámetros de entrada

  • goalstring

    What you were trying to accomplish, without any PII.

  • modelstring

    The model you are running as, if you know it.

  • detailstring

    What happened, step by step: what you were trying, what you called in what order, what you expected, and what you got instead. Enough for someone to follow without guessing. Never include parameter values.

  • targetstring

    The operation the tool was pointed at, when toolName is invoke_operation or describe_operation, e.g. "updateChangeRequestContent". Leave out for search: a search that found nothing has no operation to name.

  • summarystringObligatorio

    One short sentence naming the problem, in your own words.

  • categorystringObligatorioenum

    What kind of problem this was. usability: hard to understand or use correctly, such as a confusing name or unclear parameters. reliability: behaved inconsistently, failed unexpectedly, or returned unusable results. documentation: the tool or operation's own description, schema or guidance was missing, unclear or misleading (not about published documentation pages). efficiency: took more calls, steps or tokens than it should have. interoperability: did not compose well with other tools, operations or formats. could-not-accomplish: nothing available could do what was needed.

    usabilityreliabilitydocumentationefficiencyinteroperabilitycould-not-accomplish
  • onDemandboolean

    True when the user explicitly asked you to report this.

  • severitystringenum

    low for minor friction, high for a task you could not complete.

    lowmediumhigh
  • toolNamestring

    Name of the tool or entry point the problem was with, e.g. "invoke_operation". Omit when nothing available could do what you needed.

  • callCountinteger

    How many times you tried.

  • workaroundstring

    How you worked around it, if you managed to.

  • successCountinteger

    How many of those worked.

  • correlationIdstring

    The correlationId you were given when the call failed. Copy it exactly; it is how the report is matched to the logs of that call.

Parámetros de salida

Sin parámetros.

SearchGITBOOK_MCP_SEARCHAcción

Searches the GitBook API operations this server can run, returning matches (id, method, path, summary) to run with invoke_operation. Use describe_operation for an operation's inputs. Use it to find operations beyond the curated tools. Read-only.

Parámetros de entrada

  • querystringObligatorio

    Keywords matched against operation ids, summaries, paths and descriptions.

Parámetros de salida

Sin parámetros.

Submit or merge change requestGITBOOK_MCP_SUBMIT_OR_MERGE_CHANGE_REQUESTAcción

Merges a change request, publishing its edits to the space. This is destructive and irreversible. Use it to finish the editing flow after create_change_request and editing pages via updateChangeRequestContent. Reports conflicts instead of merging when the change request is out of date.

Parámetros de entrada

  • spaceIdstringObligatorio

    ID of the space the change request belongs to.

  • changeRequestIdstringObligatorio

    ID of the change request to merge.

Parámetros de salida

Sin parámetros.