search_errors / search_logs / search_traces silently ignore an unknown `projectSlugOrId` argument
Mantenedores costumam responder em até 1 dia
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 3/5
- Tempo estimado
- 1-2 dias
- Facilidade para iniciantes
- 48/100
- Tipo de issue
- Bug
- Clareza
- Razoavelmente clara
- Status de atividade
- Ativa
- Stack de tecnologia
- typescript
- Domínio
- api
Direção de pesquisa
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.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
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.
- Linguagem predominante
- TypeScript
- Estrelas
- 961
- Forks
- 179
- Merge médio
- 15h 33min
- PRs com merge (30d)
- 476
Preparar o ambiente
Este projeto não oferece contêiner de desenvolvimento, Dockerfile nem guia de contribuição, então a configuração fica por sua conta: comece pelo README e veja nosso guia da primeira contribuição para os passos gerais.
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de getsentry/toolkit
-
MCP mcp-feedback-pattern
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
getsentry/toolkit#2276 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
CLI enhancement MCP
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 63/100
getsentry/toolkit#1908 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
getsentry/toolkit#1471 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
get_sentry_resource gives no guidance for Explore > Errors list URLsTalvez já em andamento @sentry-junior assumiu hoje. AbertaMCP mcp-feedback-pattern
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 32/100
getsentry/toolkit#2278 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 3/5 1-2 dias Facilidade para iniciantes 65/100
getsentry/toolkit#2275 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
Todas as issues de getsentry/toolkit
Issues semelhantes
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
AykutSarac/jsoncrack.com#616 ·
-
nip27: long hashtag swallows the rest of the content, lone # gives an empty hashtagTalvez já em andamento @bardrop assumiu hoje. Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 82/100
nbd-wtf/nostr-tools#578 ·
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 68/100
backnotprop/plannotator#3427 ·
Mantenedores costumam responder em até 1 dia
-
bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
microsoft/Power-CAT-Copilot-Studio-Kit#942 ·
Mantenedores costumam responder em até 1 dia
-
[BUG]: Duplicate preposition in heading and unformatted feedback text on Strengthen Argument pageAbertabug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
AOSSIE-Org/DebateAI#801 · 1 comentário ·
Mantenedores costumam responder em até 1 dia