Hacktoberfest 2026 : les issues que les mainteneurs ont marquées pour octobre, ouvertes et accessibles aux débutants. Parcourir les issues Hacktoberfest

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

Ouverte
#1,239 2 commentaires 0 réactions 0 personnes assignées Voir sur GitHub

Les mainteneurs répondent en général sous 2 jours

Personne n'a encore pris cette issue.

Évaluation

Difficulté
4/5
Temps estimé
3-5 jours
Accessibilité débutants
45/100
Type d'issue
Bug
Clarté
Plutôt claire
Activité
À l'abandon
Stack technique
csharp
Domaine
networking

Piste de recherche

Commencez par la configuration du Streamable HTTP client dans les samples et suivez le traitement des notifications via McpClientOptions.Handlers.NotificationHandlers et McpSession.RegisterNotificationHandler(...). Reproduisez le problème sans débogueur, en attendant plus de 2–3 minutes après la dernière notification, puis comparez le comportement avec MCP Inspector connecté. C’est terminé lorsque les notifications sporadiques notifications/tools/list_changed continuent d’appeler le handler pendant toute la durée de vie de la connexion MCP.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Description

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.

Langage dominant
C#
Étoiles
4.5k
Forks
814
Merge moyen
9 j 19 h
PR mergées (30 j)
4

Préparer son environnement

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Autres issues de modelcontextprotocol/csharp-sdk

Toutes les issues de modelcontextprotocol/csharp-sdk

Issues similaires

Plus d'issues C#

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.