Skip to content

fix(mcp): Search all accessible projects when search_issues has no project - #2859

Open
sentry-junior[bot] wants to merge 2 commits into
mainfrom
fix/search-issues-all-accessible-projects
Open

sentry-junior[bot] wants to merge 2 commits into
mainfrom
fix/search-issues-all-accessible-projects

Conversation

@sentry-junior

@sentry-junior sentry-junior Bot commented Dec 3, 2026

Copy link
Copy Markdown
Contributor

Without a project param, Sentry's /organizations/{org}/issues/ searches only projects whose teams the user belongs to (get_projects in src/sentry/api/bases/organization.py), and organization_group_index.py returns [] when that list is empty. So an org-wide search_issues call reports "No issues found" for users on no project team, while the same query scoped to one project works.

search_issues now sends project=-1 when 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 ID dispatch_e97811dacf26afdeaa4d0de19094a064.

--

View Session [Sentry]

…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
@vercel

vercel Bot commented Dec 3, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
cli Ready Ready Preview Dec 4, 2026 6:45pm UTC
sentry-local Ready Ready Preview Dec 4, 2026 6:45pm UTC

Request Review

@sentry-junior
sentry-junior Bot marked this pull request as ready for review December 3, 2026 19:00
@sentry-junior
sentry-junior Bot requested a review from a team as a code owner December 3, 2026 19:00
@github-actions github-actions Bot added the risk: medium PR risk score: medium label Dec 3, 2026
…-accessible-projects

# Conflicts:
#	packages/mcp-core/src/tools/catalog/search-issues.ts

This branch was successfully deployed

3 active deployments
Preview – sentry-local — 40d1e378 Deployed Dec 4, 2026 by vercel[bot]
Preview – cli — 40d1e378 Deployed Dec 4, 2026 by vercel[bot]
Actions — 40d1e378 Deployed Dec 4, 2026 by sentry-junior[bot] via eval #2273
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

risk: medium PR risk score: medium

Projects

None yet

Development

Successfully merging this pull request may close these issues.

search_issues without a project returns no issues when the user is on no project team

0 participants