| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:3a9f1a4c-01ca-3415-4b3d-85d67ec10f06 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 972C:2508EA:50093D:709290:6B05B983 |
| html-safe-nonce | 8ec84c4003592e902be18e346811fc9bed2c9cdf1b48619a0cb06a00308209c0 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NzJDOjI1MDhFQTo1MDA5M0Q6NzA5MjkwOjZCMDVCOTgzIiwidmlzaXRvcl9pZCI6IjkxMDA2MDM0MjY0NDYwOTY3NzEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | fec6f8f55f5bf8e6c515361a3bff411009ad8ffe0ed25d9a0ba40fce544f5b55 |
| hovercard-subject-tag | pull_request:4150358998 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | ///pull_requests/show/files |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/modelcontextprotocol/python-sdk/pull/3201/files |
| twitter:image | https://avatars.githubusercontent.com/u/224885523?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/224885523?s=400&v=4 |
| og:image:alt | 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... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 708c2f10d746dbcf1dd80dc8309daa7d595df3fce8066244380fc3238618f09c |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/modelcontextprotocol/python-sdk git https://github.com/modelcontextprotocol/python-sdk.git |
| octolytics-dimension-user_id | 182288589 |
| octolytics-dimension-user_login | modelcontextprotocol |
| octolytics-dimension-repository_id | 862584018 |
| octolytics-dimension-repository_nwo | modelcontextprotocol/python-sdk |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 862584018 |
| octolytics-dimension-repository_network_root_nwo | modelcontextprotocol/python-sdk |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 2a29e3cf4fb57e81fd311774f91f345cc4436f40 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://github.com/modelcontextprotocol/python-sdk/pull/3201/files#start-of-content |
| https://github.com/ |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmodelcontextprotocol%2Fpython-sdk%2Fpull%2F3201%2Ffiles |
| GitHubRepository hosting, code review, and collaboration | https://github.com/platform |
| CopilotAI coding agent for tasks, projects, and automated work | https://github.com/features/copilot |
| ActionsCI/CD and automation | https://github.com/features/actions |
| Code QualityQuality analysis, fixes, and enforcement | https://github.com/features/code-quality |
| CodespacesCloud development environments | https://github.com/features/codespaces |
| Code SecurityVulnerability detection and remediation | https://github.com/security/advanced-security/code-security |
| Secret ProtectionSecret scanning and leak prevention | https://github.com/security/advanced-security/secret-protection |
| All Features | https://github.com/features |
| Documentation | https://docs.github.com/en |
| Training | https://learn.github.com/skills |
| Certifications | https://learn.github.com/credentials |
| Build with Copilot | https://github.com/features/ai |
| Customize Copilot | https://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview |
| Integrations | https://github.com/marketplace |
| Trending repos | https://github.com/trending |
| GitHub Sponsors | https://github.com/open-source/sponsors |
| Developer articles | https://github.com/resources/articles |
| ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place. | https://github.blog/changelog/ |
| Enterprises | https://github.com/enterprise |
| Team | https://github.com/team |
| Startups | https://github.com/enterprise/startups |
| Nonprofits | https://github.com/solutions/industry/nonprofits |
| Healthcare | https://github.com/solutions/industry/healthcare |
| Financial services | https://github.com/solutions/industry/financial-services |
| Manufacturing | https://github.com/solutions/industry/manufacturing |
| Government | https://github.com/solutions/industry/government |
| See all industries | https://github.com/solutions/industry |
| Why GitHub | https://github.com/why-github |
| Customer Stories | https://github.com/customer-stories |
| Business insights | https://github.com/solutions/executive-insights |
| Trust Center | https://github.com/trust-center |
| GitHub Advanced SecurityEnterprise-grade code security | https://github.com/security/advanced-security |
| Copilot for businessEnterprise-grade AI features | https://github.com/features/copilot/copilot-business |
| Premium SupportEnterprise-grade 24/7 support | https://github.com/enterprise/premium-support |
| Documentation | https://docs.github.com/en |
| Resource center | https://github.com/resources |
| Blog | https://github.blog/ |
| Events & webinars | https://github.com/resources/events |
| Community Forum | https://github.com/orgs/community/discussions |
| Customer Stories | https://github.com/customer-stories |
| Integrations | https://github.com/marketplace |
| Customer support | https://help.github.com/ |
| Training | https://learn.github.com/skills |
| GitHub Status | https://www.githubstatus.com/ |
| About | https://github.com/about |
| Partners | https://github.com/partners |
| Changelog | https://github.blog/changelog/ |
| GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub. | https://githubuniverse.com/ |
| Pricing | https://github.com/pricing |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmodelcontextprotocol%2Fpython-sdk%2Fpull%2F3201%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 |
| Reload | https://github.com/modelcontextprotocol/python-sdk/pull/3201/files |
| Reload | https://github.com/modelcontextprotocol/python-sdk/pull/3201/files |
| Reload | https://github.com/modelcontextprotocol/python-sdk/pull/3201/files |
| modelcontextprotocol | https://github.com/modelcontextprotocol |
| python-sdk | https://github.com/modelcontextprotocol/python-sdk |
| Code | https://github.com/modelcontextprotocol/python-sdk |
| Issues320 (320) | https://github.com/modelcontextprotocol/python-sdk/issues |
| Pull requests112 (112) | https://github.com/modelcontextprotocol/python-sdk/pulls |
| Actions | https://github.com/modelcontextprotocol/python-sdk/actions |
| Projects | https://github.com/modelcontextprotocol/python-sdk/projects |
| Security and quality12 (12) | https://github.com/modelcontextprotocol/python-sdk/security |
| Insights | https://github.com/modelcontextprotocol/python-sdk/insights |
| Sign up for GitHub
| https://github.com/signup?return_to=%2Fmodelcontextprotocol%2Fpython-sdk%2Fissues%2Fnew%2Fchoose |
| terms of service | https://docs.github.com/terms |
| privacy statement | https://docs.github.com/privacy |
| Sign in | https://github.com/login?return_to=%2Fmodelcontextprotocol%2Fpython-sdk%2Fissues%2Fnew%2Fchoose |
| maxisbey | https://github.com/maxisbey |
| main | https://github.com/modelcontextprotocol/python-sdk/tree/main |
| subscriptions-listen-authz | https://github.com/modelcontextprotocol/python-sdk/tree/subscriptions-listen-authz |
|
Conversation
9
| https://github.com/modelcontextprotocol/python-sdk/pull/3201 |
|
Commits
1
| https://github.com/modelcontextprotocol/python-sdk/pull/3201/commits |
|
Checks
39
| https://github.com/modelcontextprotocol/python-sdk/pull/3201/checks |
|
Files changed
| https://github.com/modelcontextprotocol/python-sdk/pull/3201/files |
| Please reload this page | https://github.com/modelcontextprotocol/python-sdk/pull/3201/files |
|
Expose the middleware chain on MCPServer and stop sending unrequested change notifications
| https://github.com/modelcontextprotocol/python-sdk/pull/3201/files#top |
|
Show all changes
1 commit
| https://github.com/modelcontextprotocol/python-sdk/pull/3201/files |
|
b920a39
Expose the middleware chain on MCPServer and stop sending unrequested…
maxisbey Jul 28, 2026
| https://github.com/modelcontextprotocol/python-sdk/pull/3201/commits/b920a3981ac51ed66c753f9b13c47a4b818d4241 |
|
Clear filters
| https://github.com/modelcontextprotocol/python-sdk/pull/3201/files |
| Please reload this page | https://github.com/modelcontextprotocol/python-sdk/pull/3201/files |
| Please reload this page | https://github.com/modelcontextprotocol/python-sdk/pull/3201/files |
|
middleware.md
| https://github.com/modelcontextprotocol/python-sdk/pull/3201/files#diff-d487d26dc9137511088441a2870b257f3672f6cfc7a9a55b82a52f17b7defbbc |
|
subscriptions.md
| https://github.com/modelcontextprotocol/python-sdk/pull/3201/files#diff-cf4fb602edf8b43efbcedd12a1f45ac757e569f7acc4e34150fc2940ec61803a |
|
subscriptions.md
| https://github.com/modelcontextprotocol/python-sdk/pull/3201/files#diff-69985b34534dc028225c760688683c0b34c937cacea59d61840231fea3abb6ff |
|
migration.md
| https://github.com/modelcontextprotocol/python-sdk/pull/3201/files#diff-758ba107a728fccfdf0d098b2c06ded59127dd53ea287d630f72fb51040bc72d |
|
legacy-clients.md
| https://github.com/modelcontextprotocol/python-sdk/pull/3201/files#diff-751f74d0fcc230ef045e0ecdfc190d3d67737c86b6fd6b65080757a4baf7f251 |
|
whats-new.md
| https://github.com/modelcontextprotocol/python-sdk/pull/3201/files#diff-9428ccc149911a1fdbacb719bfe6f6e4d0c4fbe84f4ce18d14cdb5cd82b9df45 |
|
tutorial006.py
| https://github.com/modelcontextprotocol/python-sdk/pull/3201/files#diff-80863253ce80fc4aa1e4fa9b56a2b90176a7d483828c0c2f8d06b87fb6016a3e |
|
connection.py
| https://github.com/modelcontextprotocol/python-sdk/pull/3201/files#diff-849ab2b2ff6c99a29f2b9dcdc9edc4139ffa7d091cdf45f05fbfc7cb998b03d1 |
|
server.py
| https://github.com/modelcontextprotocol/python-sdk/pull/3201/files#diff-51d6996c0b80b8a5c42e7071451cb9ed3c91b398facebe99b94aad911059190e |
|
subscriptions.py
| https://github.com/modelcontextprotocol/python-sdk/pull/3201/files#diff-183aee4f8b79213fd586f27de3c8872fa0d1ca6c45415d035a28769b68772dbb |
|
test_subscriptions.py
| https://github.com/modelcontextprotocol/python-sdk/pull/3201/files#diff-a7ff9eb2cb1b5f54cfe74004c58b0bed5e17c2779a5a5f815cfc5f0c575a4fc3 |
|
test_server.py
| https://github.com/modelcontextprotocol/python-sdk/pull/3201/files#diff-c191383f010475fc22bf69d35f14f16d7e45098b05a1a0f03ad66d6c151d1f34 |
|
test_runner.py
| https://github.com/modelcontextprotocol/python-sdk/pull/3201/files#diff-51ad0fc280fc0fb1ed6039b7c5a26a6fafba8d8ffc8533cfa89cb9df18ea3f10 |
| docs/advanced/middleware.md | https://github.com/modelcontextprotocol/python-sdk/pull/3201/files#diff-d487d26dc9137511088441a2870b257f3672f6cfc7a9a55b82a52f17b7defbbc |
|
View file
| https://github.com/modelcontextprotocol/python-sdk/blob/b920a3981ac51ed66c753f9b13c47a4b818d4241/docs/advanced/middleware.md |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/modelcontextprotocol/python-sdk/pull/3201/{{ revealButtonHref }} |
|
| https://github.com/modelcontextprotocol/python-sdk/pull/3201/files#diff-d487d26dc9137511088441a2870b257f3672f6cfc7a9a55b82a52f17b7defbbc |
| claude | https://github.com/apps/claude |
| Jul 28, 2026 | https://github.com/modelcontextprotocol/python-sdk/pull/3201/files#r3664836377 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Pagination | https://github.com/modelcontextprotocol/python-sdk/pull/3201/pagination.md |
| Middleware | https://github.com/modelcontextprotocol/python-sdk/pull/3201/middleware.md |
| Please reload this page | https://github.com/modelcontextprotocol/python-sdk/pull/3201/files |
|
| https://github.com/modelcontextprotocol/python-sdk/pull/3201/files#diff-d487d26dc9137511088441a2870b257f3672f6cfc7a9a55b82a52f17b7defbbc |
|
| https://github.com/modelcontextprotocol/python-sdk/pull/3201/files#diff-d487d26dc9137511088441a2870b257f3672f6cfc7a9a55b82a52f17b7defbbc |
|
| https://github.com/modelcontextprotocol/python-sdk/pull/3201/files#diff-d487d26dc9137511088441a2870b257f3672f6cfc7a9a55b82a52f17b7defbbc |
|
| https://github.com/modelcontextprotocol/python-sdk/pull/3201/files#diff-d487d26dc9137511088441a2870b257f3672f6cfc7a9a55b82a52f17b7defbbc |
|
| https://github.com/modelcontextprotocol/python-sdk/pull/3201/checks?check_run_id=90259311814 |
| claude | https://github.com/apps/claude |
| Jul 28, 2026 | https://github.com/modelcontextprotocol/python-sdk/pull/3201/files#r3665166602 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| #3197 | https://github.com/modelcontextprotocol/python-sdk/pull/3197 |
| Please reload this page | https://github.com/modelcontextprotocol/python-sdk/pull/3201/files |
|
| https://github.com/modelcontextprotocol/python-sdk/pull/3201/files#diff-d487d26dc9137511088441a2870b257f3672f6cfc7a9a55b82a52f17b7defbbc |
| docs/client/subscriptions.md | https://github.com/modelcontextprotocol/python-sdk/pull/3201/files#diff-cf4fb602edf8b43efbcedd12a1f45ac757e569f7acc4e34150fc2940ec61803a |
|
View file
| https://github.com/modelcontextprotocol/python-sdk/blob/b920a3981ac51ed66c753f9b13c47a4b818d4241/docs/client/subscriptions.md |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/modelcontextprotocol/python-sdk/pull/3201/{{ revealButtonHref }} |
|
| https://github.com/modelcontextprotocol/python-sdk/pull/3201/files#diff-cf4fb602edf8b43efbcedd12a1f45ac757e569f7acc4e34150fc2940ec61803a |
| claude | https://github.com/apps/claude |
| Jul 28, 2026 | https://github.com/modelcontextprotocol/python-sdk/pull/3201/files#r3664836367 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Subscriptions | https://github.com/modelcontextprotocol/python-sdk/pull/handlers/subscriptions.md |
| Subscriptions | https://github.com/modelcontextprotocol/python-sdk/pull/handlers/subscriptions.md |
| Subscriptions | https://github.com/modelcontextprotocol/python-sdk/pull/handlers/subscriptions.md |
| Please reload this page | https://github.com/modelcontextprotocol/python-sdk/pull/3201/files |
|
| https://github.com/modelcontextprotocol/python-sdk/pull/3201/files#diff-cf4fb602edf8b43efbcedd12a1f45ac757e569f7acc4e34150fc2940ec61803a |
| docs/handlers/subscriptions.md | https://github.com/modelcontextprotocol/python-sdk/pull/3201/files#diff-69985b34534dc028225c760688683c0b34c937cacea59d61840231fea3abb6ff |
|
View file
| https://github.com/modelcontextprotocol/python-sdk/blob/b920a3981ac51ed66c753f9b13c47a4b818d4241/docs/handlers/subscriptions.md |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/modelcontextprotocol/python-sdk/pull/3201/{{ revealButtonHref }} |
|
| https://github.com/modelcontextprotocol/python-sdk/pull/3201/files#diff-69985b34534dc028225c760688683c0b34c937cacea59d61840231fea3abb6ff |
|
| https://github.com/modelcontextprotocol/python-sdk/pull/3201/files#diff-69985b34534dc028225c760688683c0b34c937cacea59d61840231fea3abb6ff |
| docs/migration.md | https://github.com/modelcontextprotocol/python-sdk/pull/3201/files#diff-758ba107a728fccfdf0d098b2c06ded59127dd53ea287d630f72fb51040bc72d |
|
View file
| https://github.com/modelcontextprotocol/python-sdk/blob/b920a3981ac51ed66c753f9b13c47a4b818d4241/docs/migration.md |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/modelcontextprotocol/python-sdk/pull/3201/{{ revealButtonHref }} |
|
| https://github.com/modelcontextprotocol/python-sdk/pull/3201/files#diff-758ba107a728fccfdf0d098b2c06ded59127dd53ea287d630f72fb51040bc72d |
|
| https://github.com/modelcontextprotocol/python-sdk/pull/3201/files#diff-758ba107a728fccfdf0d098b2c06ded59127dd53ea287d630f72fb51040bc72d |
|
| https://github.com/modelcontextprotocol/python-sdk/pull/3201/files#diff-758ba107a728fccfdf0d098b2c06ded59127dd53ea287d630f72fb51040bc72d |
|
| https://github.com/modelcontextprotocol/python-sdk/pull/3201/files#diff-758ba107a728fccfdf0d098b2c06ded59127dd53ea287d630f72fb51040bc72d |
|
| https://github.com/modelcontextprotocol/python-sdk/pull/3201/files#diff-758ba107a728fccfdf0d098b2c06ded59127dd53ea287d630f72fb51040bc72d |
|
| https://github.com/modelcontextprotocol/python-sdk/pull/3201/files#diff-758ba107a728fccfdf0d098b2c06ded59127dd53ea287d630f72fb51040bc72d |
|
| https://github.com/modelcontextprotocol/python-sdk/pull/3201/files#diff-758ba107a728fccfdf0d098b2c06ded59127dd53ea287d630f72fb51040bc72d |
| cubic-dev-ai | https://github.com/apps/cubic-dev-ai |
| Jul 28, 2026 | https://github.com/modelcontextprotocol/python-sdk/pull/3201/files#r3664738917 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/modelcontextprotocol/python-sdk/pull/3201/files |
|
| https://github.com/modelcontextprotocol/python-sdk/pull/3201/files#diff-758ba107a728fccfdf0d098b2c06ded59127dd53ea287d630f72fb51040bc72d |
| Please reload this page | https://github.com/modelcontextprotocol/python-sdk/pull/3201/files |
| Please reload this page | https://github.com/modelcontextprotocol/python-sdk/pull/3201/files |
|
| https://github.com |
| Terms | https://docs.github.com/site-policy/github-terms/github-terms-of-service |
| Privacy | https://docs.github.com/site-policy/privacy-policies/github-privacy-statement |
| Security | https://github.com/security |
| Status | https://www.githubstatus.com/ |
| Community | https://github.community/ |
| Docs | https://docs.github.com/ |
| Contact | https://support.github.com?tags=dotcom-footer |