[Client] Support subscriptions/listen (2026-07-28)
Maintainer antworten meist innerhalb von 1 Tag
Bewertung
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Anfängerfreundlichkeit
- 20/100
Rechercherichtung
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.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
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.
- Vorherrschende Sprache
- PHP
- Sterne
- 1.7k
- Forks
- 206
- Ø Merge
- 1 T. 19 Std.
- Gemergte PRs (30 T.)
- 100
Entwicklungsumgebung
- Kein Dockerfile und keine Docker-Compose-Datei
- Keine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus modelcontextprotocol/php-sdk
-
[Client] `Builder::addRequestHandler()` rejects the SDK's own handlers under PHPStanEvtl. vergeben @xixi-box hat das heute übernommen. Offen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
modelcontextprotocol/php-sdk#768 ·
Maintainer antworten meist innerhalb von 1 Tag
-
[Server] Handler type uses bare Closure, hard to decorate RegistryInterface under strict PHPStanOffenServer
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 78/100
modelcontextprotocol/php-sdk#468 · 3 Kommentare ·
Maintainer antworten meist innerhalb von 1 Tag
-
[Client] `callTool()` cannot defer `input_required` or send a later retry (MRTR)Evtl. vergeben @xixi-box hat das heute übernommen. Offen
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 30/100
modelcontextprotocol/php-sdk#767 ·
Maintainer antworten meist innerhalb von 1 Tag
-
[Server] Answer arguments the input schema refuses with an `isError` result from revision 2025-11-25 onEvtl. vergeben @falisco hat das heute übernommen. Offen
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 25/100
modelcontextprotocol/php-sdk#763 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 47/100
modelcontextprotocol/php-sdk#757 ·
Maintainer antworten meist innerhalb von 1 Tag
Alle Issues in modelcontextprotocol/php-sdk
Ähnliche Issues
-
Change: check an identifier filter the same way in every tool - the order of somcp_search_ordersOffenconsistency enhancement Orders
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 88/100
novalo-dev/Prestashop-MCP-Server#343 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
Maintainer antworten meist innerhalb von 1 Tag
-
claude
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
sprain/sprainocchio#45 ·
Maintainer antworten meist innerhalb von 1 Tag
-
sync-en
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 85/100
Maintainer antworten meist innerhalb von 1 Tag
-
sync-en
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 85/100
Maintainer antworten meist innerhalb von 1 Tag