Once you connect your AI client to the Hosted EZ MCP Server, your agent can chain multiple Hosted EZ tools into safe, repeatable operational workflows. Below are battle-tested recipes and safety practices.
1. Provision & Configure a Static SPA with Custom Domain
Use this workflow when launching a React, Vite, Vue, or Svelte single-page application:
Prompt: “Create a new Hosted EZ Static site named
Acme Appwith SPA fallback enabled, Clean URLs disabled, a/404.htmlfallback page, andCache-Control: public, max-age=31536000, immutableon/assets/*. Attachapp.acme-example.comand show me any DNS records I need to add, plus the SFTP connection details so I can configure GitHub Actions.”
Tools your agent chains:
create_site(app: "static",staticConfigwithspaFallback: trueandcustomHeaders)connect_domain(siteId,domain: "app.acme-example.com")get_site_sftp(siteId) — retrievessftp.hostedez.com:22andsftp_<slug>usernameadd_site_sftp_key(siteId,label,publicKey) — registers your CI deploy key- After deploying via archive upload or SFTP, use
list_site_deploymentsandrollback_site_deploymentfor instant atomic rollbacks if a release regresses.
2. Safe WordPress Plugin Update via Backup & Staging
Never test risky plugin or core upgrades directly in production. Have your agent take a backup, verify the upgrade in staging, and promote cleanly:
Prompt: “Take an on-demand backup of
sit_acmeshoplabeledpre-wp-update, wait until it is ready, then create a staging clone. Runwp plugin update --allon the staging site, checkwp plugin list, and wait for my approval before pushing staging to live.”
Tools your agent chains:
create_site_backup(siteId: "sit_acmeshop",label: "pre-wp-update")- Poll
list_site_backupsuntil the new backup’s status isready create_staging_site(siteId: "sit_acmeshop")run_site_commandon the staging site ID (command: "wp plugin update --all",timeoutSeconds: 180)run_site_command(command: "wp plugin list --status=active") to verify versions- After human review on
https://staging-<slug>.hostedez.site:push_staging_to_live(includeFiles: true,includeDatabase: true) — which also purges live caches automatically.
3. MariaDB Schema Audit & Safe SQL Migration
Let your agent inspect live tables, export a portable SQL backup, and run targeted migrations:
Prompt: “Inspect the database linked to
sit_acmeportal, list the largest tables, export a schema-only backup first, then add an index onorders(created_at)and confirm it withSHOW INDEX FROM orders.”
Tools your agent chains:
list_databases→ locate thedb_...ID linked tosit_acmeportalget_database_usage(databaseId,refresh: true) &list_database_tables(databaseId)export_database_sql(databaseId,schemaOnly: true)run_database_query(databaseId,sql: "CREATE INDEX idx_orders_created_at ON orders (created_at);")run_database_query(databaseId,sql: "SHOW INDEX FROM orders;")
4. Onboard Branded Company Email with Tested Filters
Set up a complete custom domain email workspace and verify filter rules before real mail arrives:
Prompt: “Enable email for
acme-example.comwith DMARC policyquarantine, createsupport@acme-example.comandbilling@acme-example.com, aliasinfo@acme-example.comtosupport@acme-example.com, set white-label webmail hostnamewebmail.acme-example.comwith brand nameAcme Mail, create a filter rule moving[URGENT]subjects toPrioritywith the$Importantflag, and dry-run test that filter.”
Tools your agent chains:
enable_email_domain(domain: "acme-example.com",dmarcPolicy: "quarantine")verify_email_domain_dns(domainId)create_mailbox(forsupportandbilling) &create_email_alias(sourceLocalPart: "info")update_email_branding(domainId,webmailHostname: "webmail.acme-example.com",brandName: "Acme Mail") &verify_webmail_hostnamecreate_email_filter_rule(mailboxId, conditions onsubjectcontaining[URGENT], actionsfileinto+addflag)test_email_filters(mailboxId, sample subject"[URGENT] Checkout error") to confirm delivery folder and flags without sending live email.
Safety Guardrails for Autonomous Agents
- Use read-only scopes when auditing: Request only
account:read sites:readduring OAuth consent for read-only reporting or monitoring agents. - Require human confirmation on destructive tools: Instruct your agent in
AGENTS.mdor.cursor/rulesto always ask before callingdelete_site,delete_database,delete_email_domain,delete_mailbox,push_staging_to_live, orrestore_site_backup(which also enforcesconfirm: true). - Handle one-time secrets carefully: Tools like
rotate_site_sftp_password,create_mailbox, andreset_mailbox_passwordreturn plaintext passwords once. Never ask agents to commit those values into source control. - Poll asynchronous jobs:
create_site,create_site_backup, andrestore_site_backupexecute asynchronously—pollget_siteorlist_site_backupsrather than assuming immediate completion. - Give agents fresh docs: Point your coding agent at https://docs.hostedez.com/llms.txt so it checks current Hosted EZ limits and flags before calling tools.