Connect a GitHub repository to an app
connect_repoConnects a deployed app to a GitHub repository and branch that the organization's GitHub App can reach, so the app's later deploys build from that repository. Use it when an app was first deployed from source or an artifact and now has a repository. It does not deploy anything: call deploy_app afterwards to build the branch now. deploy_on_push (default false) makes every push to the branch deploy the app. Before calling with deploy_on_push true, tell the user that every push to that branch will build and deploy the app, that anyone who can push to the branch can trigger a deploy, and that those deploys run as them; turn it on only if they agree. If the repository is not reachable, the error lists the ones that are. Changes how the app deploys: confirm with the user first.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"name": "<name>",
"repo": "<repo>"
},
"name": "connect_repo"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | The app's name. | |
| repo | Yes | The repository as owner/name, such as acme/clinic-demo. | |
| branch | No | The branch to track (default: the repository's default branch). | |
| deploy_on_push | No | Deploy the app on every push to the branch (default false). Those deploys run as the user. |