Skip to content

feat(dashboards): Add dashboard catalog tools#1079

Merged
dcramer merged 2 commits into
mainfrom
feat/dashboard-catalog-tools
Jun 10, 2026
Merged

feat(dashboards): Add dashboard catalog tools#1079
dcramer merged 2 commits into
mainfrom
feat/dashboard-catalog-tools

Conversation

@dcramer

@dcramer dcramer commented Jun 10, 2026

Copy link
Copy Markdown
Member

Adds catalog tools for finding dashboards and inspecting saved dashboard details. The implementation validates dashboard list/detail payloads against schemas confirmed from Sentry, uses MSW dashboard fixtures, and keeps project-constrained sessions scoped by resolving the constrained project slug to a numeric ID before filtering dashboard project filters locally.

Dashboard links now use the canonical /dashboard/:id/ route and carry project and statsPeriod query parameters when available, matching the user-facing Sentry route while leaving API requests aligned with the dashboard endpoints.

Fixes #1073

Comment thread packages/mcp-core/src/tools/support/dashboards/index.ts
Comment thread packages/mcp-core/src/tools/catalog/find-dashboards.ts Outdated

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit b53b02d. Configure here.

Comment thread packages/mcp-core/src/tools/catalog/find-dashboards.ts Outdated
Add catalog tools to find dashboards and inspect saved dashboard details.

Validate dashboard API responses against schemas confirmed from Sentry, resolve active project constraints to numeric project IDs, and filter dashboard visibility locally because the dashboard list API does not support project scoping.

Generated dashboard links now use the canonical dashboard route and include project and statsPeriod query parameters when available.

Fixes #1073

Co-Authored-By: GPT-5 Codex <codex@openai.com>
@dcramer dcramer force-pushed the feat/dashboard-catalog-tools branch from b53b02d to 6215193 Compare June 10, 2026 23:03
@dcramer dcramer marked this pull request as ready for review June 10, 2026 23:07
Project-constrained dashboard searches filtered each Sentry API page locally and could stop before later visible dashboards. Preserve Sentry's upstream cursor page size and use an MCP-owned cursor to resume within a filtered page when needed.

Reject MCP-owned project dashboard cursors in org-wide searches before they reach Sentry, and document that dashboard cursors must stay within the same search scope and project constraint.

Add regression coverage for empty filtered pages, overflow within a visible page, first-page cursor resume, and cross-scope cursor rejection.

Co-Authored-By: GPT-5 Codex <noreply@openai.com>
@dcramer dcramer force-pushed the feat/dashboard-catalog-tools branch from 6215193 to e023ca0 Compare June 10, 2026 23:11
Comment thread packages/mcp-core/src/tools/support/dashboards/index.ts
@dcramer dcramer merged commit 7b7e0c5 into main Jun 10, 2026
20 checks passed
@dcramer dcramer deleted the feat/dashboard-catalog-tools branch June 10, 2026 23:43
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.

Implement MCP dashboard tools from CLI parity

1 participant