Skip to content

fix(sentry): Drop client-side JsonRpcError_-32603 validation errors - #1282

Open
sentry[bot] wants to merge 1 commit into
mainfrom
seer/fix/drop-jsonrpc-error-32603
Open

fix(sentry): Drop client-side JsonRpcError_-32603 validation errors#1282
sentry[bot] wants to merge 1 commit into
mainfrom
seer/fix/drop-jsonrpc-error-32603

Conversation

@sentry

@sentry sentry Bot commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

This PR addresses the issue of excessive and unactionable JsonRpcError_-32603 events being reported to Sentry.

These errors originate from the MCP server's transport integration capturing JSON-RPC -32603 responses, which are often triggered by malformed client requests (e.g., missing or incorrect parameters in initialize calls). While -32603 is technically an "Internal Error" according to the JSON-RPC spec, in this context, they represent client-side validation failures rather than genuine server bugs requiring immediate attention.

To reduce noise and improve the signal-to-noise ratio in Sentry, this change adds a filter to the sentryBeforeSend hook in packages/mcp-core/src/telem/sentry.ts. It now checks if the first exception's type starts with JsonRpcError_-32603 and, if so, returns null to prevent the event from being sent to Sentry.

This approach aligns with previous attempts to address this issue (e.g., PRs #936 and #1180) which were unfortunately not merged.

Fixes MCP-SERVER-F1J

@sentry <feedback>: Autofix iterates on these changes
@sentry stop iterating: Autofix stops iterating on this run

This PR was automatically generated by Sentry. You can adjust this setting at any time.

@sentry
sentry Bot marked this pull request as ready for review September 2, 2026 22:45
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.

0 participants