Disable MCP server endpoint
You can now fully disable the MCP server on your docs site by setting page-actions.options.mcp: false in docs.yml. When disabled, the /_mcp/server endpoint returns 404, the MCP URL is omitted from llms.txt and agent prompts, and the “Connect to Claude Code” / “Connect to Cursor” buttons are hidden.
This is particularly useful for authenticated docs sites where unauthenticated AI agents discover the endpoint but can’t use it.
docs.yml