| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
The label_write tool supports a delete method that permanently removes a label and all its associations from every issue/PR in the repository. However, it only set ReadOnlyHint: false and did not signal the destructive nature of this operation to MCP clients. Add DestructiveHint: true and OpenWorldHint: true to match the pattern used by other destructive tools in the codebase (actions_run_trigger, projects_write, discussion_comment_write, remove_sub_issue). Fixes github#2723
| Back | FazBrowse Home | New Git URL |
Fixes #2723
Problem
The label_write tool supports a delete method that permanently removes a label and all its associations from every issue/PR in the repository. However, its annotations only set ReadOnlyHint: false -- it does not set DestructiveHint: true or OpenWorldHint: true. MCP clients receive no destructive-operation signal for what is arguably the most destructive label operation available.
Fix
Add DestructiveHint: jsonschema.Ptr(true) and OpenWorldHint: jsonschema.Ptr(true) to the LabelWrite tool annotations, matching the pattern used by other destructive tools in the codebase:
Changes