Skip to content

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.

Connect an AI agent to your site
Clear the site with an AI agent
Fill the site with sample content
Orders with an AI agent
Shop sales with an AI agent
SEO and redirects with an AI agent
Site health with an AI agent

Connecting an agent ​

Turning it on ​

  1. AI agents → Settings: turn on AI agents. Until then /mcp and its sign-in answer 404.
  2. The permission Let AI agents work with my application passwords (use_ai_agents). 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.
  3. Connect an agent: AI agents → Connect an agent shows the address and what to do in each client.

Signing in ​

The address is https://your-site/mcp. 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://your-site/mcp, 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 asked
json
// .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:use; 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: Bearer <id>|<secret>: 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:

FieldWhat goes in
Nameanything, e.g. My site
URLhttps://your-site/mcp
AuthenticationNo sign-in
Request headers → Add headerAuthorization, 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-ai.mcp.secret_address set to false turns these addresses off.

On the same machine ​

php artisan mcp:start kitloom 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 kitloom

It acts as the user KITLOOM_AI_USER names (login or email), who needs use_ai_agents 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/ai is an MCP server at /mcp: 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.

PackageGives
kitloom/aiThe MCP server, the core tools, the local server for the console
kitloom/ai-filament / kitloom/ai-novaThe AI agents section: Connect an agent, Settings, How it works
bash
composer require kitloom/ai kitloom/ai-filament   # or kitloom/ai-nova

It 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:

ToolWhat it does
describe_siteThe 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_contentRecords of a post type, every status but the trash: search, status, terms, parent, author, dates, pages
get_contentOne record in full, with its stored HTML
create_contentA 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_contentChanges to a record: only the fields sent
trash_content, restore_contentInto the trash and back, with the status it had
content_revisions, restore_revisionA 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_termsTerms of a taxonomy: search, parent, the terms of a record; or those in the trash
create_term, update_termA new term, changes to one
trash_term, restore_termA term into the trash and back — never the default category
list_mediaThe media library with the address of each file; images without alt text, and files nothing seems to use
upload_mediaA file into the library — from a public web address, or sent as base64 with its name — with title, alt text and caption
update_mediaTitle, alt text or caption of a file
list_usersUsers by name, for author ids — without emails
list_settingsThe declared settings by group, with values and whether the agent may change each
update_settingOne setting, checked against its declaration and the user's permission
resolve_urlWhat 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_pageA 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_page_schemaThe 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.

ModuleToolsWhat for
Navigationmenus_list, menu_get, menu_saveMenus and their places
Widgetswidgets_list, widgets_saveThe widgets of each zone; a widget left out goes to the inactive ones
SEOseo_get, seo_updateTitle, description, robots, canonical, Facebook card, primary category — of a record or a term
Redirectsredirects_list, redirects_create, redirects_update, redirects_trash, redirects_settings_get, redirects_settings_update, not_found_list, redirect_from_404Redirects, their settings and the 404 log
Custom Fieldsfields_get, fields_set, field_groups_get, field_groups_saveField values, checked as the edit form checks them; field groups made and fields added or changed — never removed
Formsforms_list, form_get, form_create, form_update, submissions_list, submission_spamContact forms and their messages; a new form mails the site's admin — where messages go is a person's choice
Commentscomments_list, comments_moderate, comments_replyComments and product reviews: list, approve, hold, spam, trash, restore, answer
Adsads_list, ads_create, ads_update, ad_zones_list, ad_zones_create, ad_zones_update, ads_stats, ads_feed_statusBanners 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
Shopproducts_list, product_get, product_save, product_category_image, attributes_list, attribute_save, orders_list, order_get, order_create, order_set_status, order_add_note, sales_report, top_products, customers_list, coupons_list, coupon_saveThe 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
Sliderssliders_list, slider_get, slider_saveSliders and their slides
Bookingsbookings_catalog, bookings_slots, bookings_list, bookings_create, bookings_decide, bookings_clients, bookings_client, bookings_client_note, bookings_service_save, bookings_staff_get, bookings_staff_save, bookings_closeServices 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
Backupbackup_status, backup_runThe backups and a new one; archives are downloaded and deleted in the admin
Activity Logactivity_listWho changed what
Site Healthhealth_report, health_run, health_failed_jobsThe checks and their results; the queue's failed jobs — which and when, never the message
Languageslanguages_list, languages_get_translations, languages_save_translation, languages_translateThe site's languages and the translations of posts, terms and users; a machine translation is saved as a draft
Link Checkslink_checks_list, link_checks_recheck, link_checks_dismiss, link_checks_replaceBroken links with the posts they are in: check again, dismiss, replace or unlink an address everywhere
Post Typespost_types_list, post_types_get, post_types_create, post_types_update, post_types_trash, post_types_restorePost types and taxonomies made in the admin, checked as the form checks them; a trashed type keeps its records
Searchsearch_status, search_reindexHow the search index is doing, and a rebuild on the queue; its settings are options of update_setting
Image compressionmedia_optimizer_status, media_regenerateWhich 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 & Exportimports_list, import_get, import_startThe history of imports, and an import of a WXR file from a public address; exports stay in the admin
Coursescourses_list, courses_get, courses_save, courses_enroll, courses_studentsCourses 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
Listingslistings_search, listings_get, listings_save, listings_enquiries, listings_enquiry_statusProperties and directory listings, and the enquiries sent from their pages. A new one is a draft
Invoicesinvoices_get, invoices_createAn order's invoice and its links, and a new one when the person asks for it — the number is taken for good
Webhookswebhooks_list, webhooks_create, webhooks_update, webhooks_deliveriesOutgoing webhooks, a test delivery and the delivery log. The secret is shown once, on creation; a webhook is disabled, not deleted
Notificationsnotifications_list, notifications_update, notifications_testThe channels the owner is told at, their topics, on or off, a test — never a token; a channel is made in the admin
Maintenance modemaintenance_settings_get, maintenance_settings_updateThe holding page — coming soon or maintenance — its words, the roles that still see the site, the access link
Users (core)users_create, users_update, users_set_roleA 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 & Replacesearch_replace_dry_run, search_replace_run, search_replace_runsA 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 Linksinternal_links_report, internal_links_list, internal_links_recountLink counts, the orphans nobody links to, the links of a post and to it
Privacyprivacy_requests_list, privacy_request_create, privacy_request_completePersonal data requests; a new one is always confirmed by the person; exports and erasures stay in the admin
AI Writerai_writer_usageThe month's spending against the budget — never the key
Pulsepulse_reportSlow pages, queries and jobs, and the exceptions thrown
Paymentspayments_methodsWhich ways to pay are on and which credentials are missing — never a value
Site (core)site_cache_clearThe page cache cleared, as Settings → Cache's button
Site (core)theme_customizeThe active theme's settings — colours, the logo, the footer's line — as on Appearance → Customize, published at once; describe_site lists them under theme_settings

describe_site also lists the shortcodes the site draws, each with an example, so an agent writing content puts in one the site knows.

describe_site 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-<name>.ai.register.

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_others_posts, edit_others_pages, …), 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_revisions lists them, restore_revision 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-ai.settings.locked holds the list.

Files from the web. upload_media 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-media.max_size, kitloom-media.remote).

Every request carries its token or key. The address has no session and no CSRF. Requests are limited per user: kitloom-ai.mcp.rate_limit 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, /mcp/public, 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 /mcp reads resource_metadata in its WWW-Authenticate header and finds:

AddressWhat
/.well-known/oauth-protected-resource/mcpThe server and who signs its clients in (RFC 9728)
/.well-known/oauth-authorization-serverWhere to register, sign in and get tokens; PKCE with S256 (RFC 8414)
POST /oauth/registerThe client registers itself (RFC 7591) — ten a minute from one address
/oauth/authorizePassport's: the site's login for a guest, then the module's page that asks to approve
POST /oauth/tokenPassport'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_ai_agents. 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-ai.mcp.oauth.custom_schemes). To allow only some sites, publish laravel/mcp's configuration (php artisan vendor:publish --tag=mcp-config) and list them in redirect_domains, with http://localhost 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/oauth-private.key and storage/oauth-public.key — 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_PRIVATE_KEY and PASSPORT_PUBLIC_KEY. php artisan kitloom:passport-keys 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-ai.mcp.oauth.access_token_days (1), a refresh token refresh_token_days (90), unless the application sets Passport's own. Revoked and expired tokens stay in the tables until php artisan passport:purge clears them — once a week in the scheduler is plenty:

php
Schedule::command('passport:purge')->weekly();

kitloom-ai.mcp.oauth.register 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
KeyDefaultMeaning
mcp.registertrueThe MCP server at all
mcp.pathmcpIts address
mcp.rate_limit120Requests a minute per user; 0 — no limit
mcp.secret_addresstrueThe /mcp/k/… addresses, the key inside, for a client that neither signs in nor sends headers
mcp.oauth.registertrueSigning in with OAuth; false — keys only
mcp.oauth.access_token_days1How long an access token works, unless the application set Passport's own
mcp.oauth.refresh_token_days90How long an agent renews it without signing in again
mcp.oauth.custom_schemes['cursor']Addresses of other kinds a desktop client may be sent back to, besides http(s)
privacy.registertrueAn agent's tokens in Export and Erase Personal Data, with the Privacy module
local.userKITLOOM_AI_USERWho the local server acts as
render.max_chars, render.max_chars_limit20000, 200000The default and the largest length of render_page
settings.lockedthe list aboveThe settings agents may not change; * matches any end
filament.register, nova.registertrueThe admin sections
filament.dashboard, nova.dashboardtrueConnect 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\Ai\Nova\Cards\AgentCard in its Main, and false hides it

Tools of your own ​

A module offers tools without requiring kitloom/ai: a Kitloom\WpSchema\Contracts\AgentTool in its domain package, tagged AgentTool::TAG, and what the agent should know first as an AgentContext. See Extension Points → AI agents and Testing → Agent tools.

Next ​

kitloom — sites on Laravel, built for you and run with AI.
Contact · Services · License · Refunds · Privacy · Community · YouTube · [email protected]