Skip to content

Annotate create_issue and issue_write as destructive#2470

Open
gokhanarkan wants to merge 2 commits into
mainfrom
gokhanarkan/fides-create-issue
Open

Annotate create_issue and issue_write as destructive#2470
gokhanarkan wants to merge 2 commits into
mainfrom
gokhanarkan/fides-create-issue

Conversation

@gokhanarkan
Copy link
Copy Markdown
Member

Sets destructiveHint: true on the granular create_issue tool and the unified issue_write tool so the IFC client engine can apply egress policies regardless of which surface the client uses. Second of four egress annotations from github/copilot-mcp-core#1623.

Sets destructiveHint: true on the granular create_issue tool and the
unified issue_write tool so the IFC client engine can apply egress
policies before invocation, regardless of which surface the client uses.

Refs github/copilot-mcp-core#1623.
Copilot AI review requested due to automatic review settings May 13, 2026 13:14
@gokhanarkan gokhanarkan requested a review from a team as a code owner May 13, 2026 13:14
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates MCP tool annotations so both the unified issue_write tool and the granular create_issue tool are marked as destructive, enabling the IFC client engine to consistently apply egress policies across tool surfaces.

Changes:

  • Set destructiveHint: true for the unified issue_write tool annotations.
  • Set destructiveHint: true for the granular create_issue tool annotations.
  • Updated tool schema snapshots and added a unit test assertion to verify issue_write exposes DestructiveHint.
Show a summary per file
File Description
pkg/github/issues.go Marks issue_write as destructive via tool annotations.
pkg/github/issues_test.go Asserts issue_write includes DestructiveHint.
pkg/github/issues_granular.go Marks create_issue as destructive via tool annotations.
pkg/github/toolsnaps/issue_write.snap Updates snapshot to include destructiveHint: true.
pkg/github/toolsnaps/create_issue.snap Updates snapshot to include destructiveHint: true.

Copilot's findings

  • Files reviewed: 5/5 changed files
  • Comments generated: 2

Comment thread pkg/github/issues_test.go
Comment thread pkg/github/issues_test.go
…t_IssueWrite_Create

Addresses Copilot feedback on #2470. The test exercises IssueWrite, so
its name now matches the tool under test.
@gokhanarkan gokhanarkan self-assigned this May 13, 2026
@gokhanarkan gokhanarkan requested a review from JoannaaKL May 13, 2026 13:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants