fix_branch
Return the fix-it prompt the web UI's 'Generate prompt for
everything wrong' button produces for a branch — the common-case
one-shot for "fix everything broken here". Resolves the repo +
branch, finds the latest analysis, generates (or fetches a cached)
bulk prompt, and waits up to wait_seconds for completion.
repository is required — pass the GitHub 'owner/repo' for the
project the user is working in. You (the MCP client) almost always
know this from the working directory's git remote, the open
workspace, or the conversation; pass it explicitly rather than
calling list_repositories first. A repo UUID is also accepted
for callers that already have one.
branch defaults to the repository's default branch.
scope selects what to aggregate (default "everything"):
untested— all functions with no tests yetpartial— all functions only partially coveredfailing— all failing testseverything— failing tests + all untested + partial functionsfrontend— TypeScript components grouped with the handlers and render branches inside them that nothing exercises yet; Playwright/React-Testing-Library oriented rather than a flat function list
Returns the same shape as get_bulk_prompt — on cache hit /
completed generation, {status: "completed", prompt_text, ...};
on timeout, {status: "pending", generation_id} so you can
resume via wait_for_prompt.
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>"
},
"name": "fix_branch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| force | No | ||
| scope | No | everything | |
| branch | No | ||
| repository | Yes | ||
| wait_seconds | No |