notifications/tools/list_changed handler apparently times out over Streamable HTTP
メンテナーはふだん 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 の本文から書いたものです。
説明
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
- Set up an ASP.NET MCP Server as shown in the samples.
- Have the server send sporadic notifications/tools/list_changed to all connected clients.
- Connect an MCP Client via Streamable HTTP as shown in the samples.
- 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
環境構築
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
modelcontextprotocol/csharp-sdk のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
modelcontextprotocol/csharp-sdk#1867 ·
メンテナーはふだん 2 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
modelcontextprotocol/csharp-sdk#1840 · コメント 1 件 ·
メンテナーはふだん 2 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
modelcontextprotocol/csharp-sdk#1836 ·
メンテナーはふだん 2 日以内に返信
-
enhancement needs confirmation
難易度 2/5 1〜3時間 初心者へのやさしさ 64/100
modelcontextprotocol/csharp-sdk#678 · コメント 1 件 ·
メンテナーはふだん 2 日以内に返信
-
enhancement needs confirmation P3 ready for work
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
modelcontextprotocol/csharp-sdk#515 · コメント 6 件 · リアクション 3 件 ·
メンテナーはふだん 2 日以内に返信
modelcontextprotocol/csharp-sdk の issue をすべて見る
似ている issue
-
.NET bug
難易度 2/5 1〜3時間 初心者へのやさしさ 86/100
RayWangQvQ/BiliBiliToolPro#1144 ·
メンテナーはふだん 1 日以内に返信
-
area-System.Numerics.Tensors untriaged
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
dotnet/runtime#134691 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 86/100
microsoft/DataFactory.MCP#121 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
unoplatform/uno.templates#2277 ·
メンテナーはふだん 5 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
microsoft/fluentui-blazor#5344 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信