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: The official Python SDK for Model Context Protocol servers and clients - Fix unknown-method error code and add a protocol version registry by maxisbey · Pull Request #2836 · modelcontextprotocol/python-sdk

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/_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:8f5361d4-dd4e-4eb9-a730-9368ee36b931
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idAEF2:18D41C:24F6351:31A8E7B:6A59B116
html-safe-noncee24f6341f089be2e8917a2676125b9d3120a167a345ef10267bf56c6827c6c28
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBRUYyOjE4RDQxQzoyNEY2MzUxOjMxQThFN0I6NkE1OUIxMTYiLCJ2aXNpdG9yX2lkIjoiNzc4OTk4NDE2NTk2NjQ5MTkyNiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac1bf77a6926cddab638851322b0588ff85c4a0549893bf4bcc22ddadee959ad40
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///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/2836/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/d27175985a99ebfa95969d7866f8ff4d24fd903b92817761a8d46b0404a07e66/modelcontextprotocol/python-sdk/pull/2836
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/d27175985a99ebfa95969d7866f8ff4d24fd903b92817761a8d46b0404a07e66/modelcontextprotocol/python-sdk/pull/2836
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:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamemaxisbey
hostnamegithub.com
expected-hostnamegithub.com
Noneba3976babb66479b1c943a8edc0777d96157da48fadc0161f9ddb219deee8353
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
releaseab680789ae4a316cdaf0d5a292a1760140931cc4
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/modelcontextprotocol/python-sdk/pull/2836#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmodelcontextprotocol%2Fpython-sdk%2Fpull%2F2836
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
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/2836
Reloadhttps://github.com/modelcontextprotocol/python-sdk/pull/2836
Reloadhttps://github.com/modelcontextprotocol/python-sdk/pull/2836
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/2836
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 303 https://github.com/modelcontextprotocol/python-sdk/pulls
Actions https://github.com/modelcontextprotocol/python-sdk/actions
Projects https://github.com/modelcontextprotocol/python-sdk/projects
Models https://github.com/modelcontextprotocol/python-sdk/models
Security and quality 6 https://github.com/modelcontextprotocol/python-sdk/security
Insights https://github.com/modelcontextprotocol/python-sdk/pulse
Code https://github.com/modelcontextprotocol/python-sdk
Issues https://github.com/modelcontextprotocol/python-sdk/issues
Pull requests https://github.com/modelcontextprotocol/python-sdk/pulls
Actions https://github.com/modelcontextprotocol/python-sdk/actions
Projects https://github.com/modelcontextprotocol/python-sdk/projects
Models https://github.com/modelcontextprotocol/python-sdk/models
Security and quality https://github.com/modelcontextprotocol/python-sdk/security
Insights https://github.com/modelcontextprotocol/python-sdk/pulse
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
Conversationhttps://github.com/modelcontextprotocol/python-sdk/pull/2836
Commits9 (9)https://github.com/modelcontextprotocol/python-sdk/pull/2836/commits
Checkshttps://github.com/modelcontextprotocol/python-sdk/pull/2836/checks
Files changedhttps://github.com/modelcontextprotocol/python-sdk/pull/2836/files
Fix unknown-method error code and add a protocol version registryhttps://github.com/modelcontextprotocol/python-sdk/pull/2836#top
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
https://github.com/maxisbey
maxisbeyhttps://github.com/maxisbey
Jun 11, 2026https://github.com/modelcontextprotocol/python-sdk/pull/2836#issue-4641479462
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/2836
#1561https://github.com/modelcontextprotocol/python-sdk/issues/1561
MCP Documentationhttps://modelcontextprotocol.io
AI Disclaimerhttps://gist.github.com/maxisbey/6123d132484e4c533eab519a2800693d
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/2836
maxisbeyhttps://github.com/maxisbey
June 11, 2026 13:44https://github.com/modelcontextprotocol/python-sdk/pull/2836#commits-pushed-89722dd
https://github.com/maxisbey
Compare protocol versions through a known-version registryhttps://github.com/modelcontextprotocol/python-sdk/pull/2836/commits/89722dd3df5a695dabe7082780eee2ae95b39ccb
89722ddhttps://github.com/modelcontextprotocol/python-sdk/pull/2836/commits/89722dd3df5a695dabe7082780eee2ae95b39ccb
https://github.com/maxisbey
Return METHOD_NOT_FOUND for requests with unknown methodshttps://github.com/modelcontextprotocol/python-sdk/pull/2836/commits/3230c3f6dd9cca1712bc09b9be321b374e3ff4f4
3230c3fhttps://github.com/modelcontextprotocol/python-sdk/pull/2836/commits/3230c3f6dd9cca1712bc09b9be321b374e3ff4f4
https://github.com/maxisbey
Answer unknown methods with METHOD_NOT_FOUND before the initialize gatehttps://github.com/modelcontextprotocol/python-sdk/pull/2836/commits/4468a7fdd368ba0578df3fb29e6237b4dcd1e5ef
4468a7fhttps://github.com/modelcontextprotocol/python-sdk/pull/2836/commits/4468a7fdd368ba0578df3fb29e6237b4dcd1e5ef
https://github.com/maxisbey
Expose the negotiated protocol version on ServerSessionhttps://github.com/modelcontextprotocol/python-sdk/pull/2836/commits/3789d001a58944976a8cbe1c5e01e4a369b671c5
3789d00https://github.com/modelcontextprotocol/python-sdk/pull/2836/commits/3789d001a58944976a8cbe1c5e01e4a369b671c5
https://github.com/maxisbey
docs: extra fields on MCP types are ignored, not rejectedhttps://github.com/modelcontextprotocol/python-sdk/pull/2836/commits/2374c997e0b585dcdf56d393f329c943e7065a83
2374c99https://github.com/modelcontextprotocol/python-sdk/pull/2836/commits/2374c997e0b585dcdf56d393f329c943e7065a83
https://github.com/maxisbey
Limit the version registry to released protocol versionshttps://github.com/modelcontextprotocol/python-sdk/pull/2836/commits/22176efcd13f6ad9ea79a12ffc4c40bbdac5e194
22176efhttps://github.com/modelcontextprotocol/python-sdk/pull/2836/commits/22176efcd13f6ad9ea79a12ffc4c40bbdac5e194
https://github.com/maxisbey
maxisbeyhttps://github.com/maxisbey
June 11, 2026 14:44https://github.com/modelcontextprotocol/python-sdk/pull/2836#event-26631252028
maxisbeyhttps://github.com/maxisbey
June 11, 2026 14:57https://github.com/modelcontextprotocol/python-sdk/pull/2836#commits-pushed-b978383
https://github.com/maxisbey
docs: record the unknown-method error-code change in the migration guidehttps://github.com/modelcontextprotocol/python-sdk/pull/2836/commits/b97838344709565def2513c1b33a4d7a8f3d35eb
b978383https://github.com/modelcontextprotocol/python-sdk/pull/2836/commits/b97838344709565def2513c1b33a4d7a8f3d35eb
https://github.com/maxisbey
Clarify protocol-version docstrings and tighten new testshttps://github.com/modelcontextprotocol/python-sdk/pull/2836/commits/e1bf53f708fbd5bb5458084c430fff658de00d09
e1bf53fhttps://github.com/modelcontextprotocol/python-sdk/pull/2836/commits/e1bf53f708fbd5bb5458084c430fff658de00d09
https://github.com/maxisbey
Answer any unserved method with METHOD_NOT_FOUND before the initializ…https://github.com/modelcontextprotocol/python-sdk/pull/2836/commits/5dd7e4a26aa5ab93876766ec2a90ad6e9c916b40
5dd7e4ahttps://github.com/modelcontextprotocol/python-sdk/pull/2836/commits/5dd7e4a26aa5ab93876766ec2a90ad6e9c916b40
https://github.com/maxisbey
maxisbeyhttps://github.com/maxisbey
felixweinbergerhttps://github.com/felixweinberger
June 11, 2026 15:20https://github.com/modelcontextprotocol/python-sdk/pull/2836#event-26633124349
https://github.com/felixweinberger
felixweinbergerhttps://github.com/felixweinberger
Jun 11, 2026 https://github.com/modelcontextprotocol/python-sdk/pull/2836#pullrequestreview-4478337180
View reviewed changes https://github.com/modelcontextprotocol/python-sdk/pull/2836/files/5dd7e4a26aa5ab93876766ec2a90ad6e9c916b40
src/mcp/shared/version.pyhttps://github.com/modelcontextprotocol/python-sdk/pull/2836/files/5dd7e4a26aa5ab93876766ec2a90ad6e9c916b40#diff-cbd997f5b52f8757771f4257216d82d29862715947778ae776ec13385baf9184
felixweinbergerhttps://github.com/felixweinberger
Jun 11, 2026https://github.com/modelcontextprotocol/python-sdk/pull/2836#discussion_r3397263765
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/2836
maxisbeyhttps://github.com/maxisbey
Jun 11, 2026https://github.com/modelcontextprotocol/python-sdk/pull/2836#discussion_r3397280081
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/2836
https://github.com/felixweinberger
felixweinbergerhttps://github.com/felixweinberger
Jun 11, 2026 https://github.com/modelcontextprotocol/python-sdk/pull/2836#pullrequestreview-4478343645
View reviewed changes https://github.com/modelcontextprotocol/python-sdk/pull/2836/files/5dd7e4a26aa5ab93876766ec2a90ad6e9c916b40
src/mcp/shared/version.pyhttps://github.com/modelcontextprotocol/python-sdk/pull/2836/files/5dd7e4a26aa5ab93876766ec2a90ad6e9c916b40#diff-cbd997f5b52f8757771f4257216d82d29862715947778ae776ec13385baf9184
felixweinbergerhttps://github.com/felixweinberger
Jun 11, 2026https://github.com/modelcontextprotocol/python-sdk/pull/2836#discussion_r3397274054
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/2836
https://github.com/maxisbey
maxisbeyhttps://github.com/maxisbey
7267818https://github.com/modelcontextprotocol/python-sdk/commit/7267818e44ec41bea169d8499ce205d2e6614753
Jun 11, 2026https://github.com/modelcontextprotocol/python-sdk/pull/2836#event-26634317871
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/2836
https://github.com/maxisbey
maxisbeyhttps://github.com/maxisbey
June 11, 2026 15:47https://github.com/modelcontextprotocol/python-sdk/pull/2836#event-26634319875
https://github.com/maxisbey
maxisbeyhttps://github.com/maxisbey
Jun 11, 2026 https://github.com/modelcontextprotocol/python-sdk/pull/2836#ref-pullrequest-4642346713
[v2] ClientSession runs on JSONRPCDispatcher; BaseSession removed #2838 https://github.com/modelcontextprotocol/python-sdk/pull/2838
https://github.com/anneheartrecord
anneheartrecordhttps://github.com/anneheartrecord
Jun 13, 2026 https://github.com/modelcontextprotocol/python-sdk/pull/2836#ref-pullrequest-4650667722
fix: correlate invalid JSON-RPC envelope errors with the original request id #2852 https://github.com/modelcontextprotocol/python-sdk/pull/2852
https://github.com/apps/github-actions
github-actionshttps://github.com/apps/github-actions
Jun 16, 2026https://github.com/modelcontextprotocol/python-sdk/pull/2836#issuecomment-4723959402
v2.0.0a2https://github.com/modelcontextprotocol/python-sdk/releases/tag/v2.0.0a2
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/2836
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%2F2836
https://github.com/felixweinberger
felixweinberger https://github.com/felixweinberger
https://github.com/modelcontextprotocol/python-sdk/pull/2836/files/5dd7e4a26aa5ab93876766ec2a90ad6e9c916b40
Invalid method names return error code -32602 instead of -32601 https://github.com/modelcontextprotocol/python-sdk/issues/1561
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/2836
https://github.com/maxisbey
https://github.com/felixweinberger
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.