Documentation

Connect an AI assistant

Claude, ChatGPT, Copilot, Gemini or any other MCP client can change the site. A person approves every change.

The bridge is off on a new site: until an admin turns it on under Admin → Settings → MCP (for an hour, a day… or until turned off), its address answers like a page that doesn't exist. The admin's top bar shows whether it is on, with a button to turn it off.

Most assistants (Claude, ChatGPT, Copilot Studio, VS Code, Gemini CLI) only need the bridge address, https://example.com/_app/mcp.php: they open a sign-in page where an editor or admin logs in and approves them (OAuth 2.1). Connected apps are listed, and can be disconnected, under Admin → Users → AI assistants.

For clients that can't sign in, create a token on the same page. It shows ready-to-paste snippets. For Claude Code:

claude mcp add --transport http lou https://example.com/_app/mcp.php --header "Authorization: Bearer lou_…"

Apps that take only a URL and can't sign in can use https://example.com/_app/mcp.php?key=lou_… with no authentication set. The assistant only ever writes to its own draft. Templates it writes are checked against an allowlist, because template PHP runs on the server at build time. Nothing goes live until someone publishes it.

Set 'git' => ['commit' => true] in site/config.php to commit site/ after each publish, if the install is a Git checkout. Lou never pushes.

This page is generated from README.md in the Lou repository, so fixes go there. View the source on GitHub