# Source hosts

## Providers

Source has no provider config. Each loader, such as `glob()` or `github()`, reads its origin from the server.

| Loader | Origin | Runtime requirement |
| --- | --- | --- |
| `file()`, `markdown()` | Local file system below the Source root | Reads with `node:fs`, so the files must exist at runtime. Inline `content` needs no file system. |
| `glob()` | Disk under `vite dev`; the server bundle after a build | None with literal options, because the build bundles the files. Else the files must exist at runtime. |
| `files()` | Memory | None. It serves the files you give it. |
| `github()` | GitHub repository | Network access to GitHub. When `root` or `include` narrows the files, it tries a sparse Git checkout first, then the repository tarball. |
| `mcpResources()` | MCP server | An MCP client, or an `http` or `sse` transport the server can reach. |
| `defineSource()` | Any origin | What your loader uses. |

Collections and Content need generated routes. `vitehub()` and the Nuxt module add `hubSource()` for every preset. Direct reads and the in-process registry do not need Vite.

<!-- vitehub-docs:section-links -->
## In this section

- [Overview](https://vitehub.dev/raw/docs/source.md)
- [Get started](https://vitehub.dev/raw/docs/source/get-started.md)
- [Configure](https://vitehub.dev/raw/docs/source/configure.md)
- [Server API](https://vitehub.dev/raw/docs/source/server-api.md)
- [Hosts](https://vitehub.dev/raw/docs/source/hosts.md) (this page)
- [Limits and errors](https://vitehub.dev/raw/docs/source/limits-and-errors.md)

Next: [SOURCE_R0007](https://vitehub.dev/raw/docs/source/diagnostics/source_r0007.md)

All pages: [llms.txt](https://vitehub.dev/llms.txt)
