AI config
These options configure Markdown generation and browser agent tools. llms and webMcp are top-level options in rspress.config.ts.
llms
- Type:
- Default:
false
Whether to enable SSG-MD to generate llms.txt, llms-full.txt, and Markdown files for each page, making your documentation easier for large language models to understand.
Enabling llms also enables the Markdown copy and AI tool UI by default. Use themeConfig.llmsUI to customize or disable these controls.
Use llmsTxt to compose the complete llms.txt content from site metadata and page sections. See Customize llms.txt for details.
llms is an experimental feature. If SSG-MD cannot be enabled due to SSR incompatibility, use @rspress/plugin-llms as a fallback.
For detailed usage, configuration options, and implementation principles, see llms.txt (SSG-MD).
webMcp
- Type:
boolean | { exposedTo?: string[] } - Default:
true
Expose built-in documentation tools through the browser's native WebMCP API. Set webMcp: false to disable only the built-in tools. You can still use the useWebMcp hook to register custom tools. Browsers without WebMCP support continue to render the site normally.
Use exposedTo to allow specific secure origins to discover the tools:
See WebMCP for available tools, browser requirements, and cross-origin access.