publish_internal_repository
Publish this repository's pending work to its approved main branch.
An external MCP client has no shell here: its writes land on work inside
the bare repository, and this fast-forwards main onto that tip with one
atomic compare-and-swap. If it pushed some other branch over HTTPS instead,
name that branch. A container agent instead has a real checkout, and for it
this stays the supported replacement for git push: it accepts only a
DB-authorized worktree/target pair, requires a clean checkout and a
fast-forward commit, disables client hooks and external Git protocols, and
never returns the host repository path.
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>"
},
"name": "publish_internal_repository"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Attached repository id, checkout name, or unambiguous label returned by list_internal_repositories. | |
| branch | No | Bare branch name to publish -- the branch you pushed. Omit for 'work', which is where file writes over MCP commit. Not a refname and not a path. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||