AI-assisted development

AI coding tools with SSH access can work on your Templ website: inspect files, edit code, and manage WordPress with WP-CLI. Templ does not currently offer an MCP server or a supported AI integration for panel-only operations.

Connect your AI tool

Use an AI tool that can run terminal commands and connect over SSH. A chat-only assistant cannot connect by itself.

Follow SSH & WP-CLI to find your connection details and configure an SSH alias. Set up SSH keys locally; never paste passwords or private keys into an AI chat.

Once connected, your AI tool can use the same commands as you, including WP-CLI, git, and the Templ CLI for tasks such as purging cache or restarting PHP.

Work safely

Use a staging site where possible and create a backup before changes. Ask the AI to explain its plan and wait for approval before modifying anything.

SSH access can expose website files, database credentials, and customer data to your AI tool. Check its privacy settings and data-handling terms before granting access.

Example prompt

Replace <ssh-alias> with your configured SSH alias and describe the task:

Connect to my Templ website using SSH alias <ssh-alias>.

Task: [describe what you want done]

Start with read-only inspection. Do not display secrets or customer data.
Explain your proposed changes and wait for my approval before modifying
anything. Before changes, confirm whether this is staging or production
and that a backup is available. Afterward, verify the result and summarize
what changed.

FAQ

Does Templ have an MCP server?

Not currently. MCP (Model Context Protocol) lets AI tools connect to external services. For now, use an AI tool with SSH capabilities to work on your website.

Can AI perform actions in the Templ Panel?

There is no supported AI integration for panel-only operations; you still need to use the Templ Panel for those. Some tasks available in the Panel, such as purging cache or restarting PHP, can also be performed over SSH.