Expand description
Documentation pages embedded in the binary and served to agents as MCP
resources (featherbit://docs/...). The docs site’s Markdown is the
single source of truth for plugin config keys, so agents read the same
pages humans do — minus Docusaurus frontmatter and JSX.
Structs§
- DocPage
- A listable page. Only constructed by
list_pages, which ismcp-only. - Docs
Assets 🔒 website/docs/subset compiled into the binary (~300 KB).
Enums§
- DocSection
- Which docs directory a page lives in.
Constants§
- DOCS_
URI_ PREFIX - URI prefix of every documentation resource.
Functions§
- clean
- Strips frontmatter (keeping the title as an H1),
importlines, and JSX elements (single-line<span …>…</span>and multi-line<Component … />blocks), and rewrites relative.mdlinks tofeatherbit://docs/…URIs. Fenced code blocks (opened/closed by a line whose trimmed form starts with```) pass through verbatim — no import/JSX/link processing — since example bodies routinely contain<Uppercase...>tokens (e.g. an RFC 5424<PRI>...syslog frame) that would otherwise be mistaken for an unterminated JSX block, silently swallowing everything after it for the rest of the page. - concept_
page - A concepts page by file stem (e.g.
supernodes). - frontmatter 🔒
- Frontmatter
title/description(both may be empty). - guide_
page - A how-to guide (
lua-scripting,debugging,routing, …). Only reached viaread_uri. - link_re 🔒
- list_
pages - Every page, for
resources/list. Only used by the MCPresources/listhandler insrc/mcp/server.rs. - page 🔒
- plugin_
file 🔒 - The file behind a node type’s page (
listener/clientshare one). - plugin_
page - The cleaned page for a node type.
- raw 🔒
- read_
uri - Resolves a
featherbit://docs/{section}/{name}URI. Only used by the MCPresources/readhandler insrc/mcp/server.rs. - reference_
page - A reference page by file stem (
context-vars,conditions,templates). Only reached viaread_uri, which ismcp-only (the Admin API’srender_promptcallsplugin_page/concept_pagedirectly).