René's URL Explorer Experiment


Title: Add the client-side subscriptions/listen driver by maxisbey · Pull Request #3047 · modelcontextprotocol/python-sdk · GitHub

Open Graph Title: Add the client-side subscriptions/listen driver by maxisbey · Pull Request #3047 · modelcontextprotocol/python-sdk

X Title: Add the client-side subscriptions/listen driver by maxisbey · Pull Request #3047 · modelcontextprotocol/python-sdk

Description: Stacked on #3046 (the request-id and cancellation plumbing) — review this one for the driver only; the base branch carries the transport work. The client half of subscriptions/listen (2026-07-28, SEP-2575), shaped after the ecosystem's own streaming idioms: one context manager, async for consumption, the acknowledgment as state on the handle rather than an event in the stream. async with client.listen(tools_list_changed=True, resource_subscriptions=["note://todo"]) as sub: print(sub.honored) # the subset the server agreed to deliver async for event in sub: match event: case ToolsListChanged(): tools = await client.list_tools() case ResourceUpdated(uri=uri): body = await client.read_resource(uri) Motivation and Context On the 2026 wire the response to subscriptions/listen is the notification stream. The server half shipped in #3035; until now a client had to hand-roll a message_handler, park a raw send_request in a task, and demultiplex _meta subscription ids by hand (see the old examples/stories/subscriptions/client.py for what that looked like). The driver folds all of it into structured concurrency: Entering waits for the acknowledgment (spec: the ack MUST be the stream's first message), so sub.honored — the filter subset the server agreed to deliver — is always populated, making the spec's "client SHOULD check the acknowledged filter" a plain attribute read. Pre-ack failures raise from enter (server rejection as MCPError, a stream that dies unacknowledged as SubscriptionLost); nothing degrades silently. Iteration yields typed events — the same four frozen dataclasses the server publishes, now defined once in mcp/shared/subscriptions.py and re-exported from the server module (no import breaks). Events are level triggers with no payload beyond identity, so unconsumed duplicates deduplicate and the backlog is bounded by the filter's width by construction — no cap, no overflow policy. The stream's two endings are control flow, mirroring the spec's clean-end-vs-abrupt-drop distinction: the server's empty result ends the async for; a drop raises SubscriptionLost. No replay, no automatic re-listen — a reconnecting client refetches, which the docs show as a four-line loop. Exiting the context ends the subscription with the transport's own spelling via the base branch's plumbing: the POST's response stream is aborted over streamable HTTP (that wire's cancellation signal), notifications/cancelled is sent on stream transports. The driver itself is transport-blind. Multiple subscriptions demultiplex independently by their verbatim subscription ids; tool calls run freely beside open streams — the docs cover the watcher-task pattern explicitly. Client.listen() on a pre-2026 connection raises a typed ListenNotSupportedError steering to the legacy verbs (TypeScript SDK parity), and subscribe_resource/unsubscribe_resource now carry deprecation warnings on both Client and ClientSession, with a migration-guide entry. Session-level mechanics worth a reviewer's attention: acks are consumed only for ids in the driver's minted namespace, so raw escape-hatch listens (driving send_request directly) still observe their acks through message_handler; delivered events are handed to the consumer after the message_handler tee, so the caching layer's eviction always completes before an event-triggered refetch can run; and session teardown settles every open route, so a watcher task in a sibling task group gets SubscriptionLost instead of hanging when the client closes. One transport fix rides along: a per-request SSE stream that drops without ever carrying an event id now resolves its request with CONNECTION_CLOSED instead of leaving the waiter pending for the session's lifetime. How Has This Been Tested? Full suite: 100.00% line+branch coverage, pyright clean. 24 driver tests (in-process, public API): ack surfacing, all four event kinds, dedupe, graceful/lost/local endings, era steer, rejection-from-enter, degenerate immediate-result open, server-sent cancel pre- and post-ack, slot release on exit, concurrent demux, tee ordering, ack-timeout, read-timeout exemption, duplicate acks, teardown-unblocks-sibling-consumer, raw-id collision containment, retained-handle staleness, bare-string filter rejection. 4 interaction tests across the connect matrix (in-memory + streamable HTTP at 2026; the era guard on the 2025 cells) with requirement-manifest rows. Docs: the subscriptions page gained a client section backed by a tested snippet; the subscriptions story is rewritten from ~95 lines of hand-rolled demux to the driver and runs across its matrix. Manually against a real uvicorn server through the public Client: honored filter round-trip, both event kinds, exact-URI filter silence, exit-frees-slot proven by a second listen on the same session, refetch-after-change, and the legacy steer. Breaking Changes None. The event types moved to mcp/shared/subscriptions.py but remain importable from mcp.server.subscriptions; the deprecated subscription verbs keep working against 2025-era servers. Types of changes Bug fix (non-breaking change which fixes an issue) New feature (non-breaking change which adds functionality) Breaking change (fix or feature that would cause existing functionality to change) Documentation update Checklist I have read the MCP Documentation My code follows the repository's style guidelines New and existing tests pass locally I have added appropriate error handling I have added or updated documentation as needed Additional context The conformance suite has no client-role listen scenarios — the upstream SEP traceability file explicitly excludes the two client-side obligations (subscription-id correlation is client-internal demux, not wire-observable; the ack check has no wire-observable definition) and the stdio client harness is tracked separately upstream. Coverage here is therefore the interaction suite plus TypeScript-SDK behavioral parity; flagging per the repo's conformance rule so the exclusion is a deliberate acceptance, not an oversight. Deliberate omissions, for the record: no callbacks layer (the TypeScript SDK routes listen events into its notification-handler registrations; here message_handler still sees every teed frame, so a handler-style consumer remains constructible), no auto-open-at-connect, no auto-re-listen, and no close() method — the context manager is the lifecycle. Transport hardening (added during review) Two behavior notes from the waiter-resolution hardening that rode along with this PR: A request POST answered with 202 Accepted now fails that request immediately with a synthesized INVALID_REQUEST error (the spec requires SSE or JSON for requests). Previously the caller waited indefinitely, or until a non-conforming server delivered the response on the standalone GET stream. This is stricter than the TypeScript client, which leaves the request pending. Re-issuing a request id after abandoning the earlier attempt now severs the superseded POST at registration, so a lingering stream from the old attempt can no longer answer, fail, or resolve the new request's waiter. One residual window remains between the dispatcher registering the new waiter and the transport dequeuing the new request; closing it fully would need dispatcher-side attempt identity, which is out of scope here.

Open Graph Description: Stacked on #3046 (the request-id and cancellation plumbing) — review this one for the driver only; the base branch carries the transport work. The client half of subscriptions/listen (2026-07-28, S...

X Description: Stacked on #3046 (the request-id and cancellation plumbing) — review this one for the driver only; the base branch carries the transport work. The client half of subscriptions/listen (2026-07-28, S...

Opengraph URL: https://github.com/modelcontextprotocol/python-sdk/pull/3047

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:cf39c198-1535-ad2e-162f-5a5a94ab52de
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idA664:1FAD2A:141DBBC:1A708BB:6A5C5996
html-safe-nonce26edff043939add4da0d046b4a70f6730ca457136593d15a3a55e9f3cf7a4467
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNjY0OjFGQUQyQToxNDFEQkJDOjFBNzA4QkI6NkE1QzU5OTYiLCJ2aXNpdG9yX2lkIjoiODUyNzIwMzEzMDM4Nzc0OTI3MCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac6a27548a9308529d4176e3a465aaa53bc6f97f537512e292ecd47d67d39a6972
hovercard-subject-tagpull_request:3972898099
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/modelcontextprotocol/python-sdk/pull/3047/files
twitter:imagehttps://avatars.githubusercontent.com/u/224885523?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/224885523?s=400&v=4
og:image:altStacked on #3046 (the request-id and cancellation plumbing) — review this one for the driver only; the base branch carries the transport work. The client half of subscriptions/listen (2026-07-28, S...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None5290d7e14309ad1e76106a9c4237bd1041517e83ea182c8ab756752cb0c6940b
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/modelcontextprotocol/python-sdk git https://github.com/modelcontextprotocol/python-sdk.git
octolytics-dimension-user_id182288589
octolytics-dimension-user_loginmodelcontextprotocol
octolytics-dimension-repository_id862584018
octolytics-dimension-repository_nwomodelcontextprotocol/python-sdk
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id862584018
octolytics-dimension-repository_network_root_nwomodelcontextprotocol/python-sdk
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release9c975978430e9ad293956f2bbdaf153b1bd84a99
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/modelcontextprotocol/python-sdk/pull/3047/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmodelcontextprotocol%2Fpython-sdk%2Fpull%2F3047%2Ffiles
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmodelcontextprotocol%2Fpython-sdk%2Fpull%2F3047%2Ffiles
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=modelcontextprotocol%2Fpython-sdk
Reloadhttps://github.com/modelcontextprotocol/python-sdk/pull/3047/files
Reloadhttps://github.com/modelcontextprotocol/python-sdk/pull/3047/files
Reloadhttps://github.com/modelcontextprotocol/python-sdk/pull/3047/files
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/3047/files
modelcontextprotocol https://github.com/modelcontextprotocol
python-sdkhttps://github.com/modelcontextprotocol/python-sdk
Notifications https://github.com/login?return_to=%2Fmodelcontextprotocol%2Fpython-sdk
Fork 3.7k https://github.com/login?return_to=%2Fmodelcontextprotocol%2Fpython-sdk
Star 23.7k https://github.com/login?return_to=%2Fmodelcontextprotocol%2Fpython-sdk
Code https://github.com/modelcontextprotocol/python-sdk
Issues 259 https://github.com/modelcontextprotocol/python-sdk/issues
Pull requests 307 https://github.com/modelcontextprotocol/python-sdk/pulls
Actions https://github.com/modelcontextprotocol/python-sdk/actions
Projects https://github.com/modelcontextprotocol/python-sdk/projects
Models https://github.com/modelcontextprotocol/python-sdk/models
Security and quality 6 https://github.com/modelcontextprotocol/python-sdk/security
Insights https://github.com/modelcontextprotocol/python-sdk/pulse
Code https://github.com/modelcontextprotocol/python-sdk
Issues https://github.com/modelcontextprotocol/python-sdk/issues
Pull requests https://github.com/modelcontextprotocol/python-sdk/pulls
Actions https://github.com/modelcontextprotocol/python-sdk/actions
Projects https://github.com/modelcontextprotocol/python-sdk/projects
Models https://github.com/modelcontextprotocol/python-sdk/models
Security and quality https://github.com/modelcontextprotocol/python-sdk/security
Insights https://github.com/modelcontextprotocol/python-sdk/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Fmodelcontextprotocol%2Fpython-sdk%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fmodelcontextprotocol%2Fpython-sdk%2Fissues%2Fnew%2Fchoose
maxisbeyhttps://github.com/maxisbey
mainhttps://github.com/modelcontextprotocol/python-sdk/tree/main
listen-client-driverhttps://github.com/modelcontextprotocol/python-sdk/tree/listen-client-driver
Conversation 37 https://github.com/modelcontextprotocol/python-sdk/pull/3047
Commits 18 https://github.com/modelcontextprotocol/python-sdk/pull/3047/commits
Checks 38 https://github.com/modelcontextprotocol/python-sdk/pull/3047/checks
Files changed https://github.com/modelcontextprotocol/python-sdk/pull/3047/files
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/3047/files
Add the client-side subscriptions/listen driver https://github.com/modelcontextprotocol/python-sdk/pull/3047/files#top
Show all changes 18 commits https://github.com/modelcontextprotocol/python-sdk/pull/3047/files
b39c4bf Add the client-side subscriptions/listen driver maxisbey Jul 1, 2026 https://github.com/modelcontextprotocol/python-sdk/pull/3047/commits/b39c4bf8858ae42d600ec4b828b974bc40de5516
f69098c Keep the docs watch-loop snippet ASCII maxisbey Jul 1, 2026 https://github.com/modelcontextprotocol/python-sdk/pull/3047/commits/f69098c263642f2e93de82dc4bf52030d1f26c77
6c36cbd Harden the listen driver against receive-order races and hostile peers maxisbey Jul 1, 2026 https://github.com/modelcontextprotocol/python-sdk/pull/3047/commits/6c36cbd8355a96ee026f841ce04ae8f2888e17cf
ec13b6b Trim comments and docstrings in the listen driver changes maxisbey Jul 1, 2026 https://github.com/modelcontextprotocol/python-sdk/pull/3047/commits/ec13b6b01c8d18ac4bfcc401ef9ba1c450e62044
7550131 Point moved docs pages at the client driver section maxisbey Jul 2, 2026 https://github.com/modelcontextprotocol/python-sdk/pull/3047/commits/755013118f64f97c76e49352145865a3908fe399
c10f25f Move the docs watch-loop example into docs_src and prove it maxisbey Jul 2, 2026 https://github.com/modelcontextprotocol/python-sdk/pull/3047/commits/c10f25fe45c168e03f922e674cdf8613dc654e3a
6770ffa Deep-link the migration guide and spell out the watcher test choreogr… maxisbey Jul 2, 2026 https://github.com/modelcontextprotocol/python-sdk/pull/3047/commits/6770ffa250fd55b9442230ff42d726732f7301c0
cf2a7d3 Prove the caller-supplied listen id end to end and undefer its requir… maxisbey Jul 6, 2026 https://github.com/modelcontextprotocol/python-sdk/pull/3047/commits/cf2a7d3d8a455d834c937ae69ebf56486f0fd84f
9ef0ed7 Prove concurrent listen streams demux their own acks maxisbey Jul 6, 2026 https://github.com/modelcontextprotocol/python-sdk/pull/3047/commits/9ef0ed78b79eabd6f19a289af140527bdb60a261
46ba071 Rewrite the subscriptions docs around a worked example maxisbey Jul 7, 2026 https://github.com/modelcontextprotocol/python-sdk/pull/3047/commits/46ba07180e9b8624d7eef07af5b9f484f49aaabc
2ce1e47 Repoint subscription doc links at the renamed headings maxisbey Jul 7, 2026 https://github.com/modelcontextprotocol/python-sdk/pull/3047/commits/2ce1e475e14fa4c8b7e4081ed2194439ddd7139f
5e941c6 Connect the subscription examples over HTTP maxisbey Jul 7, 2026 https://github.com/modelcontextprotocol/python-sdk/pull/3047/commits/5e941c6301c84f7bfcef17b5bcd24cdb2bd11654
b9284a5 State precisely what a subscription filter can and cannot leak maxisbey Jul 7, 2026 https://github.com/modelcontextprotocol/python-sdk/pull/3047/commits/b9284a5d315044ddc85bb6c4b3da52fd1c285e01
34215a9 Correct the stop-watching wire claim and the copied-filename import note maxisbey Jul 7, 2026 https://github.com/modelcontextprotocol/python-sdk/pull/3047/commits/34215a928a9ee7cfdbdf24fd67932ecf13c9cd4b
b642ac4 Fix two waiter-resolution gaps in the streamable HTTP client maxisbey Jul 7, 2026 https://github.com/modelcontextprotocol/python-sdk/pull/3047/commits/b642ac41897159f17f05e9ba3881e6ea1e51fe75
f6b5295 Shadow the per-module runner lease in the docs subscriptions tests maxisbey Jul 7, 2026 https://github.com/modelcontextprotocol/python-sdk/pull/3047/commits/f6b52951c1ae5da5fb90e8245ff0ff53a89961b3
07b5c9a Sever a superseded POST instead of guarding one resolution path maxisbey Jul 7, 2026 https://github.com/modelcontextprotocol/python-sdk/pull/3047/commits/07b5c9a3fe481fa364c8bf140fc7274b2c56c3e9
56e2a26 Split the client side of subscriptions onto its own page maxisbey Jul 7, 2026 https://github.com/modelcontextprotocol/python-sdk/pull/3047/commits/56e2a2627a129efde42c8fec46de3f5bd4636ba4
Clear filters https://github.com/modelcontextprotocol/python-sdk/pull/3047/files
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/3047/files
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/3047/files
caching.md https://github.com/modelcontextprotocol/python-sdk/pull/3047/files#diff-9535ea1f5a93371655a9877a360a805d074ca511efa54c1a351d5a9466fea92b
index.md https://github.com/modelcontextprotocol/python-sdk/pull/3047/files#diff-6db44fd0d4045289d873ac7b19b6478a375bb2131e7057a020076bcbd3d3cc1b
subscriptions.md https://github.com/modelcontextprotocol/python-sdk/pull/3047/files#diff-cf4fb602edf8b43efbcedd12a1f45ac757e569f7acc4e34150fc2940ec61803a
subscriptions.md https://github.com/modelcontextprotocol/python-sdk/pull/3047/files#diff-69985b34534dc028225c760688683c0b34c937cacea59d61840231fea3abb6ff
migration.md https://github.com/modelcontextprotocol/python-sdk/pull/3047/files#diff-758ba107a728fccfdf0d098b2c06ded59127dd53ea287d630f72fb51040bc72d
deploy.md https://github.com/modelcontextprotocol/python-sdk/pull/3047/files#diff-e3cd1ff8794fbfba68cb5ae71feec26e8499204134231a92257733653ec13e53
whats-new.md https://github.com/modelcontextprotocol/python-sdk/pull/3047/files#diff-9428ccc149911a1fdbacb719bfe6f6e4d0c4fbe84f4ce18d14cdb5cd82b9df45
tutorial001.py https://github.com/modelcontextprotocol/python-sdk/pull/3047/files#diff-28ca9abb9045e4236ef96ef8ab7c17e4bdcf6cc5f4cdfb9746cd1028184f0a2d
tutorial002.py https://github.com/modelcontextprotocol/python-sdk/pull/3047/files#diff-08d7f3f4e27eabce2540293fdc380dffb11b9f1ec2e2dbdc1258355bbaf87fa3
tutorial003.py https://github.com/modelcontextprotocol/python-sdk/pull/3047/files#diff-38cc4afaee8a6d43ae0a4396b5b8b8d1c283ae5b0c1fa2161ebaf4969d7d92ce
tutorial004_anyio.py https://github.com/modelcontextprotocol/python-sdk/pull/3047/files#diff-567eed110ba5d0eb950a8bad8e71dc52b7847e6ee2bb545946914d78100c01aa
tutorial004_asyncio.py https://github.com/modelcontextprotocol/python-sdk/pull/3047/files#diff-90cda269da9dfd6c8d32f087fd15de0c8e1794c58ec86a541076825c50564307
tutorial004_trio.py https://github.com/modelcontextprotocol/python-sdk/pull/3047/files#diff-e1367f372401d40181e1126ddfd530e0435ba1f8250d15de6f0327ea6d7c486a
tutorial005.py https://github.com/modelcontextprotocol/python-sdk/pull/3047/files#diff-0266b9df40f5ea047e5c39961329287c8b64bc14de60cd56a2cd843bad2d5d05
README.md https://github.com/modelcontextprotocol/python-sdk/pull/3047/files#diff-3dbb61607bf1e05aa516d1c924331a2950543be069616406b301898fa681095d
client.py https://github.com/modelcontextprotocol/python-sdk/pull/3047/files#diff-906257f53a49268d119dfc347acba52fc63e265ee89413f182817d737b3d96db
mkdocs.yml https://github.com/modelcontextprotocol/python-sdk/pull/3047/files#diff-98d0f806abc9af24e6a7c545d3d77e8f9ad57643e27211d7a7b896113e420ed2
client.py https://github.com/modelcontextprotocol/python-sdk/pull/3047/files#diff-34e945ebc2fea8a427b8d0c45ccd28eb4e4cceb33c82048bd7998e6bb2f754f3
session.py https://github.com/modelcontextprotocol/python-sdk/pull/3047/files#diff-634d1abcb8bda1a784f31e3431a10124e387f487dd243a54244515b4972aa0ee
streamable_http.py https://github.com/modelcontextprotocol/python-sdk/pull/3047/files#diff-e8c18a3067a9b157c5c39a947f53d395afeb00e7026dad2d5a279011da943b5e
subscriptions.py https://github.com/modelcontextprotocol/python-sdk/pull/3047/files#diff-18182dba9826ab704bb14a9bad9642f5596dff0472ebe2b6f796b470f9ed762e
context.py https://github.com/modelcontextprotocol/python-sdk/pull/3047/files#diff-b8a980ea2822cbd7a2f938f77b794ef9df6724acb5d637fdf87c0ad2bfe2db1a
subscriptions.py https://github.com/modelcontextprotocol/python-sdk/pull/3047/files#diff-2c8b94b6afb87bed285e993cbf4dd1d31e8090f69a4f58965ac595bfe48145b1
direct_dispatcher.py https://github.com/modelcontextprotocol/python-sdk/pull/3047/files#diff-6566b073a8d9286a5b17e0bb02d6e12e822eaedf2236c0d637dcd57992268076
dispatcher.py https://github.com/modelcontextprotocol/python-sdk/pull/3047/files#diff-13274512d72e2a34a599019a9226619b150fca24130936cee3dc7d5122934673
jsonrpc_dispatcher.py https://github.com/modelcontextprotocol/python-sdk/pull/3047/files#diff-3d8fb73fa8b126691302c15bb63bbc44a3a0e9338a17f14b3b4ea1d97bb10c2c
subscriptions.py https://github.com/modelcontextprotocol/python-sdk/pull/3047/files#diff-183aee4f8b79213fd586f27de3c8872fa0d1ca6c45415d035a28769b68772dbb
test_client.py https://github.com/modelcontextprotocol/python-sdk/pull/3047/files#diff-f91d7d1bfecb41d80a4cc73133b82560b7284a2af2d6630c49b983ca9366ea13
test_send_request_mcp_name.py https://github.com/modelcontextprotocol/python-sdk/pull/3047/files#diff-4b906f3ae5d18e52bc9a24ea5d544a20996ca325feb7d24d712c3007627e68ab
test_session.py https://github.com/modelcontextprotocol/python-sdk/pull/3047/files#diff-623490a9c2dd576cc59e89f8d51f64acfffdeaad940e0bd4a0a51a50bc30d92d
test_session_claims.py https://github.com/modelcontextprotocol/python-sdk/pull/3047/files#diff-78ff0bdf966bc131d9ebbed86926f6eae0f23955e23986d4751d74c909697092
test_streamable_http.py https://github.com/modelcontextprotocol/python-sdk/pull/3047/files#diff-09ecebf3cb1cb198a43bd3159ecf388a4dfdc38f93c9812b671f40fc2c83ec29
test_subscriptions.py https://github.com/modelcontextprotocol/python-sdk/pull/3047/files#diff-76d72b90a618b79e8d6d1b54b20755f26cf1cefea1131d3532c3917a0159ecb1
test_client.py https://github.com/modelcontextprotocol/python-sdk/pull/3047/files#diff-102fca0ee73076e951e46d27748f998b1136b0356adc57dcbd4505374f16996c
test_subscriptions.py https://github.com/modelcontextprotocol/python-sdk/pull/3047/files#diff-a7ff9eb2cb1b5f54cfe74004c58b0bed5e17c2779a5a5f815cfc5f0c575a4fc3
_requirements.py https://github.com/modelcontextprotocol/python-sdk/pull/3047/files#diff-c12ce54cbf13a11daa3f93343e5df8c89ca2b25d0f20f00b5408a2402a223228
test_resources.py https://github.com/modelcontextprotocol/python-sdk/pull/3047/files#diff-b72ae88a1de4fa5bbd3e571601e51bc56f008819d8a9438ad9c4fc7abae56ecd
test_subscriptions.py https://github.com/modelcontextprotocol/python-sdk/pull/3047/files#diff-4fbc8fb439c032a177be4e45db3daaedf78449f3c7e46ae5bf84afb110bf2428
test_subscriptions.py https://github.com/modelcontextprotocol/python-sdk/pull/3047/files#diff-b0720b1c794b1866505c01068f3eadbcacee079dafd0899195a34d5a3286bdaa
test_dispatcher.py https://github.com/modelcontextprotocol/python-sdk/pull/3047/files#diff-490cfcfdfdaf03f631a5cc632ec5a47dee6aa063d13518834a7a1f1bb8493f3f
docs/client/caching.mdhttps://github.com/modelcontextprotocol/python-sdk/pull/3047/files#diff-9535ea1f5a93371655a9877a360a805d074ca511efa54c1a351d5a9466fea92b
View file https://github.com/modelcontextprotocol/python-sdk/blob/56e2a2627a129efde42c8fec46de3f5bd4636ba4/docs/client/caching.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/modelcontextprotocol/python-sdk/pull/3047/{{ revealButtonHref }}
https://github.com/modelcontextprotocol/python-sdk/pull/3047/files#diff-9535ea1f5a93371655a9877a360a805d074ca511efa54c1a351d5a9466fea92b
https://github.com/modelcontextprotocol/python-sdk/pull/3047/files#diff-9535ea1f5a93371655a9877a360a805d074ca511efa54c1a351d5a9466fea92b
docs/client/index.mdhttps://github.com/modelcontextprotocol/python-sdk/pull/3047/files#diff-6db44fd0d4045289d873ac7b19b6478a375bb2131e7057a020076bcbd3d3cc1b
View file https://github.com/modelcontextprotocol/python-sdk/blob/56e2a2627a129efde42c8fec46de3f5bd4636ba4/docs/client/index.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/modelcontextprotocol/python-sdk/pull/3047/{{ revealButtonHref }}
https://github.com/modelcontextprotocol/python-sdk/pull/3047/files#diff-6db44fd0d4045289d873ac7b19b6478a375bb2131e7057a020076bcbd3d3cc1b
https://github.com/modelcontextprotocol/python-sdk/pull/3047/files#diff-6db44fd0d4045289d873ac7b19b6478a375bb2131e7057a020076bcbd3d3cc1b
docs/client/subscriptions.mdhttps://github.com/modelcontextprotocol/python-sdk/pull/3047/files#diff-cf4fb602edf8b43efbcedd12a1f45ac757e569f7acc4e34150fc2940ec61803a
View file https://github.com/modelcontextprotocol/python-sdk/blob/56e2a2627a129efde42c8fec46de3f5bd4636ba4/docs/client/subscriptions.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/modelcontextprotocol/python-sdk/pull/3047/{{ revealButtonHref }}
cubic-dev-aihttps://github.com/apps/cubic-dev-ai
Jul 7, 2026https://github.com/modelcontextprotocol/python-sdk/pull/3047/files#r3536677944
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/3047/files
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/3047/files
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/3047/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.