Appearance
AI agents
An MCP server for Claude, ChatGPT, Cursor and other agents: give them the site's address, sign in and approve, and they read and write the site's content with your rights.
kitloom/ · admins: kitloom/, kitloom/
Video lessons
Recorded in the Filament admin; the Nova admin works the same way.
AI agents on a kitloom site — Claude, ChatGPT, Cursor or any client of the Model Context Protocol: an MCP server at / whose tools read and write the site's posts, pages, terms, media and settings, find out what lives at an address and show a page as the site renders it. You connect an agent by giving it the site's address: it sends you here to sign in and approve it, and from then on it works with your rights — no key to copy. Built on laravel/mcp and Laravel Passport; the admin section is kitloom/ai-filament or kitloom/ai-nova.
This is your agent, on your subscription, working on the site from the outside. For the site itself to ask a model — a module's "with AI" button, with an API key saved on the site and a monthly budget — install kitloom/ai-writer; the two do not depend on each other.
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.
Connecting an agent
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.
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.
ChatGPT: Settings → Apps & Connectors → Advanced settings, turn Developer mode on, then Create — any name, the address, OAuth as the authentication — and connect.
Claude Code:
bash
claude mcp add --transport http kitloom https://your-site/mcpthen start claude; / shows the server and signs in when asked.
Cursor and VS Code: Add to Cursor / Add to VS Code on the dashboard or the Connect an agent page, or the server in mcp.:
json
{
"mcpServers": {
"kitloom": { "url": "https://your-site/mcp" }
}
}Claude Desktop through mcp- (claude_), which signs in the same way:
json
{
"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 — with Revoke: the agent's next request is refused, and so is its next attempt to renew its access. To use it again, connect it again. In Nova, tick the agents under Connected agents and press Save. Whoever manages options may revoke anyone's (Kitloom\).
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. 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.
Claude Code:
bash
claude mcp add --transport http kitloom https://your-site/mcp --header "Authorization: Bearer 12|…"Cursor (.) and other clients that take a URL with headers:
json
{
"mcpServers": {
"kitloom": {
"url": "https://your-site/mcp",
"headers": { "Authorization": "Bearer 12|…" }
}
}
}claude.ai: Settings → Connectors → Add custom connector — any name, the URL, Authentication No sign-in, then under Request headers Add header: Authorization, with the value Bearer 12|….
A client that neither signs in nor sends headers can take the key inside the address instead — 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- false turns the addresses off.
On the dashboard
While agents are on, Connect an AI agent sits at the top of the dashboard for a user who may use them and has neither a key nor a connected agent yet: the address for claude.ai and ChatGPT, the Claude Code command, mcp., Add to Cursor and Add to VS Code, and a few things to ask the agent first. A key made ahead with
bash
php artisan ai:prepare-key admin --name="AI agent"turns it into the settings with that key, ready to copy: claude.ai's URL and header, the Claude Code command, mcp. and the address for a client without headers; the install links carry the key, so they are as much a password as the header is. The key is an application password like any other; only this one is kept readable, encrypted with the application key, for its owner's dashboard alone, and it leaves the dashboard when it is revoked. Running the command again revokes the key it made before. A demo does this for every sandbox (see kitloom/sandbox) — a signed-in sandbox user may just as well connect with OAuth.
In Filament the widget comes with the package. Nova has no hook into the host's dashboards, so the host lists the card in its Main:
php
public function cards(): array
{
return [
new \Kitloom\Ai\Nova\Cards\AgentCard,
// …
];
}kitloom- / kitloom- false hides it.
What the agent can do
| Tool | What |
|---|---|
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. With the version get_ gave, a change over someone's newer save is refused, naming who saved it |
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. A revision an agent's change left is marked _ |
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 (missing_), files nothing seems to use (unused — no post, no featured image, no content names them) |
upload_ | A file into the library — from a public web address, or sent as base64 with its name — with title, alt text, caption |
update_ | Title, alt text or caption of a file |
list_ | Users by name, for author ids — without emails; without list_, only authors of published posts, without their logins |
list_ | The declared settings by group, with values for those who may change them, 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 — text a visitor reads, 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 |
Installed modules add tools of their own, shown only to agents whose user has the module's permission — the menus, the widgets, the head meta, the redirects and the 404 log, the custom fields, the forms and their messages, the comments, the shop, the sliders, the bookings, the backups, the activity log, Site Health, the translations, the broken links, the post types made in the admin, the search index, image compression, imports:
| Module | Tools |
|---|---|
| kitloom/navigation | menus_, menu_, menu_ (edit_) |
| kitloom/seo | seo_, seo_ — title, description, robots, canonical, Facebook card, primary category of a record or a term |
| kitloom/widgets | widgets_, widgets_ (edit_; a widget left out goes to the inactive ones) |
| kitloom/redirects | redirects_, redirects_, redirects_, redirects_, redirects_, redirects_ (manage_), not_ (manage_), redirect_ |
| kitloom/custom-fields | fields_, fields_ — checked as the edit form checks them |
| kitloom/forms | forms_, submissions_ (read_), form_, form_, submission_ (manage_) |
| kitloom/comments | comments_ (edit_), comments_, comments_ (moderate_) — comments and product reviews |
| kitloom/shop | products_, product_, product_, attributes_ (edit_; a new product is a draft), product_ (edit_), attribute_ (manage_), orders_, order_, order_, order_, sales_, top_, customers_ (edit_; a completed or refunded order is not reopened, refunds stay in the admin, notes are internal), coupons_, coupon_ (edit_) |
| kitloom/slider | sliders_, slider_, slider_ (manage_) |
| kitloom/bookings | bookings_, bookings_ (read), bookings_, bookings_, bookings_, bookings_, bookings_, bookings_ (manage_; a booking ends declined or cancelled, never deleted; notes are only added) |
| kitloom/backup | backup_, backup_ (manage_; archives are downloaded and deleted in the admin) |
| kitloom/activity-log | activity_ (view_) |
| kitloom/health | health_, health_ (manage_) |
| kitloom/languages | languages_, languages_, languages_, languages_ (edit_; a machine translation is saved as a draft) |
| kitloom/link-checks | link_, link_, link_, link_ (manage_) |
| kitloom/post-types | post_, post_, post_, post_, post_, post_ (manage_; a definition goes to the trash, its records stay) |
| kitloom/search | search_, search_ (manage_; the settings are options of update_) |
| kitloom/import-export | imports_, import_, import_ (import; a WXR file from a public address, through the media library's guard; no export) |
| kitloom/media-optimizer | media_ (manage_; the tools are programs on the server, nothing to change) |
describe_ names each module's tools and what it tells about the site: which field groups show where, the menu places, what each SEO name means. A module offers a tool by implementing Kitloom\ and tagging it; each module turns its own off with kitloom-.
Nothing is deleted for good: permanent deletion is left to a person in the admin. upload_ fetches only from public hosts — redirects included — and, from an address or as base64, takes only file types the library takes and up to its size limit (kitloom-, kitloom-). Answers use plain names (title, status, published_, terms with their names), not the WordPress REST envelope; dates are site time.
Who sees and writes what
An agent sees what its user may see: every record, whatever its status, with edit_ (an editor, an administrator); what is published and the user's own records otherwise (an author). Of the post types, it sees the public ones and those its user may edit: a type without pages of its own, such as the shop's coupons, is for whoever holds its capabilities, as its admin list is. A password-protected record's text is shown only to a user who may edit it, as in the REST API, and a search finds such a record only for them. It writes as its user, through the same writers the admins use (Post, Term): the slug is made unique, the dates 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.
Settings agents leave alone. Protected settings — the site address, the roles, secrets — are never shown to an agent. A few 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 — 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), and SEO's instant indexing, which holds a Google service account's private key. A setting's value is shown only to a user who may change it. A person changes those in the admin; kitloom- holds the list.
The address has no session and no CSRF; every request carries its token or key. Requests are limited per user: kitloom- a minute (120; 0 — no limit).
How the sign-in works
Laravel Passport comes with the module; nothing is installed or changed in the application — no api guard, nothing on the user model. 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.
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 must share the pair: put it in the environment as PASSPORT_ and PASSPORT_ (the deploy kit does). 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. kitloom- (1) and 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- false turns OAuth off: keys only. An agent's tokens go into WordPress's Export and Erase Personal Data with kitloom/privacy (kitloom-).
The local server
php artisan mcp: serves the same tools over stdio, for an agent on the machine the site runs on — Claude Code in the project:
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.
Configuration
php artisan vendor: for kitloom-: mcp., mcp. (mcp), mcp., mcp., the sign-in (mcp., access_, refresh_, custom_), privacy., local., the default and the largest render_ length (render., render.), the settings agents leave alone (settings., * matches any end), and the admin sections (filament., nova.).
Tests
From the application that installs the package: php vendor/.