Documentation
How this docs website is structured and how to adapt it for customers.
What It Does
The docs app (apps/creatorem) uses Fumadocs with MDX content under content/docs and exposes per-page LLM text endpoints.
When To Use
- Customizing docs architecture.
- Preparing docs for MCP retrieval.
Prerequisites
- Understand Fumadocs source config and docs route setup.
Important
This page describes the standard kit integration path; adapt app-specific paths and config names when your project differs.
How To Use
Core pieces:
source.config.tsdefines docs source + frontmatter schema.lib/fumadocs/source.tsloads docs tree under/docs.app/(docs)/docs/[...slug]/page.tsxrenders docs pages.app/llms.mdx/[...slug]/route.tsexposes page-level LLM text.app/mcp-index.json/route.tsexposes generated capability index for MCP consumers.scripts/generate-mcp-index.mtsandscripts/check-mcp-contract.mtsgenerate and validate machine-readable contracts.
For MCP readiness, keep page structure predictable and include machine-readable context blocks.
MCP Context
capability: docs_platform
entrypoints:
- apps/creatorem/source.config.ts
- apps/creatorem/content/docs/
- apps/creatorem/app/llms.mdx/[...slug]/route.ts
- apps/creatorem/app/mcp-index.json/route.ts
inputs:
- mdx_docs_content
outputs:
- rendered_docs_and_llm_text_endpoints
- generated_mcp_capability_index
constraints:
- docs tree and metadata must stay coherent
side_effects:
- static docs generationAgent Recipe
- Update docs content and meta files together.
- Validate docs routes and LLM route output.
- Keep docs section contract stable for MCP consumers.
Troubleshooting
- Broken side navigation usually comes from invalid
meta.jsonreferences. - Broken LLM page output usually means unresolved docs slug.
Related
Roadmap
Publish product roadmap items from Notion-backed content.
Settings
Build typed settings pages and typed settings reads with @kit/settings.
How is this guide?
Last updated on 3/23/2026