René's URL Explorer Experiment


Title: Expose the middleware chain on MCPServer and stop sending unrequested change notifications by maxisbey · Pull Request #3201 · modelcontextprotocol/python-sdk · GitHub

Open Graph Title: Expose the middleware chain on MCPServer and stop sending unrequested change notifications by maxisbey · Pull Request #3201 · modelcontextprotocol/python-sdk

X Title: Expose the middleware chain on MCPServer and stop sending unrequested change notifications by maxisbey · Pull Request #3201 · modelcontextprotocol/python-sdk

Description: The official Python SDK for Model Context Protocol servers and clients - Expose the middleware chain on MCPServer and stop sending unrequested change notifications by maxisbey · Pull Request #3201 · modelcontextprotocol/python-sdk

Open Graph Description: Two related changes on the 2026-07-28 subscriptions/listen server path. Supersedes #3197 (a subscriptions-specific authorization hook), taking the smaller route of reusing the existing middleware s...

X Description: Two related changes on the 2026-07-28 subscriptions/listen server path. Supersedes #3197 (a subscriptions-specific authorization hook), taking the smaller route of reusing the existing middleware s...

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

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.114.4

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
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:344ba9c7-c909-1b57-58c2-e7d56c1eb519
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id8834:E2A80:4B3A33:69B668:6B05BBAF
html-safe-nonce5e66882d06e689a9174158b8378b1eccb5ca3854a00a216cebc24297592e801e
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4ODM0OkUyQTgwOjRCM0EzMzo2OUI2Njg6NkIwNUJCQUYiLCJ2aXNpdG9yX2lkIjoiMjI3MjQ2Njc3MjkwNzM3NTUzNSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac3a5e51e4899416ee32633de9bb22b77473db49be6e599d575e26a73c14a1d0ce
hovercard-subject-tagpull_request:4150358998
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/3201/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/86ab5cdde333b91858772465d2dc06ec5e84f239cf84442b9b72906600201992/modelcontextprotocol/python-sdk/pull/3201
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/86ab5cdde333b91858772465d2dc06ec5e84f239cf84442b9b72906600201992/modelcontextprotocol/python-sdk/pull/3201
og:image:altTwo related changes on the 2026-07-28 subscriptions/listen server path. Supersedes #3197 (a subscriptions-specific authorization hook), taking the smaller route of reusing the existing middleware s...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamemaxisbey
hostnamegithub.com
expected-hostnamegithub.com
None708c2f10d746dbcf1dd80dc8309daa7d595df3fce8066244380fc3238618f09c
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
release2a29e3cf4fb57e81fd311774f91f345cc4436f40
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-namepull-requests

Links:

Skip to contenthttps://github.com/modelcontextprotocol/python-sdk/pull/3201/middleware.md#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmodelcontextprotocol%2Fpython-sdk%2Fpull%2F3201
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
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
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://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
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmodelcontextprotocol%2Fpython-sdk%2Fpull%2F3201
Sign uphttps://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/3201/middleware.md
Reloadhttps://github.com/modelcontextprotocol/python-sdk/pull/3201/middleware.md
Reloadhttps://github.com/modelcontextprotocol/python-sdk/pull/3201/middleware.md
modelcontextprotocolhttps://github.com/modelcontextprotocol
python-sdkhttps://github.com/modelcontextprotocol/python-sdk
Codehttps://github.com/modelcontextprotocol/python-sdk
Issues320 (320)https://github.com/modelcontextprotocol/python-sdk/issues
Pull requests112 (112)https://github.com/modelcontextprotocol/python-sdk/pulls
Actionshttps://github.com/modelcontextprotocol/python-sdk/actions
Projectshttps://github.com/modelcontextprotocol/python-sdk/projects
Security and quality12 (12)https://github.com/modelcontextprotocol/python-sdk/security
Insightshttps://github.com/modelcontextprotocol/python-sdk/insights
https://github.com/modelcontextprotocol/python-sdk
maxisbeyhttps://github.com/maxisbey
mainhttps://github.com/modelcontextprotocol/python-sdk/tree/main
subscriptions-listen-authzhttps://github.com/modelcontextprotocol/python-sdk/tree/subscriptions-listen-authz
Conversationhttps://github.com/modelcontextprotocol/python-sdk/pull/3201
Commits1 (1)https://github.com/modelcontextprotocol/python-sdk/pull/3201/commits
Checkshttps://github.com/modelcontextprotocol/python-sdk/pull/3201/checks
Files changedhttps://github.com/modelcontextprotocol/python-sdk/pull/3201/files
Expose the middleware chain on MCPServer and stop sending unrequested change notificationshttps://github.com/modelcontextprotocol/python-sdk/pull/3201/middleware.md#top
maxisbeyhttps://github.com/maxisbey
mainhttps://github.com/modelcontextprotocol/python-sdk/tree/main
subscriptions-listen-authzhttps://github.com/modelcontextprotocol/python-sdk/tree/subscriptions-listen-authz
https://github.com/maxisbey
maxisbeyhttps://github.com/maxisbey
Jul 28, 2026https://github.com/modelcontextprotocol/python-sdk/pull/3201/middleware.md#issue-4997390625
#3197https://github.com/modelcontextprotocol/python-sdk/pull/3197
MCP Documentationhttps://modelcontextprotocol.io
AI Disclaimerhttps://gist.github.com/maxisbey/6123d132484e4c533eab519a2800693d
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/3201/middleware.md
https://github.com/apps/github-actions
github-actionshttps://github.com/apps/github-actions
Jul 28, 2026https://github.com/modelcontextprotocol/python-sdk/pull/3201/middleware.md#issuecomment-5102802497
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/3201/middleware.md
https://pr-3201.mcp-python-docs.pages.devhttps://pr-3201.mcp-python-docs.pages.dev
https://8c03cc9e.mcp-python-docs.pages.devhttps://8c03cc9e.mcp-python-docs.pages.dev
@maxisbeyhttps://github.com/maxisbey
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/3201/middleware.md
https://github.com/maxisbey
maxisbeyhttps://github.com/maxisbey
Jul 28, 2026 https://github.com/modelcontextprotocol/python-sdk/pull/3201/middleware.md#ref-pullrequest-4993180497
Add a subscription authorization hook and stop sending unrequested change notifications #3197 https://github.com/modelcontextprotocol/python-sdk/pull/3197
https://github.com/apps/cubic-dev-ai
cubic-dev-aihttps://github.com/apps/cubic-dev-ai
Jul 28, 2026 https://github.com/modelcontextprotocol/python-sdk/pull/3201/middleware.md#pullrequestreview-4796271261
View reviewed changes https://github.com/modelcontextprotocol/python-sdk/pull/3201/files
cubic-dev-aihttps://github.com/apps/cubic-dev-ai
https://github.com/modelcontextprotocol/python-sdk/pull/3201/middleware.md#pullrequestreview-4796271261
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Re-trigger cubichttps://www.cubic.dev/action/re-review/pr/modelcontextprotocol/python-sdk/3201/ai_pr_review_1785233453881_2917788f-7ec4-4153-96db-d83566595b8b?returnTo=https%3A%2F%2Fgithub.com%2Fmodelcontextprotocol%2Fpython-sdk%2Fpull%2F3201
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/3201/middleware.md
docs/migration.mdhttps://github.com/modelcontextprotocol/python-sdk/pull/3201/files#diff-758ba107a728fccfdf0d098b2c06ded59127dd53ea287d630f72fb51040bc72d
cubic-dev-aihttps://github.com/apps/cubic-dev-ai
Jul 28, 2026https://github.com/modelcontextprotocol/python-sdk/pull/3201/middleware.md#discussion_r3664738917
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/3201/middleware.md
https://github.com/apps/claude
claudehttps://github.com/apps/claude
Jul 28, 2026 https://github.com/modelcontextprotocol/python-sdk/pull/3201/middleware.md#pullrequestreview-4796392943
View reviewed changes https://github.com/modelcontextprotocol/python-sdk/pull/3201/files
claudehttps://github.com/apps/claude
https://github.com/modelcontextprotocol/python-sdk/pull/3201/middleware.md#pullrequestreview-4796392943
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/3201/middleware.md
docs/client/subscriptions.mdhttps://github.com/modelcontextprotocol/python-sdk/pull/3201/files#diff-cf4fb602edf8b43efbcedd12a1f45ac757e569f7acc4e34150fc2940ec61803a
claudehttps://github.com/apps/claude
Jul 28, 2026https://github.com/modelcontextprotocol/python-sdk/pull/3201/middleware.md#discussion_r3664836367
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Subscriptionshttps://github.com/modelcontextprotocol/python-sdk/pull/handlers/subscriptions.md
Subscriptionshttps://github.com/modelcontextprotocol/python-sdk/pull/handlers/subscriptions.md
Subscriptionshttps://github.com/modelcontextprotocol/python-sdk/pull/handlers/subscriptions.md
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/3201/middleware.md
docs/advanced/middleware.mdhttps://github.com/modelcontextprotocol/python-sdk/pull/3201/files#diff-d487d26dc9137511088441a2870b257f3672f6cfc7a9a55b82a52f17b7defbbc
claudehttps://github.com/apps/claude
Jul 28, 2026https://github.com/modelcontextprotocol/python-sdk/pull/3201/middleware.md#discussion_r3664836377
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Paginationhttps://github.com/modelcontextprotocol/python-sdk/pull/3201/pagination.md
Middlewarehttps://github.com/modelcontextprotocol/python-sdk/pull/3201/middleware.md
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/3201/middleware.md
docs_src/subscriptions/tutorial006.pyhttps://github.com/modelcontextprotocol/python-sdk/pull/3201/files#diff-80863253ce80fc4aa1e4fa9b56a2b90176a7d483828c0c2f8d06b87fb6016a3e
claudehttps://github.com/apps/claude
Jul 28, 2026https://github.com/modelcontextprotocol/python-sdk/pull/3201/middleware.md#discussion_r3664836392
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/3201/middleware.md
https://github.com/maxisbey
Expose the middleware chain on MCPServer and stop sending unrequested…https://github.com/modelcontextprotocol/python-sdk/pull/3201/commits/b920a3981ac51ed66c753f9b13c47a4b818d4241
b920a39https://github.com/modelcontextprotocol/python-sdk/pull/3201/commits/b920a3981ac51ed66c753f9b13c47a4b818d4241
https://github.com/maxisbey
maxisbeyhttps://github.com/maxisbey
force-pushedhttps://github.com/modelcontextprotocol/python-sdk/compare/869efd1a391255ba542864e46e07563bdfbd1627..b920a3981ac51ed66c753f9b13c47a4b818d4241
869efd1https://github.com/modelcontextprotocol/python-sdk/commit/869efd1a391255ba542864e46e07563bdfbd1627
b920a39https://github.com/modelcontextprotocol/python-sdk/commit/b920a3981ac51ed66c753f9b13c47a4b818d4241
Compare https://github.com/modelcontextprotocol/python-sdk/compare/869efd1a391255ba542864e46e07563bdfbd1627..b920a3981ac51ed66c753f9b13c47a4b818d4241
July 28, 2026 11:21https://github.com/modelcontextprotocol/python-sdk/pull/3201/middleware.md#event-28594364119
https://github.com/maxisbey
maxisbeyhttps://github.com/maxisbey
c9c431bhttps://github.com/modelcontextprotocol/python-sdk/commit/c9c431b71aeb48e3c4405f9d32144f8ed13fd116
Jul 28, 2026https://github.com/modelcontextprotocol/python-sdk/pull/3201#event-28594493899
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/3201/middleware.md
https://github.com/maxisbey
maxisbeyhttps://github.com/maxisbey
July 28, 2026 11:24https://github.com/modelcontextprotocol/python-sdk/pull/3201/middleware.md#event-28594495369
https://github.com/apps/claude
claudehttps://github.com/apps/claude
Jul 28, 2026 https://github.com/modelcontextprotocol/python-sdk/pull/3201/middleware.md#pullrequestreview-4796803486
View reviewed changes https://github.com/modelcontextprotocol/python-sdk/pull/3201/files/b920a3981ac51ed66c753f9b13c47a4b818d4241
claudehttps://github.com/apps/claude
https://github.com/modelcontextprotocol/python-sdk/pull/3201/middleware.md#pullrequestreview-4796803486
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/3201/middleware.md
docs/advanced/middleware.mdhttps://github.com/modelcontextprotocol/python-sdk/pull/3201/files/b920a3981ac51ed66c753f9b13c47a4b818d4241#diff-d487d26dc9137511088441a2870b257f3672f6cfc7a9a55b82a52f17b7defbbc
claudehttps://github.com/apps/claude
Jul 28, 2026https://github.com/modelcontextprotocol/python-sdk/pull/3201/middleware.md#discussion_r3665166602
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
#3197https://github.com/modelcontextprotocol/python-sdk/pull/3197
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/3201/middleware.md
https://github.com/apps/claude
claudehttps://github.com/apps/claude
Jul 28, 2026 https://github.com/modelcontextprotocol/python-sdk/pull/3201/middleware.md#ref-pullrequest-4980143022
Present v2 as the stable release across the README, docs, and policies #3178 https://github.com/modelcontextprotocol/python-sdk/pull/3178
https://github.com/maxisbey
maxisbeyhttps://github.com/maxisbey
Jul 29, 2026 https://github.com/modelcontextprotocol/python-sdk/pull/3201/middleware.md#ref-pullrequest-5009992031
Retire wording tied to pre-2.0 milestones #3211 https://github.com/modelcontextprotocol/python-sdk/pull/3211
https://github.co/hiddenchars
https://github.com/modelcontextprotocol/python-sdk/pull/3201/{{ 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%2F3201
https://github.com/apps/cubic-dev-ai
cubic-dev-ai[bot] https://github.com/apps/cubic-dev-ai
https://github.com/modelcontextprotocol/python-sdk/pull/3201/files/869efd1a391255ba542864e46e07563bdfbd1627
https://github.com/apps/claude
claude[bot] https://github.com/apps/claude
https://github.com/modelcontextprotocol/python-sdk/pull/3201/files/b920a3981ac51ed66c753f9b13c47a4b818d4241
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/3201/middleware.md
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/3201/middleware.md
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

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlno-cache

Viewport: width=device-width


URLs of crawlers that visited me.