Content source
Load docs from local, remote, or GitHub sources
fromsrc supports pluggable content sources for docs, AI routes, and MCP handlers.
Local source
Use defineContent for local filesystem docs:
Remote source
Use createRemoteSource when docs are hosted on a remote fromsrc site:
Default remote endpoints:
- list:
/api/docs?limit=1000 - page content:
/api/raw/[...slug] - search index:
/api/search-index - fallback index:
/llms.txt
GitHub source
Use createGithubSource to read docs directly from a repository:
createGithubSource provides:
- page listing
- page content loading
- cached full-text search documents for MCP search tools
MCP integration
Wire any source into the MCP handler: