For your agent
What your agent can do.
When your AI app connects to Stets at https://stets.app/mcp, it gets these 36 tools. You talk; your agent picks the tools. Each one says whether it only reads, prepares a change you confirm on stets.app, or acts at once. Publishing always waits for your yes.
- read changes nothing
- prepare changes nothing; returns a link where a person presses the page's own button
- direct acts at once
- after a yes acts at once, only with user_confirmed: the user's yes in words
Sites and building 11
list_sitesreadLists the sites on this Stets server with their preview and production URLs, 100 at a time (page), oldest first; q finds sites by id, title or own domain. access: your role on each (owner or editor), or admin for someone else's site, …
q?, page?
create_sitedirectCreates a new site from the Stets starter (one page, Tailwind, the standard head) and builds revision 1.
site, title, description, language?
get_site_contextreadCall this first. Returns the head revision, URLs, tags, recent history, site.json, every file with its size, the media library and the guide topics.
site
read_filesreadReturns the contents of up to 30 files, from the head revision or an earlier one.
site, paths, revision?
search_filesreadSearches the site files for plain text (case-insensitive) and returns matching lines with line numbers.
site, query, path_prefix?
apply_changesdirectWrites, replaces or deletes site files in one batch, builds the site in the sandbox, and on success makes a new revision with a preview URL.
site, base_revision, message, changes
rebuild_sitedirectBuilds the head revision again, for example after uploading media or changing alt text, and makes a new revision.
site, message?
get_historyreadLists recent revisions with their messages, tags, URLs and which one is published.
site, limit?
diff_revisionsreadLists the files added, changed and removed between two revisions (default: published → head).
site, from?, to?
restore_revisiondirectMakes a new head revision with the files and build of an earlier revision or tag.
site, revision, message?
tag_revisiondirectNames a revision (default: head), like "v1" or "before-redesign", so you can restore or publish it by name later.
site, tag, revision?
Publishing 2
publishafter a yesPoints the production site at a revision (default: head).
site, revision?, user_confirmed
unpublishafter a yesTakes the site off production: its address (and own domains) show a "Coming soon" page again.
site, user_confirmed
Media 4
get_upload_instructionsreadReturns the HTTP endpoint and token for uploading images, video, music, fonts and PDFs to a site's media library, with ready-to-run curl commands.
site
add_fontdirectAdds an open-licence web font (the Google Fonts and more, from Fontsource) to the site's media library by family name, and returns the @font-face block for the layout and the font-family for CSS or Tailwind @theme.
site, family, weights?, styles?, subsets?
list_mediareadLists the media library, one line per item: id, size, file name and alt text.
site, query?, offset?, limit?
update_mediadirectSets the alt text or title of a media item.
site, id, alt?, title?
Domains 4
connect_domaindirectConnects a domain name the user owns (like www.example.com) to the site, and returns the DNS records the user must add at their DNS host: first a TXT record that proves the name is theirs (it stays), then the record that moves the name …
site, hostname
check_domainreadAsks Cloudflare, and looks up the TXT record, for the current status of the site's domains (or one): pending (waiting for the DNS; "reason" says when only the TXT record is missing or wrong), active, or failed with a reason; with the …
site, hostname?
set_primary_domaindirectMakes one of the site's domains the primary, when the user asks: once it is active, the site's other domains and its Stets address redirect to it, and the site's pages name it in canonical links and the sitemap at once (no rebuild).
site, hostname
disconnect_domainafter a yesTakes a domain off the site at once.
site, hostname, user_confirmed?
Forms 5
list_form_messagesreadLists the messages visitors sent through the site's forms (newest first, kept 30 days), one line each: #id, time (UTC), form, page, [preview], [spam: why], then label: value pairs.
site, since_id?, before_id?, spam?, include_previews?, limit?
update_form_messagesdirectMarks form messages as spam or not spam, or deletes them (for good), by #id from list_form_messages.
site, ids, as
set_form_maildirectSets the address the site's form messages are mailed to (Site plan only), or sends a test mail there.
site, to?, test?
list_signupsreadLists the e-mail addresses on the site's lists (forms with data-list), oldest first, one line each: #id, address, confirmed (date) or waiting, form, then the form's other fields.
site, form?, waiting?, after_id?, limit?
update_signupsdirectTakes addresses off the site's lists (for good), or clears one list form entirely.
site, form?, remove?, clear?
People 5
list_peoplereadWho has the site (each email and role: owner or editor) and who is invited, as its people page shows them, with what the user can change.
site
invite_to_sitepreparePrepares sharing the site with someone as an editor.
site, email
remove_from_sitepreparePrepares taking someone off the site.
site, email
leave_sitepreparePrepares the user leaving the site.
site
withdraw_invitationdirectTakes back what still waits on the site for someone (list_people's waiting list): an invitation for their yes, or a share for their first sign-in.
site, email
Billing 2
get_planreadReturns the site's plan (free or the Site plan), where it comes from, its price incl. VAT and what the plan includes, with the page where an owner manages it.
site
redeem_codedirectPuts a discount code the user gave you on one of their sites.
site, code
Statistics 1
get_site_statsreadPage views of the published site per day (UTC), with the top pages, referring sites and visitors' countries, plus the site's storage, revisions and recent build times.
site, days?, questions?
Guides and feedback 2
read_guidereadReturns a Stets guide: start (how it works), design, migrate (rebuilding an existing site), content (collections), media, seo, forms (contact forms), domains (the user's own domain name).
topic
send_feedbackdirectSends feedback about Stets itself to the Stets team: one of its tools fails or does the wrong thing, the build or the engine misbehaves, a guide is wrong, a page of stets.app is broken, something is missing, or something worked …
summary, kind, goal?, about_site?, tool?
Talk to your agent. Get a website.