[Client] `callTool()` cannot defer `input_required` or send a later retry (MRTR)
Los mantenedores suelen responder en 1 día
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 30/100
Línea de trabajo
Read src/Client/Protocol.php around lines 560-627 and MAX_ROUND_TRIPS at line 69 to see how rounds are resolved through the elicitation handlers, then InputRequestResolver.php:145,163 for the message-only exception thrown from the callback. Check the callTool() signature and the linked pull request #769 before starting, since work may already be under way. Done means an opt-out that returns the raw InputRequiredResult plus a retry path accepting inputResponses and requestState, covered by a test against a tool that returns InputRequiredResult.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Package: mcp/sdk 0.9.0; still present in v0.10.0 and main (7155eae)
Repro: $client->callTool('x', [...]) against a tool that returns InputRequiredResult, from a client that wants
to park the request until a human answers hours later.
Actual: Client\Protocol::request() always resolves rounds through the elicitation handlers
(src/Client/Protocol.php:560-627, MAX_ROUND_TRIPS at line 69). requestState is never exposed, and callTool()
takes no inputResponses / requestState. Throwing from the callback gives a message-only RuntimeException
(InputRequestResolver.php:145,163).
Expected: an option to return the raw InputRequiredResult, and a way to send the retry with inputResponses
and requestState. Deferral is what multi-round-trip requests are designed for. I understand automatic resolution
is deliberate (#456); this asks for an opt-out next to it. The Tasks extension (#428) covers task-augmented
requests, not plain MRTR.
Found while building Leash for the Symfony AI & PHP MCP SDK hackathon.
- Lenguaje dominante
- PHP
- Estrellas
- 1.7k
- Forks
- 206
- Merge medio
- 1 d 19 h
- PR fusionados (30 d)
- 100
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de modelcontextprotocol/php-sdk
-
[Client] `Builder::addRequestHandler()` rejects the SDK's own handlers under PHPStanPosiblemente ocupada @xixi-box la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
modelcontextprotocol/php-sdk#768 ·
Los mantenedores suelen responder en 1 día
-
[Server] Handler type uses bare Closure, hard to decorate RegistryInterface under strict PHPStanAbiertoServer
Dificultad 1/5 Menos de una hora Aptitud para principiantes 78/100
modelcontextprotocol/php-sdk#468 · 3 comentarios ·
Los mantenedores suelen responder en 1 día
-
[Server] Answer arguments the input schema refuses with an `isError` result from revision 2025-11-25 onPosiblemente ocupada @falisco la tomó hoy. Abierto
Dificultad 3/5 1-2 días Aptitud para principiantes 25/100
modelcontextprotocol/php-sdk#763 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 4/5 3-5 días Aptitud para principiantes 47/100
modelcontextprotocol/php-sdk#757 ·
Los mantenedores suelen responder en 1 día
-
[Server] A `float $x = INF` default makes `tools/list` fail for all toolsPosiblemente ocupada @andre-schade la tomó hace 2 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 25/100
modelcontextprotocol/php-sdk#756 ·
Los mantenedores suelen responder en 1 día
Todos los issues de modelcontextprotocol/php-sdk
Issues similares
-
Change: check an identifier filter the same way in every tool - the order of somcp_search_ordersAbiertoconsistency enhancement Orders
Dificultad 1/5 Menos de una hora Aptitud para principiantes 88/100
novalo-dev/Prestashop-MCP-Server#343 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Los mantenedores suelen responder en 1 día
-
claude
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
sprain/sprainocchio#45 ·
Los mantenedores suelen responder en 1 día
-
sync-en
Dificultad 1/5 Menos de una hora Aptitud para principiantes 85/100
Los mantenedores suelen responder en 1 día
-
sync-en
Dificultad 1/5 Menos de una hora Aptitud para principiantes 85/100
Los mantenedores suelen responder en 1 día