Skip to content

ref(mcp): Send agent feedback through @sentry/mcp - #2862

Draft
sentry-junior[bot] wants to merge 3 commits into
mainfrom
feat/use-sentry-mcp-feedback
Draft

sentry-junior[bot] wants to merge 3 commits into
mainfrom
feat/use-sentry-mcp-feedback

Conversation

@sentry-junior

@sentry-junior sentry-junior Bot commented Dec 3, 2026 •

Copy link
Copy Markdown
Contributor

@sentry/mcp (getsentry/sentry-javascript#26996, first published in 11.22.0) was extracted from submit_feedback_to_sentry_team. This PR makes the tool call the package's captureAgentFeedback instead of keeping its own copy of the placeholder check, message format, 4096-character limit and captureFeedback call.

The tool's name, description, schemas, skills and scopes stay the same. Reports keep the same message, name, source: "mcp_agent" and feedback.* tags. scrubSensitiveText is passed as the package's scrub hook, so it runs after the SDK's built-in token and email scrubbing.

One behavior change: with no Sentry client, the handler now returns a UserInputError instead of silently dropping the report. In practice the tool is already hidden when there's no DSN.

The package adds about 1.6 KB to the @sentry/mcp-server bundle. That fits under the 3.78 MiB budget that #2861 set.

Open decisions:

  • Error hints stay on formatFeedbackSuggestion. The SDK's feedbackHint resolves the feedback tool per process (the last registered tool, or the server's _registeredTools). toolkit checks each session's availableToolNames. That fits the hosted multi-session server better, so this PR leaves the hints alone.
  • exactOptionalPropertyTypes workaround. The published 11.23.0 types declare toolName, clientName and userId without | undefined, so the handler leaves out unset fields instead of passing undefined. sentry-javascript develop already adds | undefined. Once a release ships that, the spreads can go.

cc @sergical

via @sergical.

--

View Session [Sentry]

The submit_feedback_to_sentry_team handler now calls captureAgentFeedback
from @sentry/mcp instead of its own copy of the placeholder check, message
format, length limit and captureFeedback call. The SDK package was extracted
from this tool, so reports keep the same message, name, source and tags.

Co-Authored-By: Sergiy Dybskiy <3760543+sergical@users.noreply.github.com>
@vercel

vercel Bot commented Dec 3, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
cli Ready Ready Preview Dec 3, 2026 7:49pm UTC
sentry-local Ready Ready Preview Dec 3, 2026 7:49pm UTC

Request Review

main was 458 bytes under the 3.77 MiB budget, and @sentry/mcp adds about
1.6 KB net. The new budget restores the 5 to 10 KB of headroom the comment
describes.
…eedback

# Conflicts:
#	packages/mcp-server/script/bundle.ts

This branch was successfully deployed

3 active deployments
Preview – sentry-local — f9f78bbb Deployed Dec 3, 2026 by vercel[bot]
Preview – cli — f9f78bbb Deployed Dec 3, 2026 by vercel[bot]
Actions — f9f78bbb Deployed Dec 3, 2026 by sentry-junior[bot] via eval #2238
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.

1 participant