Add missing remove_labels tool definition to safe-outputs MCP server#11450
Merged
pelikhan merged 2 commits intocopilot/review-remove-label-safe-outputfrom Jan 23, 2026
Merged
Conversation
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Investigate failure to remove smoke label
Add missing remove_labels tool definition to safe-outputs MCP server
Jan 23, 2026
This was referenced Jan 23, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The smoke-copilot workflow was configured to remove the "smoke" label but the agent never called
remove_labelsbecause the tool definition was missing from the MCP server's tool catalog.Root Cause
Complete handler implementation existed but MCP tool definition was missing:
Changes
Added
remove_labelstool definition topkg/workflow/js/safe_outputs_tools.json:{ "name": "remove_labels", "description": "Remove labels from an existing GitHub issue or pull request...", "inputSchema": { "type": "object", "properties": { "labels": { "type": "array", "items": {"type": "string"}, "description": "Label names to remove (e.g., ['smoke', 'needs-triage'])" }, "item_number": { "type": "number", "description": "Issue or PR number. If omitted, targets triggering item." } }, "required": ["labels"] } }The tool is now exposed to agents and will appear in the available tools list alongside
add_labels,add_comment, etc.Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
https://api.github.com/repos/oraios/serena/commits/HEAD/home/REDACTED/.local/bin/uv /home/REDACTED/.local/bin/uv tool uvx --from git+REDACTED serena start-mcp-server --context codex --project ${GITHUB_WORKSPACE} ortcfg env g/envutil/envutiGOINSECURE g/envutil/envutiGOMOD 64/bin/go GOINSECURE GOMOD GOMODCACHE ache/go/1.25.0/xGO111MODULE(http block)If you need me to access, download, or install something from one of these locations, you can either:
Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.