[Server] Handle notifications/cancelled on the handshake era

Đang mở
#732 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

@ump45nose đang làm issue này rồi.

Từ ngày 10/11/2026.

  • #734 của @ump45nose — đang mở
  • #744 của @ajendras — đã đóng, không merge

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
57/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
php
Lĩnh vực
backend-api-design

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.

Ngôn ngữ chính
PHP
Star
1.7k
Fork
206
Merge trung bình
1 ngày 17 giờ
Pull request đã merge (30 ngày)
102

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của modelcontextprotocol/php-sdk

Tất cả issue của modelcontextprotocol/php-sdk

Issue tương tự

Thêm issue về PHP

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.