get_sentry_resource gives no guidance for Explore > Errors list URLs

オープン
#2,278 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@sentry-junior がすでに取り組んでいます。

2026年11月15日 から。

  • #2279 @sentry-junior による — オープン

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
32/100
issue の種類
機能追加
明瞭さ
明確に書かれている
活発さ
停滞
技術スタック
typescript
領域
tooling

調査の方向性

Read packages/mcp-core/src/tools/catalog/get-sentry-resource.ts: parseSentryUrl returns unknown for /explore/errors/... paths, and UNSUPPORTED_URL_GUIDANCE (~:93-114) has no errors/Discover entry, so resolveFromParsedUrl throws at ~:265-268. Follow an existing entry (issue lists, alerts) as the shape for a new errors-list entry that points callers at search_errors and spells out the project, environment, statsPeriod/start/end and query params. Done means the weekly-report URL produces that guidance instead of the generic error, with a test alongside the other URL-parsing tests. Check draft PR #2279 first — it may already cover this.

索引モデルが issue の本文から書いたものです。

説明

MCP mcp-feedback-pattern

Pattern: get_sentry_resource called with an Explore > Errors (Discover) list URL, such as the "view in Sentry" link in the weekly report email (/explore/errors/homepage/?dataset=errors&...&referrer=weekly_report), returns the generic "Could not determine resource type from URL" error. It doesn't say to use search_errors, and it drops the page's project and time scope, so the caller rebuilds them with other search tools.

Reports: 1 (Sentry MCP user feedback MCP-SERVER-GQE, opencode caller, server 0.42.0, kind=missing, impact=worked_around).

What happens

  1. The caller passes url=https://<org>.sentry.io/explore/errors/homepage/?field=title&...&dataset=errors&sort=-timestamp&referrer=weekly_report&project=... (sampled tools/call get_sentry_resource span, status error).
  2. parseSentryUrl returns unknown for this path. UNSUPPORTED_URL_GUIDANCE (packages/mcp-core/src/tools/catalog/get-sentry-resource.ts:93-114 at 2884bc6) has entries for API URLs, issue lists, alerts, logs and traces, but none for errors/Discover pages, so resolveFromParsedUrl throws the generic message (:265-268).
  3. These are real Sentry routes: getsentry/sentry static/app/router/routes.tsx mounts discoverErrorsChildren (index, homepage/, queries/, results/) under explore/errors/, explore/discover/ and the legacy /discover/, and static/app/views/discover/pathnames.tsx builds Discover links on explore/errors.

Fix: getsentry/toolkit#2279 (draft) adds an errors-list entry that points at search_errors, and lists the page's project, environment, statsPeriod/start/end and query params in the guidance so the caller can carry the scope over.

Not this issue: event-detail URLs under explore/errors/<project>:<eventId>/, and explore/agents/ conversation URLs, aren't covered here.

via automation evt_905b9c478746fd9deeb853f85ad7441b · Run ID dispatch_a156216a8080465c06ac0c79b49960ca.

--

View Session [Sentry]

主要言語
TypeScript
スター
961
フォーク
179
平均マージ
15時間 33分
マージ済み PR(30日)
476

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

getsentry/toolkit のほかの issue

getsentry/toolkit の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。