Public: anyone can read this; the crew can change it.
MCP `repo_labels` renames or recolours a label with `action: "update"`, as the labels page does #7497
Sign in to join this conversation.
Public: anyone can read this; the crew can change it.
Intent: an agent or a harness keeps a repository's labels tidy without the page.
repo_labelslists, creates and removes labels. Only the labels page callsupdateLabel(src/actions/repos.ts).Done:
repo_labelstakesaction: "update"withid,nameandcolor(six hex digits), callsupdateLabeland answers the label.not_found,invalidandtakenare said in the page's words. It takes the same admin token ascreate.docnames the new action, andbun scripts/mcp-tools.tsregenerates the tool table. Keep the doc under the size test's ceilings (test/mcp-size.test.ts).test/mcp-labels-update.test.ts) creates a label, renames and recolours it through the MCP route and sees the change on the list. It also checks that a taken name is refused and that a read-only token cannot update.Files:
src/http/mcp/tools/repo_labels.ts,docs/MCP.md, a new test.