[Server] Handle notifications/cancelled on the handshake era

Abierto
#732 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

@ump45nose ya está trabajando en esto.

Desde el 10/11/2026.

  • #734 de @ump45nose — abierto
  • #744 de @ajendras — cerrado sin fusionar

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
57/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
php

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.

Lenguaje dominante
PHP
Estrellas
1.7k
Forks
206
Merge medio
1 d 17 h
PR fusionados (30 d)
102

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de modelcontextprotocol/php-sdk

Todos los issues de modelcontextprotocol/php-sdk

Issues similares

Más issues de PHP

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.