Repository navigation
fix(mcp): Search all accessible projects when search_issues has no project - #2859
Open
sentry-junior[bot] wants to merge 2 commits into
Open
sentry-junior[bot] wants to merge 2 commits into
sentry-junior[bot] wants to merge 2 commits into
Conversation
…oject Without a project param, Sentry's issues endpoint searches only projects whose teams the user belongs to, and returns no issues when there are none. Send project=-1 instead, as the search-events tools already do. Fixes #2858
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
…-accessible-projects # Conflicts: # packages/mcp-core/src/tools/catalog/search-issues.ts
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Without a
projectparam, Sentry's/organizations/{org}/issues/searches only projects whose teams the user belongs to (get_projectsinsrc/sentry/api/bases/organization.py), andorganization_group_index.pyreturns[]when that list is empty. So an org-widesearch_issuescall reports "No issues found" for users on no project team, while the same query scoped to one project works.search_issuesnow sendsproject=-1when no project is given. That is the UI's "All Projects", and the search-events tools already send it since #2415. Seer and agent translation still get no project, as before.Fixes #2858
via automation
evt_905b9c478746fd9deeb853f85ad7441b· Run IDdispatch_e97811dacf26afdeaa4d0de19094a064.--
View Session [Sentry]