-
Notifications
You must be signed in to change notification settings - Fork 17
Help center/ask ai: add doc MCP server #459
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
0b57520
help center/ask ai: add doc mcp server
grossyoan 9cb2b07
help center/ask ai: removed bold texts
grossyoan 9af52c1
ask ai capabilities: page renamed, redirect done, and details about s…
grossyoan 5a08f44
help center: headless doc api page added
grossyoan ba95d4a
help center/portal api and mcp server: small copy adjustments
grossyoan 44a41ae
help center/ask ai: api reference url updated
grossyoan File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
37 changes: 37 additions & 0 deletions
37
src/_help/customization-options/headless-doc-portal-api.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,37 @@ | ||
| --- | ||
| title: Headless doc portal (API) | ||
| --- | ||
|
|
||
| - TOC | ||
| {:toc} | ||
|
|
||
| The Portal API provides access to API documentation hosted on Bump.sh programmatically. The API returns structured content through a REST API call, with the same level of content as the visual API doc. | ||
|
|
||
| > The Portal API currently works on public docs. | ||
| {: .info} | ||
|
|
||
| ## When to use the Portal API | ||
|
|
||
| The Portal API is useful when you want to build your own integration on top of Bump.sh documentation, without relying on the MCP protocol. Typical use cases include: | ||
|
|
||
| - Integrating documentation content into your own developer portal or tooling | ||
| - Building a custom search interface for your API documentation | ||
| - Feeding structured doc content into AI pipelines or RAG systems | ||
| - Automating documentation audits or content extraction | ||
|
|
||
| > If you're looking to connect your AI assistant to an API doc portal hosted on Bump.sh, the [portal MCP server](/help/documentation-experience/ask-ai-capabilities/#mcp-server) is the way to go. It's built on top of the Portal API. | ||
| {: .info} | ||
|
|
||
| ## Explore the documentation structure | ||
|
|
||
| You can use the [`GET /list`](https://https://developers.bump.sh/doc/portal/operation/operation-get-list) endpoint to list all child pages under a given URL in the portal hierarchy. It returns each page's URL, title, type, and a short description. It's useful as a starting point to understand what a portal contains before fetching specific pages. | ||
|
|
||
| ## Search across documentation | ||
|
|
||
| You can use the [`GET /search`](https://https://developers.bump.sh/doc/portal/operation/operation-get-search) endpoint to search across all documentation pages in a portal by keyword. Results include URL, title, type, and a text excerpt for each page. You can optionally filter by page URL or by page type (`operation`, `model`, `guide`, etc.). | ||
|
|
||
| ## Retrieve page content | ||
|
|
||
| You can use the [`GET /fetch`](https://https://developers.bump.sh/doc/portal/operation/operation-get-fetch) endpoint to retrieve the full content of one or more pages by their URLs (up to 10 per request). Content is returned in Markdown format. | ||
|
|
||
| A common flow is to call `GET /search` first to identify relevant pages, then `GET /fetch` to read their full content. | ||
126 changes: 126 additions & 0 deletions
126
src/_help/documentation-experience/ask-ai-capabilities.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,126 @@ | ||
| --- | ||
| title: Ask AI capabilities | ||
| --- | ||
|
|
||
| - TOC | ||
| {:toc} | ||
|
|
||
| Enable LLMs and AI agents to access your doc portal using Bump.sh Ask AI capabilities. When enabled, your documentation are made accessible through an MCP server and served as Markdown pages, so AI assistants and agents can search, navigate, and read your doc portal. | ||
|
|
||
| ## Enable Ask AI | ||
|
|
||
| Ask AI can be enabled or disabled from your documentation or hub settings, under the "Ask AI" section. | ||
|
|
||
|  | ||
|
|
||
| Enabling these capabilities: | ||
| - Exposes an MCP server for the API doc/hub, available by adding `/mcp` at the end of the URL. | ||
| - Makes every page available as Markdown (by appending `.md` to any URL). | ||
| - Generates a **[llms.txt](/help/publish-documentation/seo-geo/#llmstxt-for-llm-crawlers)** file at the root of your documentation. | ||
|
|
||
| ## Ask AI dropdown in the documentation | ||
|
|
||
| Many API consumers now rely on AI tools to help them quickly discover API capabilities. The Ask AI dropdown menu offers documentation users a way to either add the doc MCP server, open the current page in Claude/ChatGPT, or access the Markdown version. | ||
|
|
||
|  | ||
|
|
||
| Available options: | ||
|
|
||
| | Option | Description | | ||
| |---|---| | ||
| | **Add to Cursor** | Adds the doc/hub MCP server to Cursor in one click. | | ||
| | **Add to VS Code** | Adds the doc/hub MCP server to VS Code in one click. | | ||
| | **Add to other AI tools (MCP)** | Shows the MCP server URL and a ready-to-use `mcp.json` snippet. | | ||
| | **Open in ChatGPT** | Opens the current page in ChatGPT with the right Markdown page pre-linked. | | ||
| | **Open in Claude** | Opens the current page in ChatGPT with the right Markdown page pre-linked. | | ||
| | **View as Markdown** | Opens the Markdown version of the current page. | | ||
| | **Copy as Markdown** | Copies the Markdown content of the current page to the clipboard. | | ||
|
|
||
| ## MCP server | ||
|
|
||
| > Docs MCP servers are currently only available for public docs/hubs. | ||
| {: .info} | ||
|
|
||
| When Ask AI is enabled, Bump.sh exposes an MCP server for your doc/hub. AI agents can use it to search, navigate, and read your API documentation programmatically, without having to scrape HTML pages or parse raw OpenAPI files. As search results are computed on our side, based on your documentation, it reduces the risk of AI hallucinations: the AI should just output information provided by the MCP server. | ||
|
|
||
| The MCP server URL is shown in your doc/hub settings and accessible from the Ask AI dropdown. | ||
|
|
||
| > Note that each MCP server URL is scoped to a specific doc or hub: it will only expose information about the doc/hub it was activated on, not your entire Bump.sh doc portal. | ||
| {: .info} | ||
|
|
||
| ### Available tools | ||
|
|
||
| The MCP server exposes three tools: | ||
|
|
||
| | Tool | Description | | ||
| |---|---| | ||
| | **list_pages** | Lists all child pages under a given URL in the documentation hierarchy. Returns each page's URL, title, type, and description. Useful as a starting point to explore what documentation is available before fetching specific pages. | | ||
| | **search** | Searches across all documentation pages by keyword. Supports filtering by type (operation, schema, topic, authentication, webhook, etc.). Returns up to 20 matching results with their URL, title, type, and a text excerpt. | | ||
| | **get_pages** | Retrieves the full content of one or more pages by their URLs. Accepts up to 10 URLs per request. Use this when you already know which pages you need, for example from `search` or `list_pages` results. | | ||
|
|
||
| A typical request from an API user to the LLM, like "How do I do that using this API" will trigger the **search** tool to get the right API/operation, and then a **get_pages** to get the actual content. | ||
|
|
||
| ## Markdown rendering | ||
|
|
||
| Every page of your documentation is available as Markdown by appending `.md` to its URL. Markdown versions strip the surrounding UI, providing leaner context for AI tools and reducing token costs. | ||
|
|
||
| To access the Markdown version of a documentation, add `.md` at the end of the URL (or `/source.md` if you have a custom domain, when the URL is the root of your documentation). | ||
|
|
||
| [On a documentation root](https://developers.bump.sh/doc/workspace/source.md) *(example truncated for visibility purposes).* | ||
| ```markdown | ||
| # Bump.sh Api | ||
|
|
||
| ## Description | ||
| This is version `1.0` of this API documentation. Last update on Jun 16, 2025. | ||
| This is the official Bump.sh API documentation. Obviously created with Bump.sh. | ||
|
|
||
| The Bump.sh API is a REST API. It enables you to [...] | ||
|
|
||
|
|
||
| ## Servers | ||
| - https://bump.sh/api/v1: https://bump.sh/api/v1 () | ||
|
|
||
|
|
||
| ## Endpoints | ||
| - [Branches](https://developers.bump.sh/doc/workspace/group/endpoint-branches.md) | ||
| - [Diffs](https://developers.bump.sh/doc/workspace/group/endpoint-diffs.md) | ||
| - [...] | ||
|
|
||
|
|
||
| ## Webhooks | ||
| - [Documentation change](https://developers.bump.sh/doc/workspace/group/webhook-documentation-change.md) | ||
| ```` | ||
|
|
||
| [For a specific operation](https://developers.bump.sh/doc/workspace/operation/operation-post-versions.md) *(example truncated for visibility purposes).* | ||
| ```markdown | ||
| # Create a new version | ||
|
|
||
| **POST /versions** | ||
|
|
||
| Deploy a new version for a given documentation, which will become the current version. | ||
|
|
||
|
|
||
| ## Servers | ||
| - https://bump.sh/api/v1: https://bump.sh/api/v1 () | ||
|
|
||
|
|
||
| ## Authentication methods | ||
| - Authorization token | ||
| - Basic token | ||
|
|
||
|
|
||
| ## Body parameters | ||
| Content-type: application/json | ||
| The version creation request object | ||
| - **documentation** (string) | ||
| UUID or slug of the documentation. | ||
| - [...] | ||
|
|
||
| ## Responses | ||
| ### 201: Documentation version successfully created | ||
|
|
||
| #### Body Parameters: application/json (object) | ||
| - **id** (string) | ||
| Unique id of your version. | ||
| - [...] | ||
| ``` |
75 changes: 0 additions & 75 deletions
75
src/_help/documentation-experience/ask-ai-markdown-rendering.md
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.