René's URL Explorer Experiment


Title: Deprecate roots, sampling, and logging methods per SEP-2577 by Kludex · Pull Request #2926 · modelcontextprotocol/python-sdk · GitHub

Open Graph Title: Deprecate roots, sampling, and logging methods per SEP-2577 by Kludex · Pull Request #2926 · modelcontextprotocol/python-sdk

X Title: Deprecate roots, sampling, and logging methods per SEP-2577 by Kludex · Pull Request #2926 · modelcontextprotocol/python-sdk

Description: Implements SEP-2577 for the 2026-07-28 spec (tracked in #2805). Summary The deprecation is advisory only - no wire-level changes, capability negotiation is unchanged, and every method keeps working for sessions negotiating 2025-11-25 and earlier. This PR scopes the deprecation to the user-facing methods for Roots/Sampling/Logging, so users get a signal at their own call sites, without decorating every schema type and capability field (which would have required ~450 internal # pyright: ignore suppressions across the SDK that builds those types to serve older sessions). Methods marked with typing_extensions.deprecated: Sampling: ServerSession.create_message(), ClientPeer.sample() Roots: ServerSession.list_roots(), ClientPeer.list_roots(), ClientSession.send_roots_list_changed(), Client.send_roots_list_changed() Logging: ServerSession.send_log_message(), ClientSession.set_logging_level(), Client.set_logging_level(), and the MCPServer Context helpers log() / debug() / info() / warning() / error() Type checkers, IDEs, and the runtime now warn where these are called. Keeping the build green A scoped filterwarnings entry in pyproject.toml silences the advisory runtime DeprecationWarning, since the SDK calls these methods internally (e.g. ctx.debug -> log -> send_log_message). Internal/test/example call sites carry # pyright: ignore[reportDeprecated]. Added a pytest.warns test asserting the deprecation fires, and a migration-guide entry. Conformance SEP-2577 is advisory only with no observable wire behavior, so there is nothing for the conformance suite to assert. AI Disclaimer This PR was developed with the assistance of either Claude or Codex. I've reviewed and verified the changes.

Open Graph Description: Implements SEP-2577 for the 2026-07-28 spec (tracked in #2805). Summary The deprecation is advisory only - no wire-level changes, capability negotiation is unchanged, and every method keeps working...

X Description: Implements SEP-2577 for the 2026-07-28 spec (tracked in #2805). Summary The deprecation is advisory only - no wire-level changes, capability negotiation is unchanged, and every method keeps working...

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

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:ff0ae53a-0227-642e-2132-901d7647eb06
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idCA30:119CBA:941D8:D0A1D:6A5A3FE9
html-safe-nonce56ee0bee137aa6f423045b5f21466d590cb3f239e7b5cb1fcb93e066fac191af
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQTMwOjExOUNCQTo5NDFEODpEMEExRDo2QTVBM0ZFOSIsInZpc2l0b3JfaWQiOiI4OTcwNDM5NzIxMjM5MzQ2OTciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac78408c3cbae733819cdf95ea09e194ecdf0d564ae4d0ea96610c0b2f1628252c
hovercard-subject-tagpull_request:3904157053
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/2926/files
twitter:imagehttps://avatars.githubusercontent.com/u/7353520?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/7353520?s=400&v=4
og:image:altImplements SEP-2577 for the 2026-07-28 spec (tracked in #2805). Summary The deprecation is advisory only - no wire-level changes, capability negotiation is unchanged, and every method keeps working...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None19c67ad7579d2401ff06e88a32ef45460fbb40fab3191c7f7582d5e166f326fc
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
releasee618485bff22dab2ef1ffb4e34e4e6626688df69
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/modelcontextprotocol/python-sdk/pull/2926/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmodelcontextprotocol%2Fpython-sdk%2Fpull%2F2926%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%2F2926%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/2926/files
Reloadhttps://github.com/modelcontextprotocol/python-sdk/pull/2926/files
Reloadhttps://github.com/modelcontextprotocol/python-sdk/pull/2926/files
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/2926/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.6k https://github.com/login?return_to=%2Fmodelcontextprotocol%2Fpython-sdk
Code https://github.com/modelcontextprotocol/python-sdk
Issues 256 https://github.com/modelcontextprotocol/python-sdk/issues
Pull requests 303 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
Kludexhttps://github.com/Kludex
mainhttps://github.com/modelcontextprotocol/python-sdk/tree/main
deprecate-roots-sampling-logging-methodshttps://github.com/modelcontextprotocol/python-sdk/tree/deprecate-roots-sampling-logging-methods
Conversation 7 https://github.com/modelcontextprotocol/python-sdk/pull/2926
Commits 7 https://github.com/modelcontextprotocol/python-sdk/pull/2926/commits
Checks 31 https://github.com/modelcontextprotocol/python-sdk/pull/2926/checks
Files changed https://github.com/modelcontextprotocol/python-sdk/pull/2926/files
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/2926/files
Deprecate roots, sampling, and logging methods per SEP-2577 https://github.com/modelcontextprotocol/python-sdk/pull/2926/files#top
Show all changes 7 commits https://github.com/modelcontextprotocol/python-sdk/pull/2926/files
86bd4f3 Deprecate roots, sampling, and logging methods per SEP-2577 Kludex Jun 20, 2026 https://github.com/modelcontextprotocol/python-sdk/pull/2926/commits/86bd4f34088154056e2b240fb02368a47e4f111f
a5c1522 Emit deprecation warnings as a visible MCPDeprecationWarning Kludex Jun 20, 2026 https://github.com/modelcontextprotocol/python-sdk/pull/2926/commits/a5c1522cac46a7e3a1d1c753e751a8395aa8768c
a465678 Deprecate only `Context.log` for logging, with a capability-level mes… Kludex Jun 20, 2026 https://github.com/modelcontextprotocol/python-sdk/pull/2926/commits/a465678c42d79a920692c46d99789540e1c3e60c
8cfdd44 Restructure list_roots deprecation test to cover its branches on 3.14 Kludex Jun 20, 2026 https://github.com/modelcontextprotocol/python-sdk/pull/2926/commits/8cfdd44010e1ff1c888f52cb64b5f55dab8ff2ae
7ee2e0d Deprecate Connection.log for consistency with the logging capability Kludex Jun 20, 2026 https://github.com/modelcontextprotocol/python-sdk/pull/2926/commits/7ee2e0d362b650092ecc6b8f425e54e2f94cfbdd
24cb7b0 List the lowlevel Context.log in the SEP-2577 deprecation note Kludex Jun 20, 2026 https://github.com/modelcontextprotocol/python-sdk/pull/2926/commits/24cb7b086e282b13f7cf07e2da547aae9d189f45
b304131 Use capability-level deprecation messages for roots and sampling Kludex Jun 20, 2026 https://github.com/modelcontextprotocol/python-sdk/pull/2926/commits/b3041311d6c810bbf51cb0c5a4e76a49c3628576
Clear filters https://github.com/modelcontextprotocol/python-sdk/pull/2926/files
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/2926/files
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/2926/files
README.v2.md https://github.com/modelcontextprotocol/python-sdk/pull/2926/files#diff-08a4c6619676fe12972d812470e6bfada7b31d3d2fe6e2cf8cf8a88c79e78503
migration.md https://github.com/modelcontextprotocol/python-sdk/pull/2926/files#diff-758ba107a728fccfdf0d098b2c06ded59127dd53ea287d630f72fb51040bc72d
server.py https://github.com/modelcontextprotocol/python-sdk/pull/2926/files#diff-941c156700d335386d0fe33c0d46429e483b49dbcdc451f0e9b8cef9343cb056
server.py https://github.com/modelcontextprotocol/python-sdk/pull/2926/files#diff-cf9c7eb8c1e2d4f07777fb94e6a7ac7c6e6edbed04fc283789690b7e4ce99df4
server.py https://github.com/modelcontextprotocol/python-sdk/pull/2926/files#diff-6f8bfa77e7dd219d4340997e7e165170e698dd73e1a872ad790fafa4147d7f3b
server.py https://github.com/modelcontextprotocol/python-sdk/pull/2926/files#diff-1823a7d82b6ce367869806e4a6aa80834b6ec580b25d496d4db90b3b173a71b0
notifications.py https://github.com/modelcontextprotocol/python-sdk/pull/2926/files#diff-7b8a9d648eed9730b0b284fcba707b80c8ec2ea037916ab87c321f3da7241c2f
sampling.py https://github.com/modelcontextprotocol/python-sdk/pull/2926/files#diff-0ed01975ac1ead5aed841d4582928859cbd8b70ba8a1f1ac12923982be52f4e1
tool_progress.py https://github.com/modelcontextprotocol/python-sdk/pull/2926/files#diff-7cce40f3920cdfb5e8f829b6250bdc16ca7abb636e60615e834becbd63cd845b
pyproject.toml https://github.com/modelcontextprotocol/python-sdk/pull/2926/files#diff-50c86b7ed8ac2cf95bd48334961bf0530cdc77b5a56f852c5c61b89d735fd711
__init__.py https://github.com/modelcontextprotocol/python-sdk/pull/2926/files#diff-208c9cff9cd42bad47f1042db6861d931673ca78db6de12bd4d8f65885f8f126
client.py https://github.com/modelcontextprotocol/python-sdk/pull/2926/files#diff-34e945ebc2fea8a427b8d0c45ccd28eb4e4cceb33c82048bd7998e6bb2f754f3
session.py https://github.com/modelcontextprotocol/python-sdk/pull/2926/files#diff-634d1abcb8bda1a784f31e3431a10124e387f487dd243a54244515b4972aa0ee
connection.py https://github.com/modelcontextprotocol/python-sdk/pull/2926/files#diff-849ab2b2ff6c99a29f2b9dcdc9edc4139ffa7d091cdf45f05fbfc7cb998b03d1
context.py https://github.com/modelcontextprotocol/python-sdk/pull/2926/files#diff-8e4a295d330079f8982fad5b62fa85a036a4714836389442df76880b5801e706
context.py https://github.com/modelcontextprotocol/python-sdk/pull/2926/files#diff-b8a980ea2822cbd7a2f938f77b794ef9df6724acb5d637fdf87c0ad2bfe2db1a
session.py https://github.com/modelcontextprotocol/python-sdk/pull/2926/files#diff-9a603a2587011a188aa76ca19a32fcd343a253516325fbcfb4f7bfb6a814634c
exceptions.py https://github.com/modelcontextprotocol/python-sdk/pull/2926/files#diff-78c8edd9357c34d072f24eac006407d819a6743472714abaf9a3c915d9be9d8a
peer.py https://github.com/modelcontextprotocol/python-sdk/pull/2926/files#diff-7516fc8e5003b3509266f53789ae4f7873bf19b8ecda78e5ce81ecac9401bf74
test_client.py https://github.com/modelcontextprotocol/python-sdk/pull/2926/files#diff-f91d7d1bfecb41d80a4cc73133b82560b7284a2af2d6630c49b983ca9366ea13
test_list_roots_callback.py https://github.com/modelcontextprotocol/python-sdk/pull/2926/files#diff-90b39d804728390ef9eab471f7f9877b35f83c44d63b99a1ea9653f6d5e11ee9
test_logging_callback.py https://github.com/modelcontextprotocol/python-sdk/pull/2926/files#diff-e2c00711f742606cdec4058b3f6121def7c09f5d3e74d16e2a6ba26bba1c91f5
test_sampling_callback.py https://github.com/modelcontextprotocol/python-sdk/pull/2926/files#diff-2644de1d5107de80cb62cb010cb87b5858288fdd961806d4abdbc822f1d30540
test_session_concurrency.py https://github.com/modelcontextprotocol/python-sdk/pull/2926/files#diff-dcd16b274ced024cd0d253cd86a1a4c8042327b1b0f150227e73811bdc22c844
test_flows.py https://github.com/modelcontextprotocol/python-sdk/pull/2926/files#diff-c8703562e141bdb981bfa8f5a0e3dd92a9a881b7f60d5bde5c269e53e5f74331
test_logging.py https://github.com/modelcontextprotocol/python-sdk/pull/2926/files#diff-3192d40691eceb9afd35995b61b0eecab1ac2deab780167455817137665073dd
test_roots.py https://github.com/modelcontextprotocol/python-sdk/pull/2926/files#diff-4144b5ee9d2cd8d3ce9ca82fabcf7788b5c2bed02b835807f861f88a833abd9f
test_sampling.py https://github.com/modelcontextprotocol/python-sdk/pull/2926/files#diff-757030244444450a1c8f60bd70b1a2634aef9a4d37b46e362b86791c4def0428
test_wire.py https://github.com/modelcontextprotocol/python-sdk/pull/2926/files#diff-163576971f36a4e8babc1808a586ab93dc81945e27aad2f238bd5b77fa441ac5
test_context.py https://github.com/modelcontextprotocol/python-sdk/pull/2926/files#diff-b5f7f25d66f0bed98387a6b630791fe45686eca3ae623b16d89da8a4d01b471e
test_tools.py https://github.com/modelcontextprotocol/python-sdk/pull/2926/files#diff-599e5205a6a4a66559a3269a8bf513559691096890d5a84eaa977c46315cefd3
_stdio_server.py https://github.com/modelcontextprotocol/python-sdk/pull/2926/files#diff-5a1e6fc4a93d8fdccc3f13bb1528e2e2b0104ea702d0ad45b11e57d731fae3b7
test_flows.py https://github.com/modelcontextprotocol/python-sdk/pull/2926/files#diff-49574413d58082b5b0d094a266103f9e61f3dac0f7bf3bdfacd1b2ad5a07a4c7
test_hosting_http.py https://github.com/modelcontextprotocol/python-sdk/pull/2926/files#diff-25c736951e89c76e3f06e5f6b36924f2fecb911b5bd98e4c74bf8249e8480fac
test_hosting_resume.py https://github.com/modelcontextprotocol/python-sdk/pull/2926/files#diff-85f9daa9bed5aaa4f0692a68b218329bd1d04c2bc0d72d270799730e3e7dfa22
test_streamable_http.py https://github.com/modelcontextprotocol/python-sdk/pull/2926/files#diff-e1892a1b798bbf5427ad12171841966db1086dcbbbd3f6c12b4bcd76405530c7
test_server.py https://github.com/modelcontextprotocol/python-sdk/pull/2926/files#diff-c191383f010475fc22bf69d35f14f16d7e45098b05a1a0f03ad66d6c151d1f34
test_cancel_handling.py https://github.com/modelcontextprotocol/python-sdk/pull/2926/files#diff-c1f187f0c3cd17c4a86593f3fd13298817256f3be47c48065168959055ad0753
test_connection.py https://github.com/modelcontextprotocol/python-sdk/pull/2926/files#diff-c85f47c7fa25e0dccd832e8de25b14888b28b4c4d65ca623c7fbffa5ed112d68
test_server_context.py https://github.com/modelcontextprotocol/python-sdk/pull/2926/files#diff-4903326ba7c3c7efdab16734810bfeae0b485942b7155c82e6ca8df7a8d5d11a
test_session.py https://github.com/modelcontextprotocol/python-sdk/pull/2926/files#diff-ed22c8fef52dc8c1d840dc0825bc375c48b67dcc2b468bab084aded3af06fdcf
test_stateless_mode.py https://github.com/modelcontextprotocol/python-sdk/pull/2926/files#diff-9a5f67580e8993a1074a9b3a4ce460932af7f64bfac3c0ed94b56c842ef99101
test_peer.py https://github.com/modelcontextprotocol/python-sdk/pull/2926/files#diff-4a0f459cebe082a1548305dfc7e0392930c36ef29665ca62e9ba87051931d22b
test_streamable_http.py https://github.com/modelcontextprotocol/python-sdk/pull/2926/files#diff-57d1f3c64af36960aa61b1d77387fb6201b90fbc2f3d606bf2761315ce618cc5
README.v2.mdhttps://github.com/modelcontextprotocol/python-sdk/pull/2926/files#diff-08a4c6619676fe12972d812470e6bfada7b31d3d2fe6e2cf8cf8a88c79e78503
View file https://github.com/modelcontextprotocol/python-sdk/blob/b3041311d6c810bbf51cb0c5a4e76a49c3628576/README.v2.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/modelcontextprotocol/python-sdk/pull/2926/{{ revealButtonHref }}
https://github.com/modelcontextprotocol/python-sdk/pull/2926/files#diff-08a4c6619676fe12972d812470e6bfada7b31d3d2fe6e2cf8cf8a88c79e78503
https://github.com/modelcontextprotocol/python-sdk/pull/2926/files#diff-08a4c6619676fe12972d812470e6bfada7b31d3d2fe6e2cf8cf8a88c79e78503
https://github.com/modelcontextprotocol/python-sdk/pull/2926/files#diff-08a4c6619676fe12972d812470e6bfada7b31d3d2fe6e2cf8cf8a88c79e78503
https://github.com/modelcontextprotocol/python-sdk/pull/2926/files#diff-08a4c6619676fe12972d812470e6bfada7b31d3d2fe6e2cf8cf8a88c79e78503
https://github.com/modelcontextprotocol/python-sdk/pull/2926/files#diff-08a4c6619676fe12972d812470e6bfada7b31d3d2fe6e2cf8cf8a88c79e78503
https://github.com/modelcontextprotocol/python-sdk/pull/2926/files#diff-08a4c6619676fe12972d812470e6bfada7b31d3d2fe6e2cf8cf8a88c79e78503
https://github.com/modelcontextprotocol/python-sdk/pull/2926/files#diff-08a4c6619676fe12972d812470e6bfada7b31d3d2fe6e2cf8cf8a88c79e78503
claudehttps://github.com/apps/claude
Jun 20, 2026https://github.com/modelcontextprotocol/python-sdk/pull/2926/files#r3446922567
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/2926/files
https://github.com/modelcontextprotocol/python-sdk/pull/2926/files#diff-08a4c6619676fe12972d812470e6bfada7b31d3d2fe6e2cf8cf8a88c79e78503
https://github.com/modelcontextprotocol/python-sdk/pull/2926/files#diff-08a4c6619676fe12972d812470e6bfada7b31d3d2fe6e2cf8cf8a88c79e78503
https://github.com/modelcontextprotocol/python-sdk/pull/2926/files#diff-08a4c6619676fe12972d812470e6bfada7b31d3d2fe6e2cf8cf8a88c79e78503
docs/migration.mdhttps://github.com/modelcontextprotocol/python-sdk/pull/2926/files#diff-758ba107a728fccfdf0d098b2c06ded59127dd53ea287d630f72fb51040bc72d
View file https://github.com/modelcontextprotocol/python-sdk/blob/b3041311d6c810bbf51cb0c5a4e76a49c3628576/docs/migration.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/modelcontextprotocol/python-sdk/pull/2926/{{ revealButtonHref }}
https://github.com/modelcontextprotocol/python-sdk/pull/2926/files#diff-758ba107a728fccfdf0d098b2c06ded59127dd53ea287d630f72fb51040bc72d
https://github.com/modelcontextprotocol/python-sdk/pull/2926/files#diff-758ba107a728fccfdf0d098b2c06ded59127dd53ea287d630f72fb51040bc72d
examples/servers/everything-server/mcp_everything_server/server.pyhttps://github.com/modelcontextprotocol/python-sdk/pull/2926/files#diff-941c156700d335386d0fe33c0d46429e483b49dbcdc451f0e9b8cef9343cb056
View file https://github.com/modelcontextprotocol/python-sdk/blob/b3041311d6c810bbf51cb0c5a4e76a49c3628576/examples/servers/everything-server/mcp_everything_server/server.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/modelcontextprotocol/python-sdk/pull/2926/{{ revealButtonHref }}
https://github.com/modelcontextprotocol/python-sdk/pull/2926/files#diff-941c156700d335386d0fe33c0d46429e483b49dbcdc451f0e9b8cef9343cb056
https://github.com/modelcontextprotocol/python-sdk/pull/2926/files#diff-941c156700d335386d0fe33c0d46429e483b49dbcdc451f0e9b8cef9343cb056
https://github.com/modelcontextprotocol/python-sdk/pull/2926/files#diff-941c156700d335386d0fe33c0d46429e483b49dbcdc451f0e9b8cef9343cb056
https://github.com/modelcontextprotocol/python-sdk/pull/2926/files#diff-941c156700d335386d0fe33c0d46429e483b49dbcdc451f0e9b8cef9343cb056
https://github.com/modelcontextprotocol/python-sdk/pull/2926/files#diff-941c156700d335386d0fe33c0d46429e483b49dbcdc451f0e9b8cef9343cb056
...les/servers/simple-streamablehttp-stateless/mcp_simple_streamablehttp_stateless/server.pyhttps://github.com/modelcontextprotocol/python-sdk/pull/2926/files#diff-cf9c7eb8c1e2d4f07777fb94e6a7ac7c6e6edbed04fc283789690b7e4ce99df4
View file https://github.com/modelcontextprotocol/python-sdk/blob/b3041311d6c810bbf51cb0c5a4e76a49c3628576/examples/servers/simple-streamablehttp-stateless/mcp_simple_streamablehttp_stateless/server.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/modelcontextprotocol/python-sdk/pull/2926/{{ revealButtonHref }}
https://github.com/modelcontextprotocol/python-sdk/pull/2926/files#diff-cf9c7eb8c1e2d4f07777fb94e6a7ac7c6e6edbed04fc283789690b7e4ce99df4
https://github.com/modelcontextprotocol/python-sdk/pull/2926/files#diff-cf9c7eb8c1e2d4f07777fb94e6a7ac7c6e6edbed04fc283789690b7e4ce99df4
examples/servers/simple-streamablehttp/mcp_simple_streamablehttp/server.pyhttps://github.com/modelcontextprotocol/python-sdk/pull/2926/files#diff-6f8bfa77e7dd219d4340997e7e165170e698dd73e1a872ad790fafa4147d7f3b
View file https://github.com/modelcontextprotocol/python-sdk/blob/b3041311d6c810bbf51cb0c5a4e76a49c3628576/examples/servers/simple-streamablehttp/mcp_simple_streamablehttp/server.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/modelcontextprotocol/python-sdk/pull/2926/{{ revealButtonHref }}
https://github.com/modelcontextprotocol/python-sdk/pull/2926/files#diff-6f8bfa77e7dd219d4340997e7e165170e698dd73e1a872ad790fafa4147d7f3b
https://github.com/modelcontextprotocol/python-sdk/pull/2926/files#diff-6f8bfa77e7dd219d4340997e7e165170e698dd73e1a872ad790fafa4147d7f3b
examples/servers/sse-polling-demo/mcp_sse_polling_demo/server.pyhttps://github.com/modelcontextprotocol/python-sdk/pull/2926/files#diff-1823a7d82b6ce367869806e4a6aa80834b6ec580b25d496d4db90b3b173a71b0
View file https://github.com/modelcontextprotocol/python-sdk/blob/b3041311d6c810bbf51cb0c5a4e76a49c3628576/examples/servers/sse-polling-demo/mcp_sse_polling_demo/server.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/modelcontextprotocol/python-sdk/pull/2926/{{ revealButtonHref }}
https://github.com/modelcontextprotocol/python-sdk/pull/2926/files#diff-1823a7d82b6ce367869806e4a6aa80834b6ec580b25d496d4db90b3b173a71b0
https://github.com/modelcontextprotocol/python-sdk/pull/2926/files#diff-1823a7d82b6ce367869806e4a6aa80834b6ec580b25d496d4db90b3b173a71b0
https://github.com/modelcontextprotocol/python-sdk/pull/2926/files#diff-1823a7d82b6ce367869806e4a6aa80834b6ec580b25d496d4db90b3b173a71b0
https://github.com/modelcontextprotocol/python-sdk/pull/2926/files#diff-1823a7d82b6ce367869806e4a6aa80834b6ec580b25d496d4db90b3b173a71b0
examples/snippets/servers/notifications.pyhttps://github.com/modelcontextprotocol/python-sdk/pull/2926/files#diff-7b8a9d648eed9730b0b284fcba707b80c8ec2ea037916ab87c321f3da7241c2f
View file https://github.com/modelcontextprotocol/python-sdk/blob/b3041311d6c810bbf51cb0c5a4e76a49c3628576/examples/snippets/servers/notifications.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/modelcontextprotocol/python-sdk/pull/2926/{{ revealButtonHref }}
https://github.com/modelcontextprotocol/python-sdk/pull/2926/files#diff-7b8a9d648eed9730b0b284fcba707b80c8ec2ea037916ab87c321f3da7241c2f
https://github.com/modelcontextprotocol/python-sdk/pull/2926/files#diff-7b8a9d648eed9730b0b284fcba707b80c8ec2ea037916ab87c321f3da7241c2f
examples/snippets/servers/sampling.pyhttps://github.com/modelcontextprotocol/python-sdk/pull/2926/files#diff-0ed01975ac1ead5aed841d4582928859cbd8b70ba8a1f1ac12923982be52f4e1
View file https://github.com/modelcontextprotocol/python-sdk/blob/b3041311d6c810bbf51cb0c5a4e76a49c3628576/examples/snippets/servers/sampling.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/modelcontextprotocol/python-sdk/pull/2926/{{ revealButtonHref }}
https://github.com/modelcontextprotocol/python-sdk/pull/2926/files#diff-0ed01975ac1ead5aed841d4582928859cbd8b70ba8a1f1ac12923982be52f4e1
https://github.com/modelcontextprotocol/python-sdk/pull/2926/files#diff-0ed01975ac1ead5aed841d4582928859cbd8b70ba8a1f1ac12923982be52f4e1
examples/snippets/servers/tool_progress.pyhttps://github.com/modelcontextprotocol/python-sdk/pull/2926/files#diff-7cce40f3920cdfb5e8f829b6250bdc16ca7abb636e60615e834becbd63cd845b
View file https://github.com/modelcontextprotocol/python-sdk/blob/b3041311d6c810bbf51cb0c5a4e76a49c3628576/examples/snippets/servers/tool_progress.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/modelcontextprotocol/python-sdk/pull/2926/{{ revealButtonHref }}
https://github.com/modelcontextprotocol/python-sdk/pull/2926/files#diff-7cce40f3920cdfb5e8f829b6250bdc16ca7abb636e60615e834becbd63cd845b
https://github.com/modelcontextprotocol/python-sdk/pull/2926/files#diff-7cce40f3920cdfb5e8f829b6250bdc16ca7abb636e60615e834becbd63cd845b
pyproject.tomlhttps://github.com/modelcontextprotocol/python-sdk/pull/2926/files#diff-50c86b7ed8ac2cf95bd48334961bf0530cdc77b5a56f852c5c61b89d735fd711
View file https://github.com/modelcontextprotocol/python-sdk/blob/b3041311d6c810bbf51cb0c5a4e76a49c3628576/pyproject.toml
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/modelcontextprotocol/python-sdk/pull/2926/{{ revealButtonHref }}
https://github.com/modelcontextprotocol/python-sdk/pull/2926/files#diff-50c86b7ed8ac2cf95bd48334961bf0530cdc77b5a56f852c5c61b89d735fd711
https://github.com/modelcontextprotocol/python-sdk/pull/2926/files#diff-50c86b7ed8ac2cf95bd48334961bf0530cdc77b5a56f852c5c61b89d735fd711
src/mcp/__init__.pyhttps://github.com/modelcontextprotocol/python-sdk/pull/2926/files#diff-208c9cff9cd42bad47f1042db6861d931673ca78db6de12bd4d8f65885f8f126
View file https://github.com/modelcontextprotocol/python-sdk/blob/b3041311d6c810bbf51cb0c5a4e76a49c3628576/src/mcp/__init__.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/modelcontextprotocol/python-sdk/pull/2926/{{ revealButtonHref }}
https://github.com/modelcontextprotocol/python-sdk/pull/2926/files#diff-208c9cff9cd42bad47f1042db6861d931673ca78db6de12bd4d8f65885f8f126
https://github.com/modelcontextprotocol/python-sdk/pull/2926/files#diff-208c9cff9cd42bad47f1042db6861d931673ca78db6de12bd4d8f65885f8f126
https://github.com/modelcontextprotocol/python-sdk/pull/2926/files#diff-208c9cff9cd42bad47f1042db6861d931673ca78db6de12bd4d8f65885f8f126
https://github.com/modelcontextprotocol/python-sdk/pull/2926/files#diff-208c9cff9cd42bad47f1042db6861d931673ca78db6de12bd4d8f65885f8f126
src/mcp/client/client.pyhttps://github.com/modelcontextprotocol/python-sdk/pull/2926/files#diff-34e945ebc2fea8a427b8d0c45ccd28eb4e4cceb33c82048bd7998e6bb2f754f3
View file https://github.com/modelcontextprotocol/python-sdk/blob/b3041311d6c810bbf51cb0c5a4e76a49c3628576/src/mcp/client/client.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/modelcontextprotocol/python-sdk/pull/2926/{{ revealButtonHref }}
https://github.com/modelcontextprotocol/python-sdk/pull/2926/files#diff-34e945ebc2fea8a427b8d0c45ccd28eb4e4cceb33c82048bd7998e6bb2f754f3
https://github.com/modelcontextprotocol/python-sdk/pull/2926/files#diff-34e945ebc2fea8a427b8d0c45ccd28eb4e4cceb33c82048bd7998e6bb2f754f3
https://github.com/modelcontextprotocol/python-sdk/pull/2926/files#diff-34e945ebc2fea8a427b8d0c45ccd28eb4e4cceb33c82048bd7998e6bb2f754f3
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/2926/files
https://github.com/modelcontextprotocol/python-sdk/pull/2926/files#diff-34e945ebc2fea8a427b8d0c45ccd28eb4e4cceb33c82048bd7998e6bb2f754f3
https://github.com/modelcontextprotocol/python-sdk/pull/2926/files#diff-34e945ebc2fea8a427b8d0c45ccd28eb4e4cceb33c82048bd7998e6bb2f754f3
src/mcp/client/session.pyhttps://github.com/modelcontextprotocol/python-sdk/pull/2926/files#diff-634d1abcb8bda1a784f31e3431a10124e387f487dd243a54244515b4972aa0ee
View file https://github.com/modelcontextprotocol/python-sdk/blob/b3041311d6c810bbf51cb0c5a4e76a49c3628576/src/mcp/client/session.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/modelcontextprotocol/python-sdk/pull/2926/{{ revealButtonHref }}
https://github.com/modelcontextprotocol/python-sdk/pull/2926/files#diff-634d1abcb8bda1a784f31e3431a10124e387f487dd243a54244515b4972aa0ee
https://github.com/modelcontextprotocol/python-sdk/pull/2926/files#diff-634d1abcb8bda1a784f31e3431a10124e387f487dd243a54244515b4972aa0ee
https://github.com/modelcontextprotocol/python-sdk/pull/2926/files#diff-634d1abcb8bda1a784f31e3431a10124e387f487dd243a54244515b4972aa0ee
https://github.com/modelcontextprotocol/python-sdk/pull/2926/files#diff-634d1abcb8bda1a784f31e3431a10124e387f487dd243a54244515b4972aa0ee
https://github.com/modelcontextprotocol/python-sdk/pull/2926/files#diff-634d1abcb8bda1a784f31e3431a10124e387f487dd243a54244515b4972aa0ee
https://github.com/modelcontextprotocol/python-sdk/pull/2926/files#diff-634d1abcb8bda1a784f31e3431a10124e387f487dd243a54244515b4972aa0ee
src/mcp/server/connection.pyhttps://github.com/modelcontextprotocol/python-sdk/pull/2926/files#diff-849ab2b2ff6c99a29f2b9dcdc9edc4139ffa7d091cdf45f05fbfc7cb998b03d1
View file https://github.com/modelcontextprotocol/python-sdk/blob/b3041311d6c810bbf51cb0c5a4e76a49c3628576/src/mcp/server/connection.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/modelcontextprotocol/python-sdk/pull/2926/{{ revealButtonHref }}
https://github.com/modelcontextprotocol/python-sdk/pull/2926/files#diff-849ab2b2ff6c99a29f2b9dcdc9edc4139ffa7d091cdf45f05fbfc7cb998b03d1
https://github.com/modelcontextprotocol/python-sdk/pull/2926/files#diff-849ab2b2ff6c99a29f2b9dcdc9edc4139ffa7d091cdf45f05fbfc7cb998b03d1
https://github.com/modelcontextprotocol/python-sdk/pull/2926/files#diff-849ab2b2ff6c99a29f2b9dcdc9edc4139ffa7d091cdf45f05fbfc7cb998b03d1
https://github.com/modelcontextprotocol/python-sdk/pull/2926/files#diff-849ab2b2ff6c99a29f2b9dcdc9edc4139ffa7d091cdf45f05fbfc7cb998b03d1
src/mcp/server/context.pyhttps://github.com/modelcontextprotocol/python-sdk/pull/2926/files#diff-8e4a295d330079f8982fad5b62fa85a036a4714836389442df76880b5801e706
View file https://github.com/modelcontextprotocol/python-sdk/blob/b3041311d6c810bbf51cb0c5a4e76a49c3628576/src/mcp/server/context.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/modelcontextprotocol/python-sdk/pull/2926/{{ revealButtonHref }}
https://github.com/modelcontextprotocol/python-sdk/pull/2926/files#diff-8e4a295d330079f8982fad5b62fa85a036a4714836389442df76880b5801e706
https://github.com/modelcontextprotocol/python-sdk/pull/2926/files#diff-8e4a295d330079f8982fad5b62fa85a036a4714836389442df76880b5801e706
https://github.com/modelcontextprotocol/python-sdk/pull/2926/files#diff-8e4a295d330079f8982fad5b62fa85a036a4714836389442df76880b5801e706
https://github.com/modelcontextprotocol/python-sdk/pull/2926/files#diff-8e4a295d330079f8982fad5b62fa85a036a4714836389442df76880b5801e706
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/2926/files
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/2926/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.