René's URL Explorer Experiment


Title: Fix unknown-method error code and add a protocol version registry by maxisbey · Pull Request #2836 · modelcontextprotocol/python-sdk · GitHub

Open Graph Title: Fix unknown-method error code and add a protocol version registry by maxisbey · Pull Request #2836 · modelcontextprotocol/python-sdk

X Title: Fix unknown-method error code and add a protocol version registry by maxisbey · Pull Request #2836 · modelcontextprotocol/python-sdk

Description: Bundled fixes around the same version/dispatch seams: unknown methods now get the JSON-RPC-correct error code on both sides, and protocol version comparisons go through a small registry instead of raw string compares. Motivation and Context Unknown methods answered -32602 instead of -32601. A request with an unknown method failed inside the request-union validation and fell into the generic invalid-params handler, so peers received -32602 (Invalid params) instead of -32601 (Method not found). This affected the server runner for pre-initialization requests and the client-side receive loop. JSON-RPC 2.0 reserves -32601 for exactly this case, and clients that probe for optional/newer methods need to distinguish "method doesn't exist" from "bad params" to fall back correctly. Fixes #1561 (its repro — an unknown method sent before any handshake — is the exact pre-initialization path fixed here). Lexicographic version compares on wire input. Three call sites compared protocol versions with raw string ordering (e.g. >= "2025-11-25"), including against the client-supplied MCP-Protocol-Version header. Any non-date string sorts somewhere (letters sort after digits, so e.g. "draft" compares newer than every release) and can silently flip version-gated behavior. Comparisons now go through mcp.shared.version: an ordered registry of released protocol versions plus is_version_at_least(), which treats unknown wire strings conservatively (no version-gated behavior enabled) and raises on an unknown threshold, since that's a typo in our own code. Also included: ServerSession.protocol_version: read access to the negotiated version (the field was previously write-only internal state). docs/migration.md correction: it claimed extra fields on MCP types raise a ValidationError; they are silently ignored. The doc now describes actual behavior. How Has This Been Tested? Regression tests for both error-code fixes were written first and verified to fail on main with the old behavior (-32602 with empty data) before the fix. Full suite green locally at 100% line+branch coverage; pyright and ruff clean. The registry refactor of the three compare sites is behavior-preserving for all released versions (covered by equivalence tests); only unknown-string inputs change outcome, conservatively. Breaking Changes No API changes. One wire-visible behavior change: requests with unknown methods now receive -32601 (Method not found) instead of -32602 — the JSON-RPC-specified code. Anything matching on the old, incorrect code for this case would need updating. Types of changes Bug fix (non-breaking change which fixes an issue) New feature (non-breaking change which adds functionality) Breaking change (fix or feature that would cause existing functionality to change) Documentation update Checklist I have read the MCP Documentation My code follows the repository's style guidelines New and existing tests pass locally I have added appropriate error handling I have added or updated documentation as needed Additional context Commits are stacked for review (registry first, then the two error-code fixes, then the property and doc fix) and are independently revertable. A v1.x backport of the -32601 fix is prepared separately. AI Disclaimer

Open Graph Description: Bundled fixes around the same version/dispatch seams: unknown methods now get the JSON-RPC-correct error code on both sides, and protocol version comparisons go through a small registry instead of ...

X Description: Bundled fixes around the same version/dispatch seams: unknown methods now get the JSON-RPC-correct error code on both sides, and protocol version comparisons go through a small registry instead of ...

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

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:33dce7f5-432e-ded6-e157-44848032b89d
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id977E:1266CF:1389B63:195C8FA:6A5B0E7A
html-safe-noncead6d5f75e5d6225c75a69f7bfa74678668af1df302561f39bdc46eaa3fcc1bab
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NzdFOjEyNjZDRjoxMzg5QjYzOjE5NUM4RkE6NkE1QjBFN0EiLCJ2aXNpdG9yX2lkIjoiMjE0OTYwMTE2NzQ0NTUyODE4NiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac4310c08ff7ad37d8f7da118fd77f04fab0bdb83c6191ec833f1c018f7b0e0d31
hovercard-subject-tagpull_request:3848055716
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/2836/files
twitter:imagehttps://avatars.githubusercontent.com/u/224885523?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/224885523?s=400&v=4
og:image:altBundled fixes around the same version/dispatch seams: unknown methods now get the JSON-RPC-correct error code on both sides, and protocol version comparisons go through a small registry instead of ...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None5290d7e14309ad1e76106a9c4237bd1041517e83ea182c8ab756752cb0c6940b
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/modelcontextprotocol/python-sdk git https://github.com/modelcontextprotocol/python-sdk.git
octolytics-dimension-user_id182288589
octolytics-dimension-user_loginmodelcontextprotocol
octolytics-dimension-repository_id862584018
octolytics-dimension-repository_nwomodelcontextprotocol/python-sdk
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id862584018
octolytics-dimension-repository_network_root_nwomodelcontextprotocol/python-sdk
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release9c975978430e9ad293956f2bbdaf153b1bd84a99
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/modelcontextprotocol/python-sdk/pull/2836/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmodelcontextprotocol%2Fpython-sdk%2Fpull%2F2836%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%2F2836%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/2836/files
Reloadhttps://github.com/modelcontextprotocol/python-sdk/pull/2836/files
Reloadhttps://github.com/modelcontextprotocol/python-sdk/pull/2836/files
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/2836/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 258 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
Sign up for GitHub https://github.com/signup?return_to=%2Fmodelcontextprotocol%2Fpython-sdk%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fmodelcontextprotocol%2Fpython-sdk%2Fissues%2Fnew%2Fchoose
maxisbeyhttps://github.com/maxisbey
mainhttps://github.com/modelcontextprotocol/python-sdk/tree/main
maxisbey/method-not-found-and-version-registryhttps://github.com/modelcontextprotocol/python-sdk/tree/maxisbey/method-not-found-and-version-registry
Conversation 4 https://github.com/modelcontextprotocol/python-sdk/pull/2836
Commits 9 https://github.com/modelcontextprotocol/python-sdk/pull/2836/commits
Checks 33 https://github.com/modelcontextprotocol/python-sdk/pull/2836/checks
Files changed https://github.com/modelcontextprotocol/python-sdk/pull/2836/files
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/2836/files
Fix unknown-method error code and add a protocol version registry https://github.com/modelcontextprotocol/python-sdk/pull/2836/files#top
Show all changes 9 commits https://github.com/modelcontextprotocol/python-sdk/pull/2836/files
89722dd Compare protocol versions through a known-version registry maxisbey Jun 5, 2026 https://github.com/modelcontextprotocol/python-sdk/pull/2836/commits/89722dd3df5a695dabe7082780eee2ae95b39ccb
3230c3f Return METHOD_NOT_FOUND for requests with unknown methods maxisbey Jun 5, 2026 https://github.com/modelcontextprotocol/python-sdk/pull/2836/commits/3230c3f6dd9cca1712bc09b9be321b374e3ff4f4
4468a7f Answer unknown methods with METHOD_NOT_FOUND before the initialize gate maxisbey Jun 5, 2026 https://github.com/modelcontextprotocol/python-sdk/pull/2836/commits/4468a7fdd368ba0578df3fb29e6237b4dcd1e5ef
3789d00 Expose the negotiated protocol version on ServerSession maxisbey Jun 5, 2026 https://github.com/modelcontextprotocol/python-sdk/pull/2836/commits/3789d001a58944976a8cbe1c5e01e4a369b671c5
2374c99 docs: extra fields on MCP types are ignored, not rejected maxisbey Jun 5, 2026 https://github.com/modelcontextprotocol/python-sdk/pull/2836/commits/2374c997e0b585dcdf56d393f329c943e7065a83
22176ef Limit the version registry to released protocol versions maxisbey Jun 11, 2026 https://github.com/modelcontextprotocol/python-sdk/pull/2836/commits/22176efcd13f6ad9ea79a12ffc4c40bbdac5e194
b978383 docs: record the unknown-method error-code change in the migration guide maxisbey Jun 11, 2026 https://github.com/modelcontextprotocol/python-sdk/pull/2836/commits/b97838344709565def2513c1b33a4d7a8f3d35eb
e1bf53f Clarify protocol-version docstrings and tighten new tests maxisbey Jun 11, 2026 https://github.com/modelcontextprotocol/python-sdk/pull/2836/commits/e1bf53f708fbd5bb5458084c430fff658de00d09
5dd7e4a Answer any unserved method with METHOD_NOT_FOUND before the initializ… maxisbey Jun 11, 2026 https://github.com/modelcontextprotocol/python-sdk/pull/2836/commits/5dd7e4a26aa5ab93876766ec2a90ad6e9c916b40
Clear filters https://github.com/modelcontextprotocol/python-sdk/pull/2836/files
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/2836/files
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/2836/files
migration.md https://github.com/modelcontextprotocol/python-sdk/pull/2836/files#diff-758ba107a728fccfdf0d098b2c06ded59127dd53ea287d630f72fb51040bc72d
oauth2.py https://github.com/modelcontextprotocol/python-sdk/pull/2836/files#diff-b7aaf2062da175cea9a532176d6eb78b659eaadb757cc48929f0bafccfdb8d98
session.py https://github.com/modelcontextprotocol/python-sdk/pull/2836/files#diff-634d1abcb8bda1a784f31e3431a10124e387f487dd243a54244515b4972aa0ee
connection.py https://github.com/modelcontextprotocol/python-sdk/pull/2836/files#diff-849ab2b2ff6c99a29f2b9dcdc9edc4139ffa7d091cdf45f05fbfc7cb998b03d1
runner.py https://github.com/modelcontextprotocol/python-sdk/pull/2836/files#diff-7a9c3e13faa5730f5a8a60062e9d200513c0baeada63e3cc24b37fe68e086e90
session.py https://github.com/modelcontextprotocol/python-sdk/pull/2836/files#diff-9a603a2587011a188aa76ca19a32fcd343a253516325fbcfb4f7bfb6a814634c
streamable_http.py https://github.com/modelcontextprotocol/python-sdk/pull/2836/files#diff-0119e4c1bbf2fde7ba89b9c9f5bc472ccc2332f84e96e47cf9e45cebef801da3
session.py https://github.com/modelcontextprotocol/python-sdk/pull/2836/files#diff-aaa1596dd4db91f5cd7f743c8afbe58596daf01a2ecec4a0024768f7409fb1dc
version.py https://github.com/modelcontextprotocol/python-sdk/pull/2836/files#diff-cbd997f5b52f8757771f4257216d82d29862715947778ae776ec13385baf9184
test_auth.py https://github.com/modelcontextprotocol/python-sdk/pull/2836/files#diff-f083d075f463e8b1ecfa6b931c33288c3d09b00ee3af3e5f74df16b7e75c3ab1
test_client.py https://github.com/modelcontextprotocol/python-sdk/pull/2836/files#diff-f91d7d1bfecb41d80a4cc73133b82560b7284a2af2d6630c49b983ca9366ea13
test_completion.py https://github.com/modelcontextprotocol/python-sdk/pull/2836/files#diff-bf0c284b273d3bb39c7ad04eeecc944fe65dcad178203eaa686d4d295803f5b2
test_resources.py https://github.com/modelcontextprotocol/python-sdk/pull/2836/files#diff-b72ae88a1de4fa5bbd3e571601e51bc56f008819d8a9438ad9c4fc7abae56ecd
test_context.py https://github.com/modelcontextprotocol/python-sdk/pull/2836/files#diff-b5f7f25d66f0bed98387a6b630791fe45686eca3ae623b16d89da8a4d01b471e
test_runner.py https://github.com/modelcontextprotocol/python-sdk/pull/2836/files#diff-51ad0fc280fc0fb1ed6039b7c5a26a6fafba8d8ffc8533cfa89cb9df18ea3f10
test_session.py https://github.com/modelcontextprotocol/python-sdk/pull/2836/files#diff-ed22c8fef52dc8c1d840dc0825bc375c48b67dcc2b468bab084aded3af06fdcf
test_session.py https://github.com/modelcontextprotocol/python-sdk/pull/2836/files#diff-c1cae39f59e7077c9b3f3310d51bd7fc70f57b80f25911dafdcf7720b71184c2
test_streamable_http.py https://github.com/modelcontextprotocol/python-sdk/pull/2836/files#diff-57d1f3c64af36960aa61b1d77387fb6201b90fbc2f3d606bf2761315ce618cc5
test_version.py https://github.com/modelcontextprotocol/python-sdk/pull/2836/files#diff-d1aedee216e160300cab29a3c74113f7ecbabdf4f85af4920bd2a7dd1008fb13
docs/migration.mdhttps://github.com/modelcontextprotocol/python-sdk/pull/2836/files#diff-758ba107a728fccfdf0d098b2c06ded59127dd53ea287d630f72fb51040bc72d
View file https://github.com/modelcontextprotocol/python-sdk/blob/5dd7e4a26aa5ab93876766ec2a90ad6e9c916b40/docs/migration.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/modelcontextprotocol/python-sdk/pull/2836/{{ revealButtonHref }}
https://github.com/modelcontextprotocol/python-sdk/pull/2836/files#diff-758ba107a728fccfdf0d098b2c06ded59127dd53ea287d630f72fb51040bc72d
https://github.com/modelcontextprotocol/python-sdk/pull/2836/files#diff-758ba107a728fccfdf0d098b2c06ded59127dd53ea287d630f72fb51040bc72d
https://github.com/modelcontextprotocol/python-sdk/pull/2836/files#diff-758ba107a728fccfdf0d098b2c06ded59127dd53ea287d630f72fb51040bc72d
https://github.com/modelcontextprotocol/python-sdk/pull/2836/files#diff-758ba107a728fccfdf0d098b2c06ded59127dd53ea287d630f72fb51040bc72d
src/mcp/client/auth/oauth2.pyhttps://github.com/modelcontextprotocol/python-sdk/pull/2836/files#diff-b7aaf2062da175cea9a532176d6eb78b659eaadb757cc48929f0bafccfdb8d98
View file https://github.com/modelcontextprotocol/python-sdk/blob/5dd7e4a26aa5ab93876766ec2a90ad6e9c916b40/src/mcp/client/auth/oauth2.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/modelcontextprotocol/python-sdk/pull/2836/{{ revealButtonHref }}
https://github.com/modelcontextprotocol/python-sdk/pull/2836/files#diff-b7aaf2062da175cea9a532176d6eb78b659eaadb757cc48929f0bafccfdb8d98
https://github.com/modelcontextprotocol/python-sdk/pull/2836/files#diff-b7aaf2062da175cea9a532176d6eb78b659eaadb757cc48929f0bafccfdb8d98
https://github.com/modelcontextprotocol/python-sdk/pull/2836/files#diff-b7aaf2062da175cea9a532176d6eb78b659eaadb757cc48929f0bafccfdb8d98
https://github.com/modelcontextprotocol/python-sdk/pull/2836/files#diff-b7aaf2062da175cea9a532176d6eb78b659eaadb757cc48929f0bafccfdb8d98
src/mcp/client/session.pyhttps://github.com/modelcontextprotocol/python-sdk/pull/2836/files#diff-634d1abcb8bda1a784f31e3431a10124e387f487dd243a54244515b4972aa0ee
View file https://github.com/modelcontextprotocol/python-sdk/blob/5dd7e4a26aa5ab93876766ec2a90ad6e9c916b40/src/mcp/client/session.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/modelcontextprotocol/python-sdk/pull/2836/{{ revealButtonHref }}
https://github.com/modelcontextprotocol/python-sdk/pull/2836/files#diff-634d1abcb8bda1a784f31e3431a10124e387f487dd243a54244515b4972aa0ee
https://github.com/modelcontextprotocol/python-sdk/pull/2836/files#diff-634d1abcb8bda1a784f31e3431a10124e387f487dd243a54244515b4972aa0ee
https://github.com/modelcontextprotocol/python-sdk/pull/2836/files#diff-634d1abcb8bda1a784f31e3431a10124e387f487dd243a54244515b4972aa0ee
https://github.com/modelcontextprotocol/python-sdk/pull/2836/files#diff-634d1abcb8bda1a784f31e3431a10124e387f487dd243a54244515b4972aa0ee
https://github.com/modelcontextprotocol/python-sdk/pull/2836/files#diff-634d1abcb8bda1a784f31e3431a10124e387f487dd243a54244515b4972aa0ee
src/mcp/server/connection.pyhttps://github.com/modelcontextprotocol/python-sdk/pull/2836/files#diff-849ab2b2ff6c99a29f2b9dcdc9edc4139ffa7d091cdf45f05fbfc7cb998b03d1
View file https://github.com/modelcontextprotocol/python-sdk/blob/5dd7e4a26aa5ab93876766ec2a90ad6e9c916b40/src/mcp/server/connection.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/modelcontextprotocol/python-sdk/pull/2836/{{ revealButtonHref }}
https://github.com/modelcontextprotocol/python-sdk/pull/2836/files#diff-849ab2b2ff6c99a29f2b9dcdc9edc4139ffa7d091cdf45f05fbfc7cb998b03d1
https://github.com/modelcontextprotocol/python-sdk/pull/2836/files#diff-849ab2b2ff6c99a29f2b9dcdc9edc4139ffa7d091cdf45f05fbfc7cb998b03d1
src/mcp/server/runner.pyhttps://github.com/modelcontextprotocol/python-sdk/pull/2836/files#diff-7a9c3e13faa5730f5a8a60062e9d200513c0baeada63e3cc24b37fe68e086e90
View file https://github.com/modelcontextprotocol/python-sdk/blob/5dd7e4a26aa5ab93876766ec2a90ad6e9c916b40/src/mcp/server/runner.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/modelcontextprotocol/python-sdk/pull/2836/{{ revealButtonHref }}
https://github.com/modelcontextprotocol/python-sdk/pull/2836/files#diff-7a9c3e13faa5730f5a8a60062e9d200513c0baeada63e3cc24b37fe68e086e90
https://github.com/modelcontextprotocol/python-sdk/pull/2836/files#diff-7a9c3e13faa5730f5a8a60062e9d200513c0baeada63e3cc24b37fe68e086e90
src/mcp/server/session.pyhttps://github.com/modelcontextprotocol/python-sdk/pull/2836/files#diff-9a603a2587011a188aa76ca19a32fcd343a253516325fbcfb4f7bfb6a814634c
View file https://github.com/modelcontextprotocol/python-sdk/blob/5dd7e4a26aa5ab93876766ec2a90ad6e9c916b40/src/mcp/server/session.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/modelcontextprotocol/python-sdk/pull/2836/{{ revealButtonHref }}
https://github.com/modelcontextprotocol/python-sdk/pull/2836/files#diff-9a603a2587011a188aa76ca19a32fcd343a253516325fbcfb4f7bfb6a814634c
https://github.com/modelcontextprotocol/python-sdk/pull/2836/files#diff-9a603a2587011a188aa76ca19a32fcd343a253516325fbcfb4f7bfb6a814634c
src/mcp/server/streamable_http.pyhttps://github.com/modelcontextprotocol/python-sdk/pull/2836/files#diff-0119e4c1bbf2fde7ba89b9c9f5bc472ccc2332f84e96e47cf9e45cebef801da3
View file https://github.com/modelcontextprotocol/python-sdk/blob/5dd7e4a26aa5ab93876766ec2a90ad6e9c916b40/src/mcp/server/streamable_http.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/modelcontextprotocol/python-sdk/pull/2836/{{ revealButtonHref }}
https://github.com/modelcontextprotocol/python-sdk/pull/2836/files#diff-0119e4c1bbf2fde7ba89b9c9f5bc472ccc2332f84e96e47cf9e45cebef801da3
https://github.com/modelcontextprotocol/python-sdk/pull/2836/files#diff-0119e4c1bbf2fde7ba89b9c9f5bc472ccc2332f84e96e47cf9e45cebef801da3
https://github.com/modelcontextprotocol/python-sdk/pull/2836/files#diff-0119e4c1bbf2fde7ba89b9c9f5bc472ccc2332f84e96e47cf9e45cebef801da3
https://github.com/modelcontextprotocol/python-sdk/pull/2836/files#diff-0119e4c1bbf2fde7ba89b9c9f5bc472ccc2332f84e96e47cf9e45cebef801da3
https://github.com/modelcontextprotocol/python-sdk/pull/2836/files#diff-0119e4c1bbf2fde7ba89b9c9f5bc472ccc2332f84e96e47cf9e45cebef801da3
https://github.com/modelcontextprotocol/python-sdk/pull/2836/files#diff-0119e4c1bbf2fde7ba89b9c9f5bc472ccc2332f84e96e47cf9e45cebef801da3
src/mcp/shared/session.pyhttps://github.com/modelcontextprotocol/python-sdk/pull/2836/files#diff-aaa1596dd4db91f5cd7f743c8afbe58596daf01a2ecec4a0024768f7409fb1dc
View file https://github.com/modelcontextprotocol/python-sdk/blob/5dd7e4a26aa5ab93876766ec2a90ad6e9c916b40/src/mcp/shared/session.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/modelcontextprotocol/python-sdk/pull/2836/{{ revealButtonHref }}
https://github.com/modelcontextprotocol/python-sdk/pull/2836/files#diff-aaa1596dd4db91f5cd7f743c8afbe58596daf01a2ecec4a0024768f7409fb1dc
https://github.com/modelcontextprotocol/python-sdk/pull/2836/files#diff-aaa1596dd4db91f5cd7f743c8afbe58596daf01a2ecec4a0024768f7409fb1dc
https://github.com/modelcontextprotocol/python-sdk/pull/2836/files#diff-aaa1596dd4db91f5cd7f743c8afbe58596daf01a2ecec4a0024768f7409fb1dc
https://github.com/modelcontextprotocol/python-sdk/pull/2836/files#diff-aaa1596dd4db91f5cd7f743c8afbe58596daf01a2ecec4a0024768f7409fb1dc
https://github.com/modelcontextprotocol/python-sdk/pull/2836/files#diff-aaa1596dd4db91f5cd7f743c8afbe58596daf01a2ecec4a0024768f7409fb1dc
src/mcp/shared/version.pyhttps://github.com/modelcontextprotocol/python-sdk/pull/2836/files#diff-cbd997f5b52f8757771f4257216d82d29862715947778ae776ec13385baf9184
View file https://github.com/modelcontextprotocol/python-sdk/blob/5dd7e4a26aa5ab93876766ec2a90ad6e9c916b40/src/mcp/shared/version.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/modelcontextprotocol/python-sdk/pull/2836/{{ revealButtonHref }}
felixweinbergerhttps://github.com/felixweinberger
Jun 11, 2026https://github.com/modelcontextprotocol/python-sdk/pull/2836/files#r3397263765
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/2836/files
maxisbeyhttps://github.com/maxisbey
Jun 11, 2026https://github.com/modelcontextprotocol/python-sdk/pull/2836/files#r3397280081
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/2836/files
felixweinbergerhttps://github.com/felixweinberger
Jun 11, 2026https://github.com/modelcontextprotocol/python-sdk/pull/2836/files#r3397274054
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/2836/files
tests/client/test_auth.pyhttps://github.com/modelcontextprotocol/python-sdk/pull/2836/files#diff-f083d075f463e8b1ecfa6b931c33288c3d09b00ee3af3e5f74df16b7e75c3ab1
View file https://github.com/modelcontextprotocol/python-sdk/blob/5dd7e4a26aa5ab93876766ec2a90ad6e9c916b40/tests/client/test_auth.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/modelcontextprotocol/python-sdk/pull/2836/{{ revealButtonHref }}
https://github.com/modelcontextprotocol/python-sdk/pull/2836/files#diff-f083d075f463e8b1ecfa6b931c33288c3d09b00ee3af3e5f74df16b7e75c3ab1
https://github.com/modelcontextprotocol/python-sdk/pull/2836/files#diff-f083d075f463e8b1ecfa6b931c33288c3d09b00ee3af3e5f74df16b7e75c3ab1
tests/client/test_client.pyhttps://github.com/modelcontextprotocol/python-sdk/pull/2836/files#diff-f91d7d1bfecb41d80a4cc73133b82560b7284a2af2d6630c49b983ca9366ea13
View file https://github.com/modelcontextprotocol/python-sdk/blob/5dd7e4a26aa5ab93876766ec2a90ad6e9c916b40/tests/client/test_client.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/modelcontextprotocol/python-sdk/pull/2836/{{ revealButtonHref }}
https://github.com/modelcontextprotocol/python-sdk/pull/2836/files#diff-f91d7d1bfecb41d80a4cc73133b82560b7284a2af2d6630c49b983ca9366ea13
https://github.com/modelcontextprotocol/python-sdk/pull/2836/files#diff-f91d7d1bfecb41d80a4cc73133b82560b7284a2af2d6630c49b983ca9366ea13
tests/interaction/lowlevel/test_completion.pyhttps://github.com/modelcontextprotocol/python-sdk/pull/2836/files#diff-bf0c284b273d3bb39c7ad04eeecc944fe65dcad178203eaa686d4d295803f5b2
View file https://github.com/modelcontextprotocol/python-sdk/blob/5dd7e4a26aa5ab93876766ec2a90ad6e9c916b40/tests/interaction/lowlevel/test_completion.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/modelcontextprotocol/python-sdk/pull/2836/{{ revealButtonHref }}
https://github.com/modelcontextprotocol/python-sdk/pull/2836/files#diff-bf0c284b273d3bb39c7ad04eeecc944fe65dcad178203eaa686d4d295803f5b2
tests/interaction/lowlevel/test_resources.pyhttps://github.com/modelcontextprotocol/python-sdk/pull/2836/files#diff-b72ae88a1de4fa5bbd3e571601e51bc56f008819d8a9438ad9c4fc7abae56ecd
View file https://github.com/modelcontextprotocol/python-sdk/blob/5dd7e4a26aa5ab93876766ec2a90ad6e9c916b40/tests/interaction/lowlevel/test_resources.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/modelcontextprotocol/python-sdk/pull/2836/{{ revealButtonHref }}
https://github.com/modelcontextprotocol/python-sdk/pull/2836/files#diff-b72ae88a1de4fa5bbd3e571601e51bc56f008819d8a9438ad9c4fc7abae56ecd
https://github.com/modelcontextprotocol/python-sdk/pull/2836/files#diff-b72ae88a1de4fa5bbd3e571601e51bc56f008819d8a9438ad9c4fc7abae56ecd
tests/interaction/mcpserver/test_context.pyhttps://github.com/modelcontextprotocol/python-sdk/pull/2836/files#diff-b5f7f25d66f0bed98387a6b630791fe45686eca3ae623b16d89da8a4d01b471e
View file https://github.com/modelcontextprotocol/python-sdk/blob/5dd7e4a26aa5ab93876766ec2a90ad6e9c916b40/tests/interaction/mcpserver/test_context.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/modelcontextprotocol/python-sdk/pull/2836/{{ revealButtonHref }}
https://github.com/modelcontextprotocol/python-sdk/pull/2836/files#diff-b5f7f25d66f0bed98387a6b630791fe45686eca3ae623b16d89da8a4d01b471e
https://github.com/modelcontextprotocol/python-sdk/pull/2836/files#diff-b5f7f25d66f0bed98387a6b630791fe45686eca3ae623b16d89da8a4d01b471e
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/2836/files
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/2836/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.