deploy_private_repo
Deploy a private SSH Git repository to one domain on a caller's hosting service using a pre-installed per-repo deploy key. The repo MUST contain a .cpanel.yml at its root; without one, returns no_cpanel_yml. Call generate_deploy_key first (service_id — obtain via list_services) to provision the key, then add the returned public key to the repository's deploy keys on GitHub/GitLab/Bitbucket. Omitted branch deploys the repository default branch (HEAD). This destructive, non-idempotent write requires the write:deploy scope and is distinct from get_deploy_status (the URL-deploy lineage).
Invoked over the MCP transport with a tools/call request naming this tool.
Authorization #
Requires a valid OAuth 2.1 bearer access_token whose grant includes the write:deploy scope — Deploy websites from a git repository — a public URL or a private SSH repo — to your hosting (overwrites the target site). The broker resolves the caller from the token and returns only records the account owns.
Parameters #
Response #
200 · application/json
Errors #
| Result | When |
|---|---|
| { "error": "invalid_target_domain" } | See the tool description for when this result is returned. |
| { "error": "invalid_repo_url" } | See the tool description for when this result is returned. |