kb_repo_push
Push files from file storage onto a branch of a repository in the space's project map (one commit made by the server with a GitHub App installation token, scoped to that one repository): repo is owner/name; branch is the branch to push to — never the default branch; message is the commit message; files is a list of {path (the path in the repository), from (the path in file storage)} (1–50 files, up to 50 MB each); base is optional (which branch a new branch is created from; the default branch if left out). First save each file with kb_file_put (upload=true for big files — this tool exists because a single MCP call body is capped at 256 KB); it cannot push to the default branch — open a pull request after pushing. The repository must be in the project map allow-list (ticked in the console under Knowledge → Repository maps); others are refused.
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": {
"repo": "<repo>",
"branch": "<branch>",
"message": "<message>",
"files": "<files>"
},
"name": "kb_repo_push"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| base | No | Which branch a new branch is created from (default: the default branch) | |
| repo | Yes | owner/name, e.g. acme/website — must be in the project map allow-list | |
| files | Yes | 1–50 files; each has path (path in the repository) and from (path in file storage) | |
| branch | Yes | The branch to push to — never the default branch | |
| message | Yes | Commit message (1–2000 characters) |