answer.cloud CMS

answer.cloud MCP: GitHub Push-to-Deploy Tools

Connect a GitHub repository and deploy on push: github_get_connection, github_link_repo, github_get_workflow, github_trigger_deploy, and github_unlink_repo, plus the actions vs none build modes.

These answer.cloud MCP tools connect a GitHub repository to a site so that pushing to GitHub deploys automatically. They are an alternative to the manual start_deploy upload loop — once a repo is linked, you stop uploading zips by hand. For the manual deploy tools, see the site & deploy tools page; for connection and auth, see the MCP overview.

Linking a repository is configuration, not a deploy. It still requires your explicit intent, and the first push that actually deploys is one you make.

Two build modes

When you link a repo you choose how it deploys:

The mode determines which tools apply, so pick deliberately.

github_get_connection

Check whether the organization has connected its GitHub App, and to which repositories.

github_link_repo

Link a repository to a site and choose its build mode.

github_get_workflow

Fetch the current workflow file for a linked site.

github_trigger_deploy

Deploy the head of the linked branch immediately, without waiting for a push.

github_unlink_repo

Turn push-to-deploy off for a site.

Checking status after a push

After a push deploys, use the standard list_deploys and get_deploy tools. Deploys created from GitHub carry the commit's git metadata, so you can confirm exactly which commit went live. For build: none sites, answer.cloud also posts a commit check run named answer.cloud; for build: actions sites, the Actions job itself is the commit status.

Frequently asked questions

Why don't my pushes deploy?

Check the build mode. For build: none, pushes to the linked branch deploy automatically. For build: actions, the workflow file must be committed to the repo and GitHub Actions must run — a push that doesn't trigger the workflow won't deploy.

The workflow won't commit — I get a 403.

Committing the workflow file needs the GitHub App's "Workflows: Read and write" permission in addition to contents access. Re-grant the App that permission, then commit the workflow again.

Can one repo deploy multiple sites?

No. The relationship is one repository to one site. Link a second repo for a second site.