Appearance
AI Agents
Connect Claude, ChatGPT, Cursor or any other MCP client to the site and it runs the site for you: posts, media, settings, and everything the installed modules add. You give the agent the site's address, sign in to the site and approve it — no key to copy — and it works with your rights, nothing more.
The other way: AI inside the admin
Here your agent, with your subscription, works on the site from the outside. For the site itself to ask a model — a "Translate with AI" button, with an API key saved on the site and a monthly budget — see AI Writer. The same tools in a chat inside the admin, with the site's model, are the Assistant; Three Ways to Use AI compares them.
Video lessons
First connect an agent — the first lesson shows it, from the address to a connected agent you can revoke — then watch it at work: clearing out demo content and bringing a post back, filling the site with sample content, SEO and redirects, the day's orders, the shop's sales, the site's health. The chat on the left is a real agent's, and every tool it calls changes the site on the right.
Connecting an agent
Turning it on
- AI agents → Settings: turn on AI agents. Until then
/and its sign-in answer 404.mcp - The permission Let AI agents work with my application passwords (
use_). Administrators have it; give it to another role on the roles screen only if that role should have agents. A user without it is refused on the page that asks to approve an agent, and so is any key of theirs.ai_ agents - Connect an agent: AI agents → Connect an agent shows the address and what to do in each client.
Signing in
The address is https://. Clients that sign in with OAuth — all of those below — need nothing else: the first time, they open the site in a browser; you sign in (two-factor included, if it is on) and see a page that names the agent, where it will send you back and what it will be able to do. Approve, and the agent is connected. No key to copy.
claude.ai — on the web, on phones and in Claude Desktop, whose connectors are claude.ai's: Settings → Connectors → Add custom connector — any name and the address https://, the advanced settings left empty — then Add and Connect. In a new chat, turn the connector on in the tools menu and ask away.
ChatGPT: Settings → Apps & Connectors → Advanced settings, turn Developer mode on, then Create — any name, the address, OAuth as the authentication — and connect.
Claude Code, Cursor, VS Code and Claude Desktop sign in the same way the first time the agent uses the site: a browser window opens, you sign in and approve. Add to Cursor and Add to VS Code on the dashboard or the Connect an agent page install the server in one click; or:
bash
claude mcp add --transport http kitloom https://your-site/mcp
# then start claude: /mcp shows the server and signs in when askedjson
// .cursor/mcp.json, or the mcp.json of other clients
{
"mcpServers": {
"kitloom": { "url": "https://your-site/mcp" }
}
}json
// claude_desktop_config.json, through mcp-remote, which signs in the same way
{
"mcpServers": {
"kitloom": { "command": "npx", "args": ["mcp-remote", "https://your-site/mcp"] }
}
}Connected agents
Connect an agent lists the agents you approved — the name each gave itself, the site it said it comes from, since when:
- Filament a table under Connected agents, with Revoke on each row;
- Nova the same panel: tick the agents to revoke and press Save.
A revoked agent's next request is refused, and so is its next attempt to renew its access. To use it again, connect it again. Whoever manages options may revoke anyone's.
An agent's access token lasts a day; it renews it by itself for 90 days, after which it asks you to sign in again. An agent connected with OAuth reads and writes as you — one scope, mcp:; for an agent that may only read, use a read-only key.
Keys, for the rest
A key is an application password of the REST API, sent as Authorization:: for a client that does not sign in with OAuth, for read-only access, for automations, and for the address with the key in it. Connect an agent → Create a key makes one for you and shows it once, with the settings to paste; any application password works the same way. A key that writes lets the agent create and change records; a read-only key gets the reading tools only. Revoke a key on the Application Passwords screen and the agent stops at once.
bash
claude mcp add --transport http kitloom https://your-site/mcp --header "Authorization: Bearer 12|…"json
// .cursor/mcp.json
{
"mcpServers": {
"kitloom": {
"url": "https://your-site/mcp",
"headers": { "Authorization": "Bearer 12|…" }
}
}
}json
// claude_desktop_config.json, through mcp-remote
{
"mcpServers": {
"kitloom": {
"command": "npx",
"args": ["mcp-remote", "https://your-site/mcp", "--header", "Authorization: Bearer 12|…"]
}
}
}claude.ai takes a key too, for a read-only connector: Settings → Connectors → Add custom connector:
| Field | What goes in |
|---|---|
| Name | anything, e.g. My site |
| URL | https:// |
| Authentication | No sign-in |
| Request headers → Add header | Authorization, with the value Bearer 12|… |
Create a key shows the URL and the header's value ready made.
A client without headers
A client that neither signs in nor sends headers can take the key inside the address instead, with the bar of the key written as a dot:
https://your-site/mcp/k/12.…Such an address is a password
It lands in the web server's logs, in browser histories and in error reports that keep the URL, so use OAuth or the header wherever the client has one. Make a key of its own for it, with an expiry, and revoke it when it is no longer used: a revoked or expired address answers 404, as one that never was. kitloom- set to false turns these addresses off.
On the same machine
php artisan mcp: serves the same tools over stdio — for Claude Code working in the project itself:
bash
claude mcp add kitloom -e KITLOOM_AI_USER=admin -- php artisan mcp:start kitloomIt acts as the user KITLOOM_ names (login or email), who needs use_ too; with nobody named, every tool refuses. It does not depend on the settings switch: whoever runs it has the console anyway.
How it works
A kitloom site can be run by an AI agent — Claude, Cursor or any other client of the Model Context Protocol. kitloom/ is an MCP server at /: its tools read and write posts, pages, terms, media and settings, tell what lives at an address and show a page as the site renders it. Installed modules add tools of their own — menus, widgets, SEO, redirects, custom fields, forms, comments, the shop, sliders, bookings, courses, listings, languages, webhooks, maintenance mode, backups, the activity log, Site Health and more.
The agent works with the rights of the user who connected it — who approved it on the site, or whose key it holds — through the same code the admins use. It cannot do what that user may not do, it cannot delete anything for good, and revoking it stops it at once.
| Package | Gives |
|---|---|
kitloom/ | The MCP server, the core tools, the local server for the console |
kitloom/ / kitloom/ | The AI agents section: Connect an agent, Settings, How it works |
bash
composer require kitloom/ai kitloom/ai-filament # or kitloom/ai-novaIt needs the REST API module: its application passwords are the agents' keys. Laravel Passport, which signs agents in, comes with the module; nothing is installed or changed in the application — no api guard, nothing on the user model.
What an agent can do
Content, media and settings
The core tools, always there:
| Tool | What it does |
|---|---|
describe_ | The site, its post types and taxonomies with what they support, the statuses, what the key may do with each type. The agent's first call |
list_ | Records of a post type, every status but the trash: search, status, terms, parent, author, dates, pages |
get_ | One record in full, with its stored HTML |
create_ | A new record — a draft unless the agent gives a status — with terms, a featured image and, for types with comments, whether they are open |
update_ | Changes to a record: only the fields sent |
trash_, restore_ | Into the trash and back, with the status it had |
content_, restore_ | A record's saved versions — when, by whom, whether an agent made it, what changed — and one brought back; the restore is a version too, so it can be undone the same way |
list_ | Terms of a taxonomy: search, parent, the terms of a record; or those in the trash |
create_, update_ | A new term, changes to one |
trash_, restore_ | A term into the trash and back — never the default category |
list_ | The media library with the address of each file; images without alt text, and files nothing seems to use |
upload_ | A file into the library — from a public web address, or sent as base64 with its name — with title, alt text and caption |
update_ | Title, alt text or caption of a file |
list_ | Users by name, for author ids — without emails |
list_ | The declared settings by group, with values and whether the agent may change each |
update_ | One setting, checked against its declaration and the user's permission |
resolve_ | What lives at an address: the kind of page, the record or term, the records of an archive, the templates the theme tries and the one it has |
render_ | A page as the site shows it — the text a visitor reads, the HTML, or the page's parts as JSON (an object, page); a draft as its preview |
get_ | The JSON Schema of that page, or of one part — the parts this site has installed, the theme's own among them |
Tools from modules
An installed module adds its tools; an agent sees them only when its user has the module's permission.
| Module | Tools | What for |
|---|---|---|
| Navigation | menus_, menu_, menu_ | Menus and their places |
| Widgets | widgets_, widgets_ | The widgets of each zone; a widget left out goes to the inactive ones |
| SEO | seo_, seo_ | Title, description, robots, canonical, Facebook card, primary category — of a record or a term |
| Redirects | redirects_, redirects_, redirects_, redirects_, redirects_, redirects_, not_, redirect_ | Redirects, their settings and the 404 log |
| Custom Fields | fields_, fields_, field_, field_ | Field values, checked as the edit form checks them; field groups made and fields added or changed — never removed |
| Forms | forms_, form_, form_, form_, submissions_, submission_ | Contact forms and their messages; a new form mails the site's admin — where messages go is a person's choice |
| Comments | comments_, comments_, comments_ | Comments and product reviews: list, approve, hold, spam, trash, restore, answer |
| Ads | ads_, ads_, ads_, ad_, ad_, ad_, ads_, ads_ | Banners and network units, the zones they take turns in, views and clicks by ad, zone or day, the product feed's address and last build. Nothing is deleted, an ad is paused; the accounts stay on the Settings page |
| Shop | products_, product_, product_, product_, attributes_, attribute_, orders_, order_, order_, order_, order_, sales_, top_, customers_, coupons_, coupon_ | The catalogue, its attributes, the orders, the sales and the customers, the coupons. A new product is a draft; an order taken by phone starts pending or on hold at the catalogue's prices — nothing is charged; a completed or refunded order is not reopened; refunds stay in the admin; notes are internal |
| Sliders | sliders_, slider_, slider_ | Sliders and their slides |
| Bookings | bookings_, bookings_, bookings_, bookings_, bookings_, bookings_, bookings_, bookings_, bookings_, bookings_, bookings_, bookings_ | Services and free times, appointments and their decisions, the clients and notes about them; the services, the staff with their hours and time off, the salon closed for a holiday. Nothing is deleted, and which account a staff member signs in with stays a person's choice |
| Backup | backup_, backup_ | The backups and a new one; archives are downloaded and deleted in the admin |
| Activity Log | activity_ | Who changed what |
| Site Health | health_, health_, health_ | The checks and their results; the queue's failed jobs — which and when, never the message |
| Languages | languages_, languages_, languages_, languages_ | The site's languages and the translations of posts, terms and users; a machine translation is saved as a draft |
| Link Checks | link_, link_, link_, link_ | Broken links with the posts they are in: check again, dismiss, replace or unlink an address everywhere |
| Post Types | post_, post_, post_, post_, post_, post_ | Post types and taxonomies made in the admin, checked as the form checks them; a trashed type keeps its records |
| Search | search_, search_ | How the search index is doing, and a rebuild on the queue; its settings are options of update_ |
| Image compression | media_, media_ | Which compression tools the server has and how to install the missing ones; the sizes of a few images cut — and compressed — again, no file deleted |
| Import & Export | imports_, import_, import_ | The history of imports, and an import of a WXR file from a public address; exports stay in the admin |
| Courses | courses_, courses_, courses_, courses_, courses_ | Courses with their curriculum, enrolling a user by hand, the students and their progress. A new course is a draft; lessons and quizzes are written with the core tools |
| Listings | listings_, listings_, listings_, listings_, listings_ | Properties and directory listings, and the enquiries sent from their pages. A new one is a draft |
| Invoices | invoices_, invoices_ | An order's invoice and its links, and a new one when the person asks for it — the number is taken for good |
| Webhooks | webhooks_, webhooks_, webhooks_, webhooks_ | Outgoing webhooks, a test delivery and the delivery log. The secret is shown once, on creation; a webhook is disabled, not deleted |
| Notifications | notifications_, notifications_, notifications_ | The channels the owner is told at, their topics, on or off, a test — never a token; a channel is made in the admin |
| Maintenance mode | maintenance_, maintenance_ | The holding page — coming soon or maintenance — its words, the roles that still see the site, the access link |
| Users (core) | users_, users_, users_ | A user invited by email to choose their own password, a public profile, a role — never an address or a password, never a role that runs the site or manages users, nor anyone who holds one |
| Search & Replace | search_, search_, search_ | A change counted first, then made exactly as counted — in posts, comments, terms and their meta only; options and user meta stay with the admin |
| Internal Links | internal_, internal_, internal_ | Link counts, the orphans nobody links to, the links of a post and to it |
| Privacy | privacy_, privacy_, privacy_ | Personal data requests; a new one is always confirmed by the person; exports and erasures stay in the admin |
| AI Writer | ai_ | The month's spending against the budget — never the key |
| Pulse | pulse_ | Slow pages, queries and jobs, and the exceptions thrown |
| Payments | payments_ | Which ways to pay are on and which credentials are missing — never a value |
| Site (core) | site_ | The page cache cleared, as Settings → Cache's button |
| Site (core) | theme_ | The active theme's settings — colours, the logo, the footer's line — as on Appearance → Customize, published at once; describe_ lists them under theme_ |
describe_ also lists the shortcodes the site draws, each with an example, so an agent writing content puts in one the site knows.
describe_ also names each module's tools and what the module tells about the site: which field groups show where, the menu places, what each SEO name means. Each module turns its own tools off with kitloom-.
What to ask
A few things an agent does well on a kitloom site:
- "Write a draft post about our spring collection, put it in News, and take the cover from this link."
- "Find the pages that still mention the old phone number and fix them."
- "Which addresses gave 404 this week? Redirect the ones that have a new page."
- "Fill in the SEO descriptions of the products that have none."
- "Show me how the About page looks now, then shorten its first section."
Safety
Who sees and writes what. An agent sees with the eyes of its user, type by type: every record of a type whose others' records the user may edit (edit_, edit_, …), otherwise what is published and the user's own. Only the declared post types are read through the content tools — a module's own records come through its tools and permission — and the text of a password-protected record only for a user who may edit it. It writes as its user, through the same writers the admins use: the slug is made unique, the dates are filled, and whatever the user may not do — publish, edit another author's record, manage terms — is refused with a message the agent reads. The activity log shows an agent's changes under its user.
A user of its own, with a narrow role. An agent acts as the user who connected it, and may do all that user may. Make the agent a user of its own with the smallest role that does the job — an editor for content, an author for one person's drafts, a role of your own for a module's work — and connect it signed in as that user, not as an administrator. What an agent gets wrong, or is talked into, then stays within that role; the activity log shows its changes under its own name, apart from the person's; and revoking it stops it without touching anyone's sign-in. Nothing the agent reads can widen the role: a user who may not manage users, change roles or run the site cannot be given those by a text.
What visitors wrote is data. Comments, reviews, form messages and the text of any record reach the agent as its tools return them, and such a text can be written to look like an instruction — a comment that asks to publish a page, a form message that asks for a setting. The site holds what it can: the locked settings move for no text, every write stays within its user's rights, and nothing is deleted for good. What the model does with the rest is the model's; no site can promise it never follows such a text. So an agent that moderates comments or reads form messages holds a user who may do little else, and a change it was asked for in a comment is one to look at in the activity log.
Nothing is deleted for good. The agent moves records to the trash; permanent deletion is left to a person in the admin.
Every change can be undone. Each save of a record keeps a revision, as WordPress keeps them — the title, the content, the excerpt, the custom fields and the SEO meta. A revision an agent's change left is marked so: content_ lists them, restore_ and the Revisions panel of both admins bring an older version back, and the restore is a revision too. A search and replace keeps each record as it was before the run.
Settings agents leave alone. Protected settings — the site address, the roles, secrets — are never shown to an agent. Some more are locked: the agent sees them without their values and may not change them, because text it reads could try to talk it into it. These are who gets in (registration, the default role, the admin email, two-factor, social login), the doors agents and apps come through (AI agents, REST API, the public address for visitors' assistants), and the code on every page and the data that leaves the site (Header & Footer, Tag Manager, Analytics, Ad Pixels, Sentry, Backups, the mail server). A person changes those in the admin; kitloom- holds the list.
Files from the web. upload_ fetches only from public hosts, redirects included, and — from an address or sent as base64 — takes only file types the library takes, up to its size limit (kitloom-, kitloom-).
Every request carries its token or key. The address has no session and no CSRF. Requests are limited per user: kitloom- a minute (120; 0 — no limit).
Your shoppers' assistants
This page is about your agents: they sign in, or hold a key, and act as a user. A shop's customers have assistants of their own, and Public AI Agents gives those a separate address, /, with no key and nothing but read-only tools: the catalogue as any visitor sees it, and a signed link that fills the shopper's cart on the site. Nothing there orders, pays or reads a customer; the address is closed until you open it, and its settings are locked for agents.
How the sign-in works
A client that gets a 401 from / reads resource_ in its WWW- header and finds:
| Address | What |
|---|---|
/. | The server and who signs its clients in (RFC 9728) |
/. | Where to register, sign in and get tokens; PKCE with S256 (RFC 8414) |
POST / | The client registers itself (RFC 7591) — ten a minute from one address |
/ | Passport's: the site's login for a guest, then the module's page that asks to approve |
POST / | Passport's: codes and refresh tokens for access tokens |
All but Passport's two answer 404 while agents are off; the approval page refuses then, and for a user without use_. Clients are sent back only where they registered: claude.ai and ChatGPT to their own pages, Claude Code and VS Code to a loopback address, Cursor to cursor:// (kitloom-). To allow only some sites, publish laravel/mcp's configuration (php artisan vendor:) and list them in redirect_, with http:// for the clients on your computer.
Passport's keys. Passport signs tokens with a key pair, made the first time it is needed at storage/ and storage/ — on one server there is nothing to do. Several servers behind one address, or a platform whose disk is reset on every deploy, must keep one pair: put it in the environment as PASSPORT_ and PASSPORT_. php artisan kitloom: prints both lines, and the deploy kit keeps them on every target. A new pair stops every access token at once; agents renew theirs with their refresh tokens, which the application key protects — to sign them all out, revoke them.
Lifetimes. An access token lasts kitloom- (1), a refresh token refresh_ (90), unless the application sets Passport's own. Revoked and expired tokens stay in the tables until php artisan passport: clears them — once a week in the scheduler is plenty:
php
Schedule::command('passport:purge')->weekly();kitloom- set to false turns OAuth off: keys only. An agent's tokens go into WordPress's Export and Erase Personal Data with the Privacy module.
Configuration
bash
php artisan vendor:publish --tag=kitloom-ai-config| Key | Default | Meaning |
|---|---|---|
mcp. | true | The MCP server at all |
mcp. | mcp | Its address |
mcp. | 120 | Requests a minute per user; 0 — no limit |
mcp. | true | The / addresses, the key inside, for a client that neither signs in nor sends headers |
mcp. | true | Signing in with OAuth; false — keys only |
mcp. | 1 | How long an access token works, unless the application set Passport's own |
mcp. | 90 | How long an agent renews it without signing in again |
mcp. | ['cursor'] | Addresses of other kinds a desktop client may be sent back to, besides http(s) |
privacy. | true | An agent's tokens in Export and Erase Personal Data, with the Privacy module |
local. | KITLOOM_ | Who the local server acts as |
render., render. | 20000, 200000 | The default and the largest length of render_ |
settings. | the list above | The settings agents may not change; * matches any end |
filament., nova. | true | The admin sections |
filament., nova. | true | Connect an AI agent at the top of the dashboard, while agents are on, for a user who may use them and has neither a key nor a connected agent yet. Nova cannot add to the host's dashboard: there the host lists Kitloom\ in its Main, and false hides it |
Tools of your own
A module offers tools without requiring kitloom/: a Kitloom\ in its domain package, tagged Agent, and what the agent should know first as an Agent. See Extension Points → AI agents and Testing → Agent tools.
Next
- Headless & APIs — page JSON and the REST root
- Module Catalog