feat: add subscription listen streams (SEP-2575) (#1000)

* feat: add subscription listen streams

* refactor: reuse legacy request helper
This commit is contained in:
Dale Seo 2026-07-21 09:53:04 -04:00 • committed by GitHub
commit ff1a715b6e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -16,6 +16,13 @@ A client that communicates with a Git-related MCP server using standard input/ou
A client that communicates with an MCP server using HTTP streaming transport.
- Connects to an MCP server running at `http://localhost:8000`
### Modern Subscription Client (`subscriptions_streamhttp.rs`)
Uses modern discovery and `subscriptions/listen`, prints the accepted filter,
and consumes tagged notifications until graceful closure or cancellation.
- Run with `cargo run -p mcp-client-examples --example clients_subscriptions_streamhttp`
- Retrieves server information and list of available tools
- Calls a tool named "increment"