Connect an AI agent

An AI app can manage your fortropp websites for you: create them, upload and change files, edit fortropp.toml, and make them live. You approve it once, and you can disconnect it at any time.

Add fortropp to an app

In an AI app, add a custom connector (sometimes called an MCP server) with this address:

http://sveltekit-prerender/api/mcp

The app then opens a fortropp page. Sign in if you need to, choose which websites it may manage, and click Allow. That's it: the app can now use fortropp whenever you ask it to.

In Claude Code, for example:

claude mcp add --transport http fortropp http://sveltekit-prerender/api/mcp

then run /mcp and choose Authenticate.

If an app asks for headers instead

Some apps can't sign in yet and ask for request headers instead. Create a token on the API & Agents page and add this header:

Authorization: Bearer <your token>

Treat the token like a password: anyone who has it can manage the websites it covers.

What an agent can do

  • List and create websites
  • Upload, read and delete files
  • Read and change fortropp.toml
  • See what has changed since the newest version, and publish
  • Make a version live, or take a website offline
  • List a website's domains

Adding and verifying domains stays in the dashboard.

Nothing goes live until you say so

Everything an agent changes lands in a draft that visitors don't see, the same draft as the dashboard's. When you're satisfied, publish it: ask your agent to, or click Publish in the dashboard. Agents are told to show you what will change and wait for your OK first.

Disconnecting

Go to API & Agents and click Disconnect next to the agent. It loses access straight away.