github_mcp.create_job
Creates an isolated local Git workspace and task branch from an allowlisted repository, returning job metadata for follow-up actions without pushing changes.
Instructions
Create an isolated local Git workspace and task branch from an allowlisted repository. Requires write-enabled local policy. Supply a short English task name for automatic branch naming; protected base/default branches cannot be targets. Returns job metadata including id, base SHA and state; use id for subsequent tools. Does not push.
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": {
"repository": "<repository>",
"idempotency_key": "<idempotency_key>"
},
"name": "github_mcp.create_job"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| base_ref | No | Optional simple source branch name; defaults to configured default branch. | |
| task_name | No | Optional short English task title, e.g. fix tunnel startup; used to generate a unique branch. | |
| repository | Yes | Allowlisted owner/repo identifier. | |
| target_branch | No | Optional explicit safe task branch; omit for automatic naming. | |
| idempotency_key | Yes | Stable unique request key, 1–100 characters; reuse for retries of the same job. | |
| expected_base_sha | No | Optional expected base commit SHA; mismatches stop creation. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| data | No | ||
| message | No | ||
| error_code | No |