MCP: pass protocol cancellation through to Sentry API requests
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
- 65/100
- Tipo de issue
- Funcionalidade
- Clareza
- Claramente especificada
- Status de atividade
- Ativa
- Stack de tecnologia
- typescript
- Domínio
- tooling
Direção de pesquisa
Start at handleToolCall in packages/mcp-core/src/server.ts (around line 410) and trace how the tool context is built, then follow how the API client is constructed from it. The reference behavior is the shared transport in @sentry/api (transport.ts, test/cancellation.test.ts), which already honors per-request signals and stops retry backoff. Thread extra.signal through the context and every API call including polling and retry waits, recognizing cancellation by signal.aborted/abort reason. Done when a new test cancels an in-flight call, asserts no further API requests, and concurrent calls still complete.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
When an MCP client cancels a tool call, the work keeps running. handleToolCall in packages/mcp-core/src/server.ts only takes params, so the SDK's extra.signal never reaches the tool context, the API client or its polling and retry waits.
The transport side is already done in @sentry/api. Its shared transport, which MCP uses since getsentry/toolkit#1722, honors per-request signals and stops retry backoff on abort (transport.ts, covered by test/cancellation.test.ts, from getsentry/sentry-api-schema#105).
What's left:
- Thread
extra.signalfrom the tool handler into the invocation context and every API call the tool makes, including polling and retry waits. - Keep cancellation scoped to the one invocation, so concurrent calls on the same server keep running.
- Recognize cancellation by
signal.abortedand the abort reason, not onlyerror.name === "AbortError", since MCP reasons can be strings. - Add a test that cancels an in-flight tool call and checks that no further API requests go out.
Split out of getsentry/sentry-api-schema#95.
via @BYK.
--
- 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
-
MCP mcp-feedback-pattern
Dificuldade 3/5 1-2 dias Facilidade para iniciantes 68/100
getsentry/toolkit#2273 · 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