[Server] Handle notifications/cancelled on the handshake era

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

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

@ump45nose がすでに取り組んでいます。

2026年11月10日 から。

  • #734 @ump45nose による — オープン
  • #744 @ajendras による — マージされずにクローズ

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
57/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
php

調査の方向性

Start by tracing the handshake-era server's request handling and how suspended fibers retain pending responses; the issue does not name specific files or tests. Check how the stdio transport handles notifications/cancelled and read the linked cancellation utility specification. Done means a cancelled request stops processing and its pending response is dropped, including when its handler is suspended awaiting elicitation or sampling.

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

説明

help wanted improves spec compliance Server

Currently a handshake-era server ignores notifications/cancelled - there's no handler for it, only stdio uses it on 2026-07-28 to end a subscriptions/listen stream. Per the cancellation utility the server should stop processing the request and not answer it.

With PHP handling requests one at a time, there's only something to cancel while a handler is suspended in its fiber, e.g. waiting for an elicitation or sampling answer. So the fix would be dropping that suspended fiber and its pending response.


Help is very much welcome - let us know if you need some pointers.

主要言語
PHP
スター
1.7k
フォーク
206
平均マージ
1日 17時間
マージ済み PR(30日)
102

環境構築

はじめの一歩

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

modelcontextprotocol/php-sdk のほかの issue

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

似ている issue

PHP の issue をもっと見る

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

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