[Client] Support subscriptions/listen (2026-07-28)
Mantenedores costumam responder em até 1 dia
Avaliação
- Dificuldade
- 4/5
- Tempo estimado
- 3-5 dias
- Facilidade para iniciantes
- 20/100
Direção de pesquisa
Read the client implementation around Client::callTool() and the existing notification handling, then compare the protocol behavior with the referenced server support in #444 and #451. Implement Client::listen() for subscriptions/listen, including the acknowledged filter, subscription notifications, cancellation, and termination behavior. Done means the client can open the stream, dispatch its notifications to callbacks, and return or throw as described; pull request #753 is already open for this issue.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
Is your feature request related to a problem? Please describe.
On 2026-07-28 the server answers subscriptions/listen (#444, #451), but the client has no way to open that stream. A PHP client can't receive notifications/resources/updated or list changes from a modern server, so it has to poll instead.
Describe the solution you'd like
A Client::listen() that sends subscriptions/listen with a SubscriptionFilter, hands the acknowledged filter and each notification of the subscription to callbacks, and returns when the server ends the subscription (including the stdio notifications/cancelled termination), or throws on cancellation like callTool().
Describe alternatives you've considered
Polling resources/read from the application, which misses the point of subscriptions; and a custom notification handler, which can't open the stream or tell its notifications apart from others.
Additional context
#340 listed the client side of SEP-2575, and #185 listed resource subscriptions for the client; both closed with that part open. Handshake-era resources/subscribe is out of scope here.
- Linguagem predominante
- PHP
- Estrelas
- 1.7k
- Forks
- 206
- Merge médio
- 1d 19h
- PRs com merge (30d)
- 100
Preparar o ambiente
- Sem Dockerfile nem arquivo Docker Compose
- Sem modelo de pull request
- Ler o guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de modelcontextprotocol/php-sdk
-
[Client] `Builder::addRequestHandler()` rejects the SDK's own handlers under PHPStanTalvez já em andamento @xixi-box assumiu hoje. Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 68/100
modelcontextprotocol/php-sdk#768 ·
Mantenedores costumam responder em até 1 dia
-
[Server] Handler type uses bare Closure, hard to decorate RegistryInterface under strict PHPStanAbertaServer
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 78/100
modelcontextprotocol/php-sdk#468 · 3 comentários ·
Mantenedores costumam responder em até 1 dia
-
[Client] `callTool()` cannot defer `input_required` or send a later retry (MRTR)Talvez já em andamento @xixi-box assumiu hoje. Aberta
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 30/100
modelcontextprotocol/php-sdk#767 ·
Mantenedores costumam responder em até 1 dia
-
[Server] Answer arguments the input schema refuses with an `isError` result from revision 2025-11-25 onTalvez já em andamento @falisco assumiu hoje. Aberta
Dificuldade 3/5 1-2 dias Facilidade para iniciantes 25/100
modelcontextprotocol/php-sdk#763 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 47/100
modelcontextprotocol/php-sdk#757 ·
Mantenedores costumam responder em até 1 dia
Todas as issues de modelcontextprotocol/php-sdk
Issues semelhantes
-
Change: check an identifier filter the same way in every tool - the order of somcp_search_ordersAbertaconsistency enhancement Orders
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 88/100
novalo-dev/Prestashop-MCP-Server#343 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
Mantenedores costumam responder em até 1 dia
-
claude
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
sprain/sprainocchio#45 ·
Mantenedores costumam responder em até 1 dia
-
sync-en
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 85/100
Mantenedores costumam responder em até 1 dia
-
sync-en
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 85/100
Mantenedores costumam responder em até 1 dia