get_sentry_resource gives no guidance for Explore > Errors list URLs

Ouverte
#2,278 1 commentaire 0 réactions 0 personnes assignées Voir sur GitHub

Les mainteneurs répondent en général sous 1 jour

@sentry-junior y travaille déjà.

Depuis le 15/11/2026.

  • #2279 par @sentry-junior — ouverte

Évaluation

Difficulté
2/5
Temps estimé
1-3 heures
Accessibilité débutants
32/100
Type d'issue
Fonctionnalité
Clarté
Clairement spécifiée
Activité
À l'abandon
Stack technique
typescript
Domaine
tooling

Piste de recherche

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.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Description

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]

Langage dominant
TypeScript
Étoiles
961
Forks
179
Merge moyen
15 h 33 min
PR mergées (30 j)
476

Préparer son environnement

Ce projet ne fournit ni conteneur de développement, ni Dockerfile, ni guide de contribution : l'installation est à votre charge. Commencez par son README, et consultez notre guide de la première contribution pour les étapes générales.

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Autres issues de getsentry/toolkit

Toutes les issues de getsentry/toolkit

Issues similaires

Plus d'issues TypeScript

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.