Repeatable workflows

MCP Recipes

Give an agent clear, safe instructions for first deploys, updates, custom domains, rollback, and token revocation.

Prompts that produce predictable releases.

Use these prompt blocks when an agent needs a clear finish line and a safe place to pause before risky actions.

First deploy

Prompt
Build this static website and deploy it with StaticX.

Before deploying:
- find the build output folder
- verify index.html and 404.html exist at the output root
- create a StaticX site if one is needed

Deploy with staticx_deploy_zip.

After deploying:
- return the live URL
- return the deployment version
- if anything fails, inspect staticx_get_logs and show me the exact error

Update an existing site

Prompt
Build the latest changes for site SITE_ID.

Before publishing:
- explain what will be uploaded
- do not delete older releases

Deploy a new rollback-ready release unless I explicitly ask for history off.

After deploying:
- return the new release
- return the live URL

Update without growing history

Prompt
Build the latest changes for site SITE_ID.

Use staticx_deploy_zip with versioning_enabled=false.

After deploying:
- return the baseline release
- return the live URL
- explain that analytics and forms remain connected, but this deploy did not add rollback history

Connect a custom domain with manual DNS

Prompt
Connect app.example.com to site SITE_ID.

Use staticx_connect_custom_domain.

Then:
- return the single DNS record I must create
- use staticx_get_custom_domain_status
- explain the activation state in plain language
- if I ask for DNS Connect, tell me to approve it in the StaticX dashboard because browser authorization is required

Safe rollback

Prompt
List deployments for site SITE_ID.

Show me:
- the current live release
- the target release
- the target release creation time

Wait for my explicit confirmation before calling staticx_rollback_deployment.

Revoke after delivery

Prompt
Finish the deploy.

Tell me:
- which StaticX token was used by name
- which site was changed
- which deployment went live

Remind me to revoke the temporary token from StaticX settings after I verify the live site.