-
Notifications
You must be signed in to change notification settings - Fork 86
Open
Description
Problem
The list_events tool currently hardcodes dataset to only ["errors", "logs", "spans"]:
https://github.com/getsentry/sentry-mcp/blob/main/packages/mcp-core/src/tools/list-events/index.ts#L67
However, on self-hosted Sentry instances with metrics-only configuration:
- The
spansdataset returns empty (no event-level span storage) - The Sentry UI uses
dataset=metricsEnhancedto display transaction metrics - The
metricsEnhanceddataset works perfectly via direct API calls
Impact
Users cannot access transaction performance data (p50, p75, p95, p99) through MCP, even though:
- The data exists and is visible in the UI
- The API endpoint supports it
- The
list_eventstool already supports aggregate functions
Proposed Solution
Add "metricsEnhanced" to the dataset enum in list-events/index.ts:
dataset: z
.enum(["errors", "logs", "spans", "metricsEnhanced"])
.default("errors")Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels