Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

notifications/tools/list_changed handler apparently times out over Streamable HTTP

Aperta
#1,239 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
45/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
csharp
Ambito
networking

Direzione di ricerca

Inizia dalla configurazione dello Streamable HTTP client nei samples e segui la gestione delle notifiche attraverso McpClientOptions.Handlers.NotificationHandlers e McpSession.RegisterNotificationHandler(...). Riproduci il problema senza debugger, aspettando più di 2–3 minuti dopo l’ultima notifica, e confronta il comportamento con MCP Inspector connesso. Il lavoro è completato quando le notifiche sporadiche notifications/tools/list_changed continuano a invocare l’handler per tutta la durata della connessione MCP.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

bug help wanted P3 ready for work

Describe the bug
Registering a handler of the notifications/tools/list_changed method (both via the McpClientOptions.Handlers.NotificationHandlers and via the McpSession.RegisterNotificationHandler(...) method) on a client that is connected to a server over Streamable HTTP works only for ca. 2-3 minutes after creation. If no notification is sent by the server for a longer time, the handler is no longer invoked. The problem does not happen while a debugger is attached.

I have validated that the notifications continue to be received by the MCP Inspector, when it is connected at the same time as my client.

I assume that an HTTP connection is being dropped somewhere along the way, but I haven't found the root cause yet.

Steps To Reproduce

  1. Set up an ASP.NET MCP Server as shown in the samples.
  2. Have the server send sporadic notifications/tools/list_changed to all connected clients.
  3. Connect an MCP Client via Streamable HTTP as shown in the samples.
  4. Launch both applications without a debugger attached

Expected behavior
Notifications are received for as long as the MCP connection persists, even if they happen rarely.

Lingua principale
C#
Stelle
4.6k
Fork
817
Merge medio
8g 7h
PR unite (30g)
3

Preparare l'ambiente

Apri in Codespaces

Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di modelcontextprotocol/csharp-sdk

Tutte le issue di modelcontextprotocol/csharp-sdk

Issue simili

Altre issue su C#

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.