Connect a repository to a project
connect_repositoryConnect a Git repository to a project, optionally with locale path patterns. For GitHub, pass the githubInstallationId from list_github_installations. Registers webhooks and runs best-effort namespace discovery.
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": {
"projectId": "<projectId>",
"gitUrl": "<gitUrl>",
"provider": "<provider>"
},
"name": "connect_repository"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| gitUrl | Yes | HTTPS git URL of the repository | |
| branches | No | Watched branches, ordered; the first entry is the primary branch — the one scans, the Translations default ref and target-file templates read. Pushes to every entry are translated. No name may repeat. | |
| patterns | No | ||
| provider | Yes | ||
| projectId | Yes | The project to connect the repository to | |
| importMode | No | ignore | |
| importScope | No | new_keys_only | |
| gitlabConnectionId | No | Required for GitLab repositories | |
| githubInstallationId | No | Required for GitHub repositories |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| gitUrl | Yes | ||
| branches | Yes | Watched branches, in order. The first entry is the primary branch. | |
| provider | Yes | 'github' or 'gitlab' | |
| projectId | Yes | ||
| repoPatterns | Yes | ||
| webhookSecret | Yes | Shown once — the secret the provider signs deliveries with |