search_errors / search_logs / search_traces silently ignore an unknown `projectSlugOrId` argument
Maintainer antworten meist innerhalb von 1 Tag
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Anfängerfreundlichkeit
- 48/100
- Issue-Typ
- Bug
- Klarheit
- Größtenteils klar
- Aktivitätsstatus
- Aktiv
- Tech-Stack
- typescript
- Bereich
- api
Rechercherichtung
Start by comparing the input schemas of search_issues and search_errors, which name the project argument differently (projectSlugOrId vs projectSlug), and check how the other search tools (search_logs, search_traces, and the rest) declare theirs. Reproduce by calling search_errors with projectSlugOrId and confirming the result link has no project parameter. Done when an unknown project key is rejected or the same argument name works on every search tool, and executedSearch shows the applied project scope. The maintainers still need to choose between the two expected fixes.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
search_issues takes its project as projectSlugOrId, and its own tool description shows that name in its examples and hints. The other search leaves (search_errors, search_logs, search_traces, search_metrics, search_profiles, search_replays) take projectSlug instead. An agent that has just used search_issues often reuses projectSlugOrId on search_errors.
The input schemas don't set additionalProperties: false, so the unknown key is accepted and dropped without any error or warning. The search then runs across the whole organization, even though the caller asked for one project.
Reproduction
Use an organization example-org with projects php-app (ID 123) and go-service:
search_errors(
organizationSlug="example-org",
projectSlugOrId="php-app",
query="errors in the last 24 hours grouped by error type with counts"
)
- The call succeeds.
- The result link has no
projectparameter:...&query=&field=error.type&field=count%28%29&statsPeriod=24h... - The rows include Go error types (
*fmt.wrapError,context.deadlineExceededError) fromgo-service.
The same call with projectSlug="php-app" scopes correctly: the link has project=123, and only php-app errors come back.
executedSearch.query is "" in both responses, because the project filter is a separate request parameter. The response gives the caller no sign that the filter was dropped.
Expected
Either of these would prevent the silent cross-project result:
- Reject unknown arguments (strict input schemas, or a validation error that names the unknown key and the expected one).
- Accept the same project argument name on every search tool (for example, accept
projectSlugOrIdas an alias ofprojectSlug, or the other way round).
It would also help to show the applied project scope in executedSearch, so callers can check it.
Environment
Remote MCP at https://mcp.sentry.dev/mcp, called through our MCP gateway, which forwards tool arguments unchanged.
- Vorherrschende Sprache
- TypeScript
- Sterne
- 961
- Forks
- 179
- Ø Merge
- 15 Std. 33 Min.
- Gemergte PRs (30 T.)
- 476
Entwicklungsumgebung
Dieses Projekt bietet weder Dev-Container noch Dockerfile noch Beitragsleitfaden – die Einrichtung liegt bei Ihnen. Beginnen Sie mit der README; die allgemeinen Schritte stehen in unserem Leitfaden für den ersten Beitrag.
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus getsentry/toolkit
-
MCP mcp-feedback-pattern
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
getsentry/toolkit#2276 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
CLI enhancement MCP
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 63/100
getsentry/toolkit#1908 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
getsentry/toolkit#1471 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
get_sentry_resource gives no guidance for Explore > Errors list URLsEvtl. vergeben @sentry-junior hat das heute übernommen. OffenMCP mcp-feedback-pattern
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 32/100
getsentry/toolkit#2278 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 65/100
getsentry/toolkit#2275 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
Alle Issues in getsentry/toolkit
Ähnliche Issues
-
[BUG]: Duplicate preposition in heading and unformatted feedback text on Strengthen Argument pageOffenbug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
AOSSIE-Org/DebateAI#801 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
Maintainer antworten meist innerhalb von 1 Tag
-
ci: repo has no GitHub Actions workflow, so pushes and pull requests are never built or testedOffenagents area: runtime automation chore cli consistency dependencies developer-experience difficulty: easy documentation enhancement good first issue help wanted hygiene json-output priority: P3 starters tests
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
-
Add: BOM CineOffenapproved check:passed streams:add
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 72/100
Maintainer antworten meist innerhalb von 1 Tag