---
id: guide.serving-adapters
title: Choose how to serve content
summary: Choose a Node or independent runtime for MCP and in-app content delivery.
type: explanation
area: publishing
subarea: publishing-hosting
canonical: /publish/serving-adapters
---

# Choose how to serve content

> Documentation index: [llms.min.txt](https://www.shoalrun.com/llms.min.txt) · Document manifest: [documents.json](https://www.shoalrun.com/documents.json)

Navigation section: [Docs](https://www.shoalrun.com/.well-known/shoalrun/navigation/docs-50f26fe22670.txt) (ID: docs). [All sections and pages](https://www.shoalrun.com/llms.min.txt)

Breadcrumbs: [Docs](https://www.shoalrun.com/what-is-shoalrun.md) > Publish and maintain > Choose how to serve content

**Updated: 2026-11-15.**

**Available since: 1.3.0.**

Choose according to what your readers or application need. A documentation website, an MCP endpoint, and in-app help are separate interfaces; you can provide one or combine them.

A **serving adapter** is the program that reads compiled content and answers requests. Shoalrun supplies built-in Node hosting, an embeddable Node MCP handler, and a Python reference adapter. You can also implement a supported data contract in another runtime.

## Choose an interface

Start with the task in the first column. The last column names any export you must create separately from the website build.

| I want to…                                         | Use this path                                                                                                     | Separate export                                                              |
| -------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------- |
| Publish a documentation website                    | Build the site and use a static host or Shoalrun's Node server.                                                   | None.                                                                        |
| Add MCP using Shoalrun's Node server               | Enable `mcp`, build the site, and run `shoalrun serve`.                                                           | None; the build already includes its MCP data.                               |
| Add MCP using Shoalrun's generated Vercel function | Enable `mcp` and generate the Vercel deployment output.                                                           | None; the deployment includes its MCP data.                                  |
| Mount MCP inside my existing Node backend          | [Embed the MCP handler](https://www.shoalrun.com/publish/embed-mcp.md).                                           | A [discovery bundle](https://www.shoalrun.com/publish/discovery-bundles.md). |
| Serve MCP with Python or my own implementation     | Use the [Python adapter](https://www.shoalrun.com/publish/python-serving.md) or implement the discovery contract. | A discovery bundle.                                                          |
| Display help or onboarding content in my app       | Read a content export through the static manifest client.                                                         | A [content export](https://www.shoalrun.com/content-delivery/select.md).     |
| Deliver app content through a REST endpoint        | Mount the Content REST handler in your backend, or use the Python adapter's content interface.                    | A content export.                                                            |

For the built-in Node and Vercel MCP paths, build and deploy the site. Its selected MCP data is already included. The separate `shoalrun mcp export` command is for handing discovery data to a separately hosted adapter, including the Node embedding API. Choosing that export doesn't imply changing programming languages.

## Choose a runtime

The Shoalrun compiler needs Node.js. Your serving runtime depends on the path above. The built-in and embedded implementations use Node. The Python reference can serve MCP and Content REST without Node installed on the server. A static host can deliver a website or in-app export without running either adapter.

MCP needs a running service; static hosting alone can't answer MCP requests. Keyword search and documentation reads don't need embeddings, a database, or a model provider. Your host supplies authentication, TLS, routing, and operational controls where applicable.

## Understand the outputs

A **website build** contains the documentation website, Markdown pages, indexes, and assets. Enabling MCP adds the scoped data used by Shoalrun's built-in endpoint.

A **discovery bundle** extracts the selected Markdown, identities, and search data for another MCP host or discovery service. It's the input to the Node embedding API and the Python adapter's `--discovery` option. See [what the bundle is for](https://www.shoalrun.com/publish/discovery-bundles.md).

A **content export** contains selected pages, approved standalone sections, or snippet instances as passive HTML or Markdown, with their assets. Your application reads it directly or through Content REST and provides the UI. The Python adapter's `--content` option reads this export; content-only serving doesn't need a discovery bundle.

A discovery section can include its parent page's preamble. An in-app section must be declared suitable for standalone use. These are different reading contracts. [Content delivery and agents](https://www.shoalrun.com/content-delivery/agents.md) explains the context each retains.

## Combine MCP and in-app help

Choose the inputs for each interface independently:

- With Shoalrun's built-in MCP hosting, deploy the website build and create a content export for your app. A separate discovery export isn't required.
- With an embedded or independent MCP host, provide a discovery bundle for MCP and a content export for the app. For example, one Python process can receive both `--discovery` and `--content`.

The two exports serve different purposes; one doesn't replace the other. A content export's selection is independent of the website's `site.contentFilter`, so set the export target's filter explicitly when its selection matters.

## Bind each service to its selected content

Build selection happens before serving. Facet names and choices come from your project configuration; Shoalrun doesn't define customer or internal roles. Bind each service to the intended bundle instead of letting a request choose a more privileged directory.

Different selected builds can share document IDs and publication coordinates while containing different text. Include the bundle revision in cache identity, and apply your own access controls where needed. The [audience-build example](https://www.shoalrun.com/publish/customer-internal-content.md) uses fictional customer and internal choices to demonstrate one possible configuration.

## HTML, Markdown, and agents

The website renders HTML pages with its configured theme and browser controls. MCP returns selected Markdown and discovery metadata; an agent doesn't need to operate the website. In-app exports provide passive HTML or Markdown, and your application supplies its own layout and styling. Choosing a runtime changes serving, not audience selection or the content's meaning.

## Related reading

### Next steps

- [Embed MCP in a Node application](https://www.shoalrun.com/publish/embed-mcp.md) — Mount MCP in an existing Node backend.

- [Serve MCP and content with Python](https://www.shoalrun.com/publish/python-serving.md) — Serve compiled content in Python without Node.

- [Example: serve two audience builds](https://www.shoalrun.com/publish/customer-internal-content.md) — Follow an example of configured audience selections and application exports.

### Reference while working

- [Discovery bundle contract](https://www.shoalrun.com/publish/discovery-bundles.md) — Read the portable discovery data contract.
