WebMCP
Rspress enables webMcp by default, so agents can use WebMCP to search, read, and navigate Rspress documentation. For more details, see ChatGPT - Site tools.
Send this prompt to Codex or another agent to see which WebMCP tools the page offers.
rspress.config.ts
Set webMcp: false to disable the Rspress built-in tools. The useWebMcp hook remains available for registering custom tools.
Built-in tools
View tool input schemas
toolInputSchemas.json
Cross-origin agents
Use webMcp.exposedTo to allow specific secure origins to discover tools.
Custom tools
Use useWebMcp from @rspress/core/runtime to register tools in your own components. Tools are automatically removed when the component unmounts.