Skip to content

Annotate add_issue_comment as destructive#2469

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

Annotate add_issue_comment as destructive#2469
gokhanarkan wants to merge 2 commits into
mainfrom
gokhanarkan/fides-add-issue-comment

Conversation

@gokhanarkan
Copy link
Copy Markdown
Member

Sets destructiveHint: true on add_issue_comment so the IFC client engine can apply egress policies before invocation. First of four egress annotations from github/copilot-mcp-core#1623.

Sets destructiveHint: true on the add_issue_comment tool annotations so
the IFC client engine can apply egress policies before invocation.

Refs github/copilot-mcp-core#1623.
Copilot AI review requested due to automatic review settings May 13, 2026 13:07
@gokhanarkan gokhanarkan requested a review from a team as a code owner May 13, 2026 13:07
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

Annotates the add_issue_comment MCP tool as destructive so IFC client engines can apply egress policies prior to invocation, aligning tool metadata with its side-effecting behavior.

Changes:

  • Set DestructiveHint: true on the add_issue_comment tool annotations.
  • Added/updated unit test assertions to validate the destructive annotation.
  • Updated the add_issue_comment tool schema snapshot to reflect the new annotation.
Show a summary per file
File Description
pkg/github/issues.go Marks add_issue_comment as destructive via tool annotations.
pkg/github/issues_test.go Asserts DestructiveHint is present and set to true.
pkg/github/toolsnaps/add_issue_comment.snap Updates toolsnap to include destructiveHint: true.

Copilot's findings

  • Files reviewed: 3/3 changed files
  • Comments generated: 1

Comment thread pkg/github/issues_test.go
@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