Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

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

オープン
#1,239 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 2 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
45/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
csharp
領域
networking

調査の方向性

samples の Streamable HTTP client セットアップから始め、McpClientOptions.Handlers.NotificationHandlers と McpSession.RegisterNotificationHandler(...) を通じて通知処理を追跡します。デバッガーを使わずに、最後の通知から 2~3 分以上待って問題を再現し、MCP Inspector を接続した場合の動作と比較します。完了の条件は、散発的な notifications/tools/list_changed が MCP 接続の存続期間中、引き続き handler を呼び出すことです。

索引モデルが issue の本文から書いたものです。

説明

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.

主要言語
C#
スター
4.5k
フォーク
814
平均マージ
9日 19時間
マージ済み PR(30日)
4

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

modelcontextprotocol/csharp-sdk のほかの issue

modelcontextprotocol/csharp-sdk の issue をすべて見る

似ている issue

C# の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。