Skip to content

fix: set destructiveHint: false on notification-subscription tools - #3074

Open
juneja-varun wants to merge 1 commit into
github:mainfrom
juneja-varun:fix/notification-subscription-destructive-hint
Open

fix: set destructiveHint: false on notification-subscription tools#3074
juneja-varun wants to merge 1 commit into
github:mainfrom
juneja-varun:fix/notification-subscription-destructive-hint

Conversation

@juneja-varun

Copy link
Copy Markdown

Problem

manage_notification_subscription and manage_repository_notification_subscription both emit readOnlyHint: false but omit destructiveHint. Under MCP schema 2025-06-18, an omitted destructiveHint defaults to true, so a spec-conformant client renders both as destructive — even though they only update the caller's own subscription state (watch/ignore/remove the subscription preference) and don't modify thread or repository content. This makes consent UIs over-warn on what are actually low-risk, per-user preference toggles.

Fix

Set destructiveHint: false explicitly on both, per #2841.

Testing

go build ./... and go test ./... (full suite, all packages) pass. Regenerated the two affected toolsnaps via UPDATE_TOOLSNAPS=true go test ./... as instructed in CONTRIBUTING.md, and re-ran script/generate-docs (no doc changes needed — hints aren't rendered in the generated docs). gofmt clean on the changed file.

Fixes #2841

manage_notification_subscription and manage_repository_notification_subscription
emit readOnlyHint: false but omit destructiveHint. Under MCP schema
2025-06-18, an omitted destructiveHint defaults to true, so
spec-conformant clients render both as destructive even though they
only update the caller's own subscription state and don't modify
thread or repository content.

Set destructiveHint: false explicitly on both. Regenerated toolsnaps
via UPDATE_TOOLSNAPS=true go test ./...

Fixes github#2841
@juneja-varun
juneja-varun requested a review from a team as a code owner August 14, 2026 20:35
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.

Two notification-subscription tools omit destructiveHint, defaulting to destructive under MCP 2025-06-18

1 participant