aft.page

v1.1.0
page.aft/mcp Checked 13 hours ago Published 1 month ago

Deploy a folder, build output, or public GitHub repo to a live URL.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

deploy Deploy to aft

Publish to a live URL. Pass html (one page) OR files (a built site, or a small app's source). Plain HTML → html. Vite/React → npm run build, then files from dist/. Next static export → files from out/; a static site needs index.html. Flask/FastAPI/Django/Express → the source files with requirements.txt or package.json; aft builds and runs it. Never upload node_modules, .venv, or .next/. First hit: preferred_slug from aft.json (include aft.json in files). Later: same slug + edit_token from .aft/state.json — every update is a new version (v1, v2…) at the same URL. Pass hold:true to k…

ParameterTypeDescription
edit_tokenstringFrom first deploy / .aft/state.json. Required to update or rollback the same URL.
expiresstringOptional quick-view expiry, e.g. "1h", "24h", "90s", "7d". Anonymous (unclaimed) deploys only — the link 404s after this.
filesarray
holdbooleanUpdate only: build and verify but do not go live; promote later with aft_promote.
htmlstringOne HTML document. Ignored if files is set.
labelstringShort name for this version, e.g. 'before redesign'.
preferred_slugstringaft.json slug. Required with edit_token.

deploy_repo Deploy a public GitHub repo

Same engine as aft.page/run: public GitHub URL → detect → build → live URL. Static is instant; Vite and Next.js build in the background (polls until live or failed). Private repos are refused. For a local project dir, use hosted CLI aft deploy instead.

ParameterTypeDescription
url *stringGitHub URL or owner/repo, e.g. https://github.com/mdn/beginner-html-site

aft_deploys List aft deploy history

List the versions (v1, v2…) of a slug with their label, door, commit and whether each is live or a held preview. Needs edit_token from .aft/state.json (or the first deploy). Same history the project UI shows after claim.

ParameterTypeDescription
edit_token *stringFrom first deploy / .aft/state.json. Required to update or rollback the same URL.
slug *stringSite slug from aft.json or .aft/state.json

aft_rollback Rollback aft.page site

Point the live slug at a prior version from aft_deploys, by version number or deploy_id. Same URL. Needs edit_token from .aft/state.json. Claim not required.

ParameterTypeDescription
edit_token *stringFrom first deploy / .aft/state.json. Required to update or rollback the same URL.
slug *stringSite slug from aft.json or .aft/state.json
deploy_idstringdeployId from aft_deploys
versionintegerVersion number from aft_deploys, e.g. 3 for v3

aft_promote Promote a held aft.page version

Make a held preview version live at the same URL. Pass version (e.g. 4) or deploy_id from aft_deploys. Needs edit_token.

ParameterTypeDescription
edit_token *stringFrom first deploy / .aft/state.json. Required to update or rollback the same URL.
slug *stringSite slug from aft.json or .aft/state.json
deploy_idstringdeployId from aft_deploys
versionintegerVersion number from aft_deploys, e.g. 3 for v3

aft_health Check aft API

Ping the aft deploy API.