Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions packages/mcp-core/src/telem/sentry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,15 @@ export function sentryBeforeSend(event: any, hint: any): any {
// (e.g., "Country, region, or territory not supported", temperature issues).
// Without custom fingerprinting, they all get grouped into a single issue.
const firstException = event?.exception?.values?.[0];

// Drop expected user-input and configuration errors — these are not bugs.
if (
firstException?.type === "UserInputError" ||
firstException?.type === "ConfigurationError"
) {
return null;
}

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Config errors silently dropped from Sentry

High Severity

Filtering all ConfigurationError events in sentryBeforeSend also drops the intentional logIssue calls from formatServerConfigError on HTTP transport. Those alerts notify operators about server-side config failures, and the generic user message claims the operator was notified.

Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit b1138dc. Configure here.


if (firstException?.type === "AI_APICallError" && firstException.value) {
event.fingerprint = ["AI_APICallError", firstException.value];
}
Expand Down
Loading