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: The official Python SDK for Model Context Protocol servers and clients - Deprecate roots, sampling, and logging methods per SEP-2577 by Kludex · Pull Request #2926 · modelcontextprotocol/python-sdk

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/_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:737fc08c-5092-29d6-1c4c-3da4bd8e86f5
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idD284:18E42A:DEF2A9:12AEDF6:6A594767
html-safe-nonce9768027af36ea3387a45db84fcde56b2cc7d83690ba93fa0c1265fc494de997c
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMjg0OjE4RTQyQTpERUYyQTk6MTJBRURGNjo2QTU5NDc2NyIsInZpc2l0b3JfaWQiOiI4Mjg5MDYyODcwNDU0OTc4NDA3IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac4b3dbbd6310cdbb506c58340151656d026739e246312fa6c5e9afeaea1e7b3e9
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///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/modelcontextprotocol/python-sdk/2926/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/3b82c6796e47a239be0721fb7020ea49217e6680b38e478cbfb23b89faa86a67/modelcontextprotocol/python-sdk/pull/2926
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/3b82c6796e47a239be0721fb7020ea49217e6680b38e478cbfb23b89faa86a67/modelcontextprotocol/python-sdk/pull/2926
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:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameKludex
hostnamegithub.com
expected-hostnamegithub.com
None9f801e05b35c85b2d72eae6534d2b1d4c02ba8732fd046450bab31e2f52450ce
turbo-cache-controlno-cache
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
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release49918fc503387d6d65b6bc6ce6f711c14d17bfbd
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/modelcontextprotocol/python-sdk/pull/2926#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmodelcontextprotocol%2Fpython-sdk%2Fpull%2F2926
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
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%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=modelcontextprotocol%2Fpython-sdk
Reloadhttps://github.com/modelcontextprotocol/python-sdk/pull/2926
Reloadhttps://github.com/modelcontextprotocol/python-sdk/pull/2926
Reloadhttps://github.com/modelcontextprotocol/python-sdk/pull/2926
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/2926
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 255 https://github.com/modelcontextprotocol/python-sdk/issues
Pull requests 301 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
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
Conversationhttps://github.com/modelcontextprotocol/python-sdk/pull/2926
Commits7 (7)https://github.com/modelcontextprotocol/python-sdk/pull/2926/commits
Checkshttps://github.com/modelcontextprotocol/python-sdk/pull/2926/checks
Files changedhttps://github.com/modelcontextprotocol/python-sdk/pull/2926/files
Deprecate roots, sampling, and logging methods per SEP-2577https://github.com/modelcontextprotocol/python-sdk/pull/2926#top
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
https://github.com/Kludex
Kludexhttps://github.com/Kludex
Jun 20, 2026https://github.com/modelcontextprotocol/python-sdk/pull/2926#issue-4707277011
SEP-2577https://github.com/modelcontextprotocol/modelcontextprotocol/pull/2577
#2805https://github.com/modelcontextprotocol/python-sdk/issues/2805
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/2926
https://github.com/Kludex
Deprecate roots, sampling, and logging methods per SEP-2577https://github.com/modelcontextprotocol/python-sdk/pull/2926/commits/86bd4f34088154056e2b240fb02368a47e4f111f
86bd4f3https://github.com/modelcontextprotocol/python-sdk/pull/2926/commits/86bd4f34088154056e2b240fb02368a47e4f111f
https://github.com/apps/claude
claudehttps://github.com/apps/claude
Jun 20, 2026 https://github.com/modelcontextprotocol/python-sdk/pull/2926#pullrequestreview-4538115330
View reviewed changes https://github.com/modelcontextprotocol/python-sdk/pull/2926/files/86bd4f34088154056e2b240fb02368a47e4f111f
claudehttps://github.com/apps/claude
https://github.com/modelcontextprotocol/python-sdk/pull/2926#pullrequestreview-4538115330
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/2926
Kludexhttps://github.com/Kludex
June 20, 2026 17:40https://github.com/modelcontextprotocol/python-sdk/pull/2926#commits-pushed-a5c1522
https://github.com/Kludex
Emit deprecation warnings as a visible MCPDeprecationWarninghttps://github.com/modelcontextprotocol/python-sdk/pull/2926/commits/a5c1522cac46a7e3a1d1c753e751a8395aa8768c
a5c1522https://github.com/modelcontextprotocol/python-sdk/pull/2926/commits/a5c1522cac46a7e3a1d1c753e751a8395aa8768c
https://github.com/Kludex
Deprecate only Context.log for logging, with a capability-level mes…https://github.com/modelcontextprotocol/python-sdk/pull/2926/commits/a465678c42d79a920692c46d99789540e1c3e60c
a465678https://github.com/modelcontextprotocol/python-sdk/pull/2926/commits/a465678c42d79a920692c46d99789540e1c3e60c
https://github.com/Kludex
Restructure list_roots deprecation test to cover its branches on 3.14https://github.com/modelcontextprotocol/python-sdk/pull/2926/commits/8cfdd44010e1ff1c888f52cb64b5f55dab8ff2ae
8cfdd44https://github.com/modelcontextprotocol/python-sdk/pull/2926/commits/8cfdd44010e1ff1c888f52cb64b5f55dab8ff2ae
https://github.com/apps/claude
claudehttps://github.com/apps/claude
Jun 20, 2026 https://github.com/modelcontextprotocol/python-sdk/pull/2926#pullrequestreview-4538152776
View reviewed changes https://github.com/modelcontextprotocol/python-sdk/pull/2926/files/a5c1522cac46a7e3a1d1c753e751a8395aa8768c
claudehttps://github.com/apps/claude
https://github.com/modelcontextprotocol/python-sdk/pull/2926#pullrequestreview-4538152776
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
#2https://github.com/modelcontextprotocol/python-sdk/issues/2
#3https://github.com/modelcontextprotocol/python-sdk/issues/3
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/2926
src/mcp/server/context.pyhttps://github.com/modelcontextprotocol/python-sdk/pull/2926/files/a5c1522cac46a7e3a1d1c753e751a8395aa8768c#diff-8e4a295d330079f8982fad5b62fa85a036a4714836389442df76880b5801e706
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/2926
https://github.com/apps/claude
claudehttps://github.com/apps/claude
Jun 20, 2026 https://github.com/modelcontextprotocol/python-sdk/pull/2926#pullrequestreview-4538201999
View reviewed changes https://github.com/modelcontextprotocol/python-sdk/pull/2926/files/8cfdd44010e1ff1c888f52cb64b5f55dab8ff2ae
README.v2.mdhttps://github.com/modelcontextprotocol/python-sdk/pull/2926/files/8cfdd44010e1ff1c888f52cb64b5f55dab8ff2ae#diff-08a4c6619676fe12972d812470e6bfada7b31d3d2fe6e2cf8cf8a88c79e78503
claudehttps://github.com/apps/claude
Jun 20, 2026https://github.com/modelcontextprotocol/python-sdk/pull/2926#discussion_r3446922567
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/2926
docs/migration.mdhttps://github.com/modelcontextprotocol/python-sdk/pull/2926/files/8cfdd44010e1ff1c888f52cb64b5f55dab8ff2ae#diff-758ba107a728fccfdf0d098b2c06ded59127dd53ea287d630f72fb51040bc72d
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/2926
src/mcp/client/client.pyhttps://github.com/modelcontextprotocol/python-sdk/pull/2926/files/8cfdd44010e1ff1c888f52cb64b5f55dab8ff2ae#diff-34e945ebc2fea8a427b8d0c45ccd28eb4e4cceb33c82048bd7998e6bb2f754f3
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/2926
Kludexhttps://github.com/Kludex
June 20, 2026 18:11https://github.com/modelcontextprotocol/python-sdk/pull/2926#commits-pushed-7ee2e0d
https://github.com/Kludex
Deprecate Connection.log for consistency with the logging capabilityhttps://github.com/modelcontextprotocol/python-sdk/pull/2926/commits/7ee2e0d362b650092ecc6b8f425e54e2f94cfbdd
7ee2e0dhttps://github.com/modelcontextprotocol/python-sdk/pull/2926/commits/7ee2e0d362b650092ecc6b8f425e54e2f94cfbdd
https://github.com/Kludex
List the lowlevel Context.log in the SEP-2577 deprecation notehttps://github.com/modelcontextprotocol/python-sdk/pull/2926/commits/24cb7b086e282b13f7cf07e2da547aae9d189f45
24cb7b0https://github.com/modelcontextprotocol/python-sdk/pull/2926/commits/24cb7b086e282b13f7cf07e2da547aae9d189f45
https://github.com/Kludex
Use capability-level deprecation messages for roots and samplinghttps://github.com/modelcontextprotocol/python-sdk/pull/2926/commits/b3041311d6c810bbf51cb0c5a4e76a49c3628576
b304131https://github.com/modelcontextprotocol/python-sdk/pull/2926/commits/b3041311d6c810bbf51cb0c5a4e76a49c3628576
https://github.com/maxisbey
maxisbeyhttps://github.com/maxisbey
Jun 20, 2026 https://github.com/modelcontextprotocol/python-sdk/pull/2926#pullrequestreview-4538254089
View reviewed changes https://github.com/modelcontextprotocol/python-sdk/pull/2926/files/b3041311d6c810bbf51cb0c5a4e76a49c3628576
https://github.com/Kludex
Kludexhttps://github.com/Kludex
4573e4ahttps://github.com/modelcontextprotocol/python-sdk/commit/4573e4ac335a82170ad523c397e9836c13e231d6
Jun 20, 2026https://github.com/modelcontextprotocol/python-sdk/pull/2926#event-26993864414
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/2926
https://github.com/Kludex
Kludexhttps://github.com/Kludex
June 20, 2026 16:25https://github.com/modelcontextprotocol/python-sdk/pull/2926#event-26993865096
maxisbeyhttps://github.com/maxisbey
Jun 20, 2026 https://github.com/modelcontextprotocol/python-sdk/pull/2926#ref-commit-732ebc4
https://github.com/maxisbey
Absorbhttps://github.com/modelcontextprotocol/python-sdk/commit/732ebc46bea1f6f949717483b39e53afa24ea9e8
#2926https://github.com/modelcontextprotocol/python-sdk/pull/2926
(SEP-2577 deprecations); fix client 4xx id-correlationhttps://github.com/modelcontextprotocol/python-sdk/commit/732ebc46bea1f6f949717483b39e53afa24ea9e8
732ebc4https://github.com/modelcontextprotocol/python-sdk/commit/732ebc46bea1f6f949717483b39e53afa24ea9e8
#2926https://github.com/modelcontextprotocol/python-sdk/pull/2926
bb9b134https://github.com/modelcontextprotocol/python-sdk/commit/bb9b134ef486f8b84b82b226bb5f804495d43a7c
maxisbeyhttps://github.com/maxisbey
Jun 20, 2026 https://github.com/modelcontextprotocol/python-sdk/pull/2926#ref-commit-764650e
https://github.com/maxisbey
Absorbhttps://github.com/modelcontextprotocol/python-sdk/commit/764650e62bdfd0cdda4b1282e24f1bf1fe7c266d
#2926https://github.com/modelcontextprotocol/python-sdk/pull/2926
(SEP-2577 deprecations); fix client 4xx id-correlationhttps://github.com/modelcontextprotocol/python-sdk/commit/764650e62bdfd0cdda4b1282e24f1bf1fe7c266d
764650ehttps://github.com/modelcontextprotocol/python-sdk/commit/764650e62bdfd0cdda4b1282e24f1bf1fe7c266d
#2926https://github.com/modelcontextprotocol/python-sdk/pull/2926
bb9b134https://github.com/modelcontextprotocol/python-sdk/commit/bb9b134ef486f8b84b82b226bb5f804495d43a7c
https://github.com/apps/github-actions
github-actionshttps://github.com/apps/github-actions
Jun 26, 2026https://github.com/modelcontextprotocol/python-sdk/pull/2926#issuecomment-4807960410
v2.0.0a3https://github.com/modelcontextprotocol/python-sdk/releases/tag/v2.0.0a3
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/2926
https://github.com/maxisbey
maxisbeyhttps://github.com/maxisbey
Jun 26, 2026 https://github.com/modelcontextprotocol/python-sdk/pull/2926#ref-issue-4682676997
Spec corrections & deprecation markers #2904 https://github.com/modelcontextprotocol/python-sdk/issues/2904
https://github.co/hiddenchars
https://github.com/modelcontextprotocol/python-sdk/pull/{{ revealButtonHref }}
Sign up for freehttps://github.com/join?source=comment-repo
Sign in to commenthttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmodelcontextprotocol%2Fpython-sdk%2Fpull%2F2926
https://github.com/apps/claude
claude[bot] https://github.com/apps/claude
https://github.com/modelcontextprotocol/python-sdk/pull/2926/files/8cfdd44010e1ff1c888f52cb64b5f55dab8ff2ae
https://github.com/maxisbey
maxisbey https://github.com/maxisbey
https://github.com/modelcontextprotocol/python-sdk/pull/2926/files/b3041311d6c810bbf51cb0c5a4e76a49c3628576
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/2926
https://github.com/Kludex
https://github.com/maxisbey
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.