Repository navigation
ref(mcp): Send agent feedback through @sentry/mcp - #2862
Draft
sentry-junior[bot] wants to merge 3 commits into
Draft
sentry-junior[bot] wants to merge 3 commits into
sentry-junior[bot] wants to merge 3 commits into
Conversation
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>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
@sentry/mcp(getsentry/sentry-javascript#26996, first published in 11.22.0) was extracted fromsubmit_feedback_to_sentry_team. This PR makes the tool call the package'scaptureAgentFeedbackinstead of keeping its own copy of the placeholder check, message format, 4096-character limit andcaptureFeedbackcall.The tool's name, description, schemas, skills and scopes stay the same. Reports keep the same message, name,
source: "mcp_agent"andfeedback.*tags.scrubSensitiveTextis passed as the package'sscrubhook, 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
UserInputErrorinstead 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-serverbundle. That fits under the 3.78 MiB budget that #2861 set.Open decisions:
formatFeedbackSuggestion. The SDK'sfeedbackHintresolves the feedback tool per process (the last registered tool, or the server's_registeredTools). toolkit checks each session'savailableToolNames. That fits the hosted multi-session server better, so this PR leaves the hints alone.exactOptionalPropertyTypesworkaround. The published 11.23.0 types declaretoolName,clientNameanduserIdwithout| undefined, so the handler leaves out unset fields instead of passingundefined. sentry-javascriptdevelopalready adds| undefined. Once a release ships that, the spreads can go.cc @sergical
via @sergical.
--
View Session [Sentry]