Lunar’s documentation is designed to work seamlessly with AI-powered development tools. Whether using an AI assistant to generate storefront code or querying the docs from an IDE, several built-in features make this possible.Documentation Index
Fetch the complete documentation index at: https://docs.lunarphp.com/llms.txt
Use this file to discover all available pages before exploring further.
llms.txt
The Lunar documentation site automatically provides anllms.txt file at the root of the docs domain. Similar to how sitemap.xml helps search engines index a website, llms.txt helps large language models discover and understand documentation content.
Two files are available:
| File | URL | Description |
|---|---|---|
llms.txt | docs.lunarphp.com/llms.txt | Structured listing of all pages with descriptions |
llms-full.txt | docs.lunarphp.com/llms-full.txt | Full documentation content in a single file |
llms.txt file lists every documentation page along with its description, making it useful for AI tools that need to locate specific topics. The llms-full.txt file consolidates all documentation into one file, which is ideal for AI tools that benefit from ingesting the entire knowledge base at once.
MCP Server
Lunar’s documentation includes a built-in Model Context Protocol (MCP) server. MCP allows AI applications to search and retrieve documentation directly, providing more accurate and up-to-date responses than relying on the model’s training data alone. The MCP server is available at:Connecting from AI Tools
The MCP server supports filtering by documentation version using a
version parameter (e.g., v1.x or v0.x).Claude Code
Cursor
Open the Command Palette and select MCP: Add Server, then add the following to the MCP configuration:VS Code
Create or update.vscode/mcp.json in the project root:
Claude (Web)
Navigate to Settings > Connectors > Add custom connector, then enter a name and the MCP server URL.Markdown Export
Any documentation page can be viewed as plain Markdown by appending.md to its URL. For example:
Contextual Menu
Each documentation page includes a contextual menu that provides quick access to AI-related actions:- Copy as Markdown for pasting into any AI tool
- Open in Claude, ChatGPT, or Perplexity with the current page loaded as context
- Install MCP server directly into Cursor or VS Code