René's URL Explorer Experiment


Title: Wrap JSONRPC messages with SessionMessage for metadata support by ihrpr · Pull Request #590 · modelcontextprotocol/python-sdk · GitHub

Open Graph Title: Wrap JSONRPC messages with SessionMessage for metadata support by ihrpr · Pull Request #590 · modelcontextprotocol/python-sdk

X Title: Wrap JSONRPC messages with SessionMessage for metadata support by ihrpr · Pull Request #590 · modelcontextprotocol/python-sdk

Description: This PR introduces the SessionMessage type to encapsulate JSONRPC messages with metadata. This change enables clean separation between protocol messages and transport concerns. Problem Previously, memory streams propagated raw JSONRPCMessage objects, which made it difficult to pass transport-specific metadata (like resumption tokens or request correlation IDs) without violating the JSONRPC spec. Proposed solution Introduced a new SessionMessage type that wraps JSONRPCMessage with optional metadata: class SessionMessage: message: JSONRPCMessage metadata: MessageMetadata = None With specialized metadata types: ClientMessageMetadata: Contains resumption_token for client-side resumability and will contain additional fields needed for resumability ServerMessageMetadata: Contains related_request_id for server-side request correlation Changes All memory streams now use SessionMessage instead of raw JSONRPCMessage Session classes extract the underlying JSONRPC message for protocol operations Transport implementations now can use metadata for transport-specific features: NOTE: stacked on top of #587

Open Graph Description: This PR introduces the SessionMessage type to encapsulate JSONRPC messages with metadata. This change enables clean separation between protocol messages and transport concerns. Problem Previously, ...

X Description: This PR introduces the SessionMessage type to encapsulate JSONRPC messages with metadata. This change enables clean separation between protocol messages and transport concerns. Problem Previously, ...

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

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:34af8e88-95ab-1954-0451-45f4b6037723
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id8CF0:1EB3C6:6AAFBC:8C1C69:6A5B33FF
html-safe-nonce22c8c592d205a2c9010f980113c81c817b0e7634a7a6ffa33b813da2d41dbe5b
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4Q0YwOjFFQjNDNjo2QUFGQkM6OEMxQzY5OjZBNUIzM0ZGIiwidmlzaXRvcl9pZCI6Ijc4MTM3OTkwNDIzNjMzNzI1NDMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacdd761e1616f3b489108e03210eca20e53c8a87f02db47c87115df62ff61f6c37
hovercard-subject-tagpull_request:2484394097
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/590/files
twitter:imagehttps://avatars.githubusercontent.com/u/21148364?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/21148364?s=400&v=4
og:image:altThis PR introduces the SessionMessage type to encapsulate JSONRPC messages with metadata. This change enables clean separation between protocol messages and transport concerns. Problem Previously, ...
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/590/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmodelcontextprotocol%2Fpython-sdk%2Fpull%2F590%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%2F590%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/590/files
Reloadhttps://github.com/modelcontextprotocol/python-sdk/pull/590/files
Reloadhttps://github.com/modelcontextprotocol/python-sdk/pull/590/files
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/590/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
ihrprhttps://github.com/ihrpr
mainhttps://github.com/modelcontextprotocol/python-sdk/tree/main
ihrpr/memory-stream-item-typehttps://github.com/modelcontextprotocol/python-sdk/tree/ihrpr/memory-stream-item-type
Conversation 3 https://github.com/modelcontextprotocol/python-sdk/pull/590
Commits 59 https://github.com/modelcontextprotocol/python-sdk/pull/590/commits
Checks 0 https://github.com/modelcontextprotocol/python-sdk/pull/590/checks
Files changed https://github.com/modelcontextprotocol/python-sdk/pull/590/files
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/590/files
Wrap JSONRPC messages with SessionMessage for metadata support https://github.com/modelcontextprotocol/python-sdk/pull/590/files#top
Show all changes 59 commits https://github.com/modelcontextprotocol/python-sdk/pull/590/files
2b95598 initial streamable http server ihrpr Apr 20, 2025 https://github.com/modelcontextprotocol/python-sdk/pull/590/commits/2b9559864b772757f1f4a0f7f0b4f08272829f3b
3d790f8 add request validation and tests ihrpr Apr 20, 2025 https://github.com/modelcontextprotocol/python-sdk/pull/590/commits/3d790f8979bfd43d505151e024433b533376946b
27bc01e session management ihrpr Apr 20, 2025 https://github.com/modelcontextprotocol/python-sdk/pull/590/commits/27bc01ec4bb63f398316ed7648dbc99108e0176f
3c4cf10 terminations of a session ihrpr Apr 20, 2025 https://github.com/modelcontextprotocol/python-sdk/pull/590/commits/3c4cf109c2534306105ed7d656bcfe5eacd0d2c0
bce74b3 fix cleaning up ihrpr Apr 20, 2025 https://github.com/modelcontextprotocol/python-sdk/pull/590/commits/bce74b3e148038a38324d730d5506aac055b6e05
2011579 add happy path test ihrpr Apr 20, 2025 https://github.com/modelcontextprotocol/python-sdk/pull/590/commits/201157912d1d588283ed91fd05567b8b003ef891
2cebf08 tests ihrpr Apr 20, 2025 https://github.com/modelcontextprotocol/python-sdk/pull/590/commits/2cebf087d6b5e965198b8a3bf57248cf8aa7aa31
6c9c320 json mode ihrpr Apr 20, 2025 https://github.com/modelcontextprotocol/python-sdk/pull/590/commits/6c9c320a38654c9145fe326d9e308e2893e8d9e3
ede8cde clean up ihrpr Apr 21, 2025 https://github.com/modelcontextprotocol/python-sdk/pull/590/commits/ede8cde91c938db4a64bcccb78387bc79e713d86
2a3bed8 fix example server ihrpr Apr 21, 2025 https://github.com/modelcontextprotocol/python-sdk/pull/590/commits/2a3bed8e50d19a572ad3fe9a82e2ad347d2d1c57
0456b1b return 405 for get stream ihrpr Apr 21, 2025 https://github.com/modelcontextprotocol/python-sdk/pull/590/commits/0456b1bd1c8f5dd2eaf6650ac8b23413c6614322
97ca48d speed up tests ihrpr Apr 21, 2025 https://github.com/modelcontextprotocol/python-sdk/pull/590/commits/97ca48dc2dd00ca56e99b955c04151084c1d3801
f738cbf stateless implemetation ihrpr Apr 21, 2025 https://github.com/modelcontextprotocol/python-sdk/pull/590/commits/f738cbfca5cb9bb94aabe8e762b71a736e21c33e
92d4287 format ihrpr Apr 21, 2025 https://github.com/modelcontextprotocol/python-sdk/pull/590/commits/92d42875746f8b417b9b981de9ec491e1178c6be
aa9f6e5 uv lock ihrpr Apr 21, 2025 https://github.com/modelcontextprotocol/python-sdk/pull/590/commits/aa9f6e5f3dac9808a830da9ceba17392635a1c42
2fba7f3 Merge branch 'ihrpr/streamablehttp-server' into ihrpr/streamablehttp-… ihrpr Apr 21, 2025 https://github.com/modelcontextprotocol/python-sdk/pull/590/commits/2fba7f30b13f3ed7bf97c5a64a600bcb6385fd76
45723ea simplify readme ihrpr Apr 21, 2025 https://github.com/modelcontextprotocol/python-sdk/pull/590/commits/45723eab97027f50071373c470258cb7c5778854
6b7a616 clean up ihrpr Apr 21, 2025 https://github.com/modelcontextprotocol/python-sdk/pull/590/commits/6b7a616a6e5a51b1ba3102d10693c0dee28bf1d2
b1be691 get sse ihrpr Apr 22, 2025 https://github.com/modelcontextprotocol/python-sdk/pull/590/commits/b1be6913953bebcecd8490b67c542c768321b465
201ec99 uv lock ihrpr Apr 22, 2025 https://github.com/modelcontextprotocol/python-sdk/pull/590/commits/201ec99ce66492db8beaca29802dc6ca1dcbaf80
46ec72d clean up ihrpr Apr 22, 2025 https://github.com/modelcontextprotocol/python-sdk/pull/590/commits/46ec72d0ecdf0b6fe01699c7ccff4d2ed65aa31c
1902abb Merge branch 'ihrpr/streamablehttp-server' into ihrpr/streamablehttp-… ihrpr Apr 22, 2025 https://github.com/modelcontextprotocol/python-sdk/pull/590/commits/1902abb0901e7a1cf3799964ee16d799e21fe207
da1df74 Merge branch 'ihrpr/streamablehttp-stateless' into ihrpr/get-sse ihrpr Apr 22, 2025 https://github.com/modelcontextprotocol/python-sdk/pull/590/commits/da1df749ae2b6a0fede5b362378f1966c9bb3613
c2be5af streamable http client ihrpr Apr 23, 2025 https://github.com/modelcontextprotocol/python-sdk/pull/590/commits/c2be5afdb306a78d78c1d5f538e26a5a9e09c305
9b096dc add comments to server example where we use related_request_id ihrpr Apr 23, 2025 https://github.com/modelcontextprotocol/python-sdk/pull/590/commits/9b096dc558f02d4a903e9215037d302e9554d62a
bbe79c2 Merge branch 'main' into ihrpr/streamablehttp-server ihrpr Apr 23, 2025 https://github.com/modelcontextprotocol/python-sdk/pull/590/commits/bbe79c20da3098b3d761293ca02bc9b1815628dc
a0a9c5b small fixes ihrpr Apr 23, 2025 https://github.com/modelcontextprotocol/python-sdk/pull/590/commits/a0a9c5b4e5f7c6b39118405a3230b9e2bc66175e
a5ac2e0 use mta field for related_request_id ihrpr Apr 23, 2025 https://github.com/modelcontextprotocol/python-sdk/pull/590/commits/a5ac2e09df6df2eda17ea73559004a789a3d1f3c
2e615f3 unrelated test and format ihrpr Apr 23, 2025 https://github.com/modelcontextprotocol/python-sdk/pull/590/commits/2e615f36b7e515ad9efaf2cff46bfc1a2fa00f46
110526d clean up ihrpr Apr 23, 2025 https://github.com/modelcontextprotocol/python-sdk/pull/590/commits/110526d546b38bd7a4dc1479ea5e46a13edea629
7ffd5ba terminate session ihrpr Apr 23, 2025 https://github.com/modelcontextprotocol/python-sdk/pull/590/commits/7ffd5bab401852294aa0306c4e50d4f7a0d7ef89
029ec56 format ihrpr Apr 23, 2025 https://github.com/modelcontextprotocol/python-sdk/pull/590/commits/029ec56fec5d342e874afb42522fd17a328c7831
cae32e2 Merge branch 'ihrpr/streamablehttp-server' into ihrpr/streamablehttp-… ihrpr Apr 25, 2025 https://github.com/modelcontextprotocol/python-sdk/pull/590/commits/cae32e2288e35ee533aa6ad21220cb6f590bef6a
58745c7 remove useless sleep ihrpr Apr 25, 2025 https://github.com/modelcontextprotocol/python-sdk/pull/590/commits/58745c7d977c708e4241b1c60df03d3c2204698b
1387929 rename require_initialization to standalone_mode ihrpr Apr 25, 2025 https://github.com/modelcontextprotocol/python-sdk/pull/590/commits/138792978c7249e93a43157a9598a72dd04ed3c4
bccff75 Merge branch 'ihrpr/streamablehttp-stateless' into ihrpr/get-sse ihrpr Apr 25, 2025 https://github.com/modelcontextprotocol/python-sdk/pull/590/commits/bccff75f997338a7aa50c1b7e1a0372830a9e894
dd007d7 Merge branch 'ihrpr/get-sse' into ihrpr/client ihrpr Apr 25, 2025 https://github.com/modelcontextprotocol/python-sdk/pull/590/commits/dd007d7f01e6fc9a3c4ee2a33ca92a976cd3a54b
6482120 remove redundant check for initialize and session ihrpr Apr 25, 2025 https://github.com/modelcontextprotocol/python-sdk/pull/590/commits/6482120530b9ed70a48cf3c433822a74fd448020
9a6da2e ruff check ihrpr Apr 25, 2025 https://github.com/modelcontextprotocol/python-sdk/pull/590/commits/9a6da2ed1d8ce419fe3fdc9d1fa9b739bf1fa272
b957fad Merge branch 'ihrpr/get-sse' into ihrpr/client ihrpr Apr 25, 2025 https://github.com/modelcontextprotocol/python-sdk/pull/590/commits/b957fada1ce1c535d14622a104f1115e00c86fd9
3f5fd7e support for resumability - server ihrpr Apr 25, 2025 https://github.com/modelcontextprotocol/python-sdk/pull/590/commits/3f5fd7ea6bedcf73f4b038ddbfabcbd6e9abbd86
b193242 format ihrpr Apr 25, 2025 https://github.com/modelcontextprotocol/python-sdk/pull/590/commits/b1932422b4bcd6c54f80bdb88c322a6525356955
6110435 remove print ihrpr Apr 25, 2025 https://github.com/modelcontextprotocol/python-sdk/pull/590/commits/611043558716caf1b99b28d5a6a5adbd23d92f25
e087283 rename files to follow python naming ihrpr Apr 25, 2025 https://github.com/modelcontextprotocol/python-sdk/pull/590/commits/e0872835cf08c894a20938144682aa1237832ded
08247c4 update to use time delta in client ihrpr Apr 25, 2025 https://github.com/modelcontextprotocol/python-sdk/pull/590/commits/08247c420d12a4cc1723fd64cd1adf7051f7d233
0484dfb refactor ihrpr Apr 25, 2025 https://github.com/modelcontextprotocol/python-sdk/pull/590/commits/0484dfbfbd8f8fe1784b4db9d30776f356d81fe2
88ff2ba Merge branch 'ihrpr/client' into ihrpr/resumability-server ihrpr Apr 25, 2025 https://github.com/modelcontextprotocol/python-sdk/pull/590/commits/88ff2ba46fb3d01d7cf8f57e444c4d1036657b5d
5757f6c small fixes ihrpr Apr 25, 2025 https://github.com/modelcontextprotocol/python-sdk/pull/590/commits/5757f6cbcfc9798ef805e2992e4d252f16ea0910
ee28ad8 improve event store example implementation ihrpr Apr 25, 2025 https://github.com/modelcontextprotocol/python-sdk/pull/590/commits/ee28ad83fdf15e547c07ec2f5b75fcd98f995cd9
5dbddeb refactor _create_event_data ihrpr Apr 25, 2025 https://github.com/modelcontextprotocol/python-sdk/pull/590/commits/5dbddeb16c4935deec61e8e955ada5f5a3a5f6e6
8650c77 add session message ihrpr Apr 27, 2025 https://github.com/modelcontextprotocol/python-sdk/pull/590/commits/8650c77269e09adb04a894df378430db8bb924b0
ff70bd6 Merge branch 'main' into ihrpr/streamablehttp-server ihrpr May 2, 2025 https://github.com/modelcontextprotocol/python-sdk/pull/590/commits/ff70bd6746ff25b9d635bb35acfd086052536ef1
179fbc8 Merge branch 'ihrpr/streamablehttp-server' into ihrpr/streamablehttp-… ihrpr May 2, 2025 https://github.com/modelcontextprotocol/python-sdk/pull/590/commits/179fbc8e951b4f9de2d30204493ceb4b93f6b98f
a979864 Merge branch 'ihrpr/streamablehttp-stateless' into ihrpr/get-sse ihrpr May 2, 2025 https://github.com/modelcontextprotocol/python-sdk/pull/590/commits/a979864d36d96c61de5d2fc7104f1121952ddbce
11b7dd9 Merge branch 'ihrpr/get-sse' into ihrpr/client ihrpr May 2, 2025 https://github.com/modelcontextprotocol/python-sdk/pull/590/commits/11b7dd98f6192cba76418f0af6461488967d3eeb
67a899c Merge branch 'ihrpr/client' into ihrpr/resumability-server ihrpr May 2, 2025 https://github.com/modelcontextprotocol/python-sdk/pull/590/commits/67a899c9e85bb6863c94c35649380ae9467b01e0
c3e0ff3 Merge branch 'ihrpr/resumability-server' into ihrpr/memory-stream-ite… ihrpr May 2, 2025 https://github.com/modelcontextprotocol/python-sdk/pull/590/commits/c3e0ff38590347cf39fa7f944ca76ae22bd4c6e8
e06e3a5 fixes after merge ihrpr May 2, 2025 https://github.com/modelcontextprotocol/python-sdk/pull/590/commits/e06e3a596c45a389707951dcf73798b311b260df
3728976 Merge branch 'main' into ihrpr/memory-stream-item-type ihrpr May 2, 2025 https://github.com/modelcontextprotocol/python-sdk/pull/590/commits/37289763d277a2e0a2ab46976eaae7ca4e88feeb
Clear filters https://github.com/modelcontextprotocol/python-sdk/pull/590/files
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/590/files
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/590/files
__main__.py https://github.com/modelcontextprotocol/python-sdk/pull/590/files#diff-acedd8b44e9fb1a288cc95191fc773e99af0b75edaa11c78295dad3147cb7eea
session.py https://github.com/modelcontextprotocol/python-sdk/pull/590/files#diff-634d1abcb8bda1a784f31e3431a10124e387f487dd243a54244515b4972aa0ee
sse.py https://github.com/modelcontextprotocol/python-sdk/pull/590/files#diff-41ed2e8548ae223801c0a37a6b50ce913e24f0e660bbbc2ddd91686820c86336
__init__.py https://github.com/modelcontextprotocol/python-sdk/pull/590/files#diff-2d78210c1f729556ae6d443eb0e255394d786171d32842ff2f8dea90d096da39
streamable_http.py https://github.com/modelcontextprotocol/python-sdk/pull/590/files#diff-e8c18a3067a9b157c5c39a947f53d395afeb00e7026dad2d5a279011da943b5e
websocket.py https://github.com/modelcontextprotocol/python-sdk/pull/590/files#diff-8f9b2dd9cb0b005e59cbf396efef3f1c4bf00192414df9443339697ff60fc340
server.py https://github.com/modelcontextprotocol/python-sdk/pull/590/files#diff-b21bf5e21c058ccfddb404c209f2d4288e4f32b121111ffc9d466638631d13e4
session.py https://github.com/modelcontextprotocol/python-sdk/pull/590/files#diff-9a603a2587011a188aa76ca19a32fcd343a253516325fbcfb4f7bfb6a814634c
sse.py https://github.com/modelcontextprotocol/python-sdk/pull/590/files#diff-db3d89720f05f9c8a375c9ce008a6b477be25dccabca86a7d422814c5ab3f12c
stdio.py https://github.com/modelcontextprotocol/python-sdk/pull/590/files#diff-19a44750677a645222700b9984d14682f626518ae045cf909c4daf665cb3264e
streamable_http.py https://github.com/modelcontextprotocol/python-sdk/pull/590/files#diff-0119e4c1bbf2fde7ba89b9c9f5bc472ccc2332f84e96e47cf9e45cebef801da3
websocket.py https://github.com/modelcontextprotocol/python-sdk/pull/590/files#diff-50e548f9338e642984d43370856447086548f28b9f0c2732988e64e7a56d2b31
memory.py https://github.com/modelcontextprotocol/python-sdk/pull/590/files#diff-fda62e83f7fbe11b6291a8eb980526a6465853fcc15dba2269425cd3de0801dc
message.py https://github.com/modelcontextprotocol/python-sdk/pull/590/files#diff-e87607af2a5ca4eeaf91e471c711340e954899e1504ebb1fcc981afe4639bc70
session.py https://github.com/modelcontextprotocol/python-sdk/pull/590/files#diff-aaa1596dd4db91f5cd7f743c8afbe58596daf01a2ecec4a0024768f7409fb1dc
test_session.py https://github.com/modelcontextprotocol/python-sdk/pull/590/files#diff-623490a9c2dd576cc59e89f8d51f64acfffdeaad940e0bd4a0a51a50bc30d92d
test_stdio.py https://github.com/modelcontextprotocol/python-sdk/pull/590/files#diff-49f66b09e4d89b29b440c955c429fe948dbcc3bbb08fffb504cf40be24382352
test_192_request_id.py https://github.com/modelcontextprotocol/python-sdk/pull/590/files#diff-544adf255ae3b6d59c63912723666f0e5cd700e1c1a1cc5009a74133332cd83e
test_lifespan.py https://github.com/modelcontextprotocol/python-sdk/pull/590/files#diff-1698ae8330ce4b282795333fd5e113b02a2a9923d4d9af2c58c8ea582dffe7c2
test_lowlevel_tool_annotations.py https://github.com/modelcontextprotocol/python-sdk/pull/590/files#diff-d6a45a1ed1f4ebc14198da5fe66dab121d6fa342c6bda5a0d4d53b8696a84d75
test_session.py https://github.com/modelcontextprotocol/python-sdk/pull/590/files#diff-ed22c8fef52dc8c1d840dc0825bc375c48b67dcc2b468bab084aded3af06fdcf
test_stdio.py https://github.com/modelcontextprotocol/python-sdk/pull/590/files#diff-3e62be39a5c1d8b8dfe922d017c0fae7b023fa1ffac872a0e046f13ef8ca899a
src/mcp/client/__main__.pyhttps://github.com/modelcontextprotocol/python-sdk/pull/590/files#diff-acedd8b44e9fb1a288cc95191fc773e99af0b75edaa11c78295dad3147cb7eea
View file https://github.com/modelcontextprotocol/python-sdk/blob/37289763d277a2e0a2ab46976eaae7ca4e88feeb/src/mcp/client/__main__.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/modelcontextprotocol/python-sdk/pull/590/{{ revealButtonHref }}
https://github.com/modelcontextprotocol/python-sdk/pull/590/files#diff-acedd8b44e9fb1a288cc95191fc773e99af0b75edaa11c78295dad3147cb7eea
https://github.com/modelcontextprotocol/python-sdk/pull/590/files#diff-acedd8b44e9fb1a288cc95191fc773e99af0b75edaa11c78295dad3147cb7eea
https://github.com/modelcontextprotocol/python-sdk/pull/590/files#diff-acedd8b44e9fb1a288cc95191fc773e99af0b75edaa11c78295dad3147cb7eea
src/mcp/client/session.pyhttps://github.com/modelcontextprotocol/python-sdk/pull/590/files#diff-634d1abcb8bda1a784f31e3431a10124e387f487dd243a54244515b4972aa0ee
View file https://github.com/modelcontextprotocol/python-sdk/blob/37289763d277a2e0a2ab46976eaae7ca4e88feeb/src/mcp/client/session.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/modelcontextprotocol/python-sdk/pull/590/{{ revealButtonHref }}
https://github.com/modelcontextprotocol/python-sdk/pull/590/files#diff-634d1abcb8bda1a784f31e3431a10124e387f487dd243a54244515b4972aa0ee
https://github.com/modelcontextprotocol/python-sdk/pull/590/files#diff-634d1abcb8bda1a784f31e3431a10124e387f487dd243a54244515b4972aa0ee
https://github.com/modelcontextprotocol/python-sdk/pull/590/files#diff-634d1abcb8bda1a784f31e3431a10124e387f487dd243a54244515b4972aa0ee
https://github.com/modelcontextprotocol/python-sdk/pull/590/files#diff-634d1abcb8bda1a784f31e3431a10124e387f487dd243a54244515b4972aa0ee
src/mcp/client/sse.pyhttps://github.com/modelcontextprotocol/python-sdk/pull/590/files#diff-41ed2e8548ae223801c0a37a6b50ce913e24f0e660bbbc2ddd91686820c86336
View file https://github.com/modelcontextprotocol/python-sdk/blob/37289763d277a2e0a2ab46976eaae7ca4e88feeb/src/mcp/client/sse.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/modelcontextprotocol/python-sdk/pull/590/{{ revealButtonHref }}
https://github.com/modelcontextprotocol/python-sdk/pull/590/files#diff-41ed2e8548ae223801c0a37a6b50ce913e24f0e660bbbc2ddd91686820c86336
https://github.com/modelcontextprotocol/python-sdk/pull/590/files#diff-41ed2e8548ae223801c0a37a6b50ce913e24f0e660bbbc2ddd91686820c86336
https://github.com/modelcontextprotocol/python-sdk/pull/590/files#diff-41ed2e8548ae223801c0a37a6b50ce913e24f0e660bbbc2ddd91686820c86336
https://github.com/modelcontextprotocol/python-sdk/pull/590/files#diff-41ed2e8548ae223801c0a37a6b50ce913e24f0e660bbbc2ddd91686820c86336
https://github.com/modelcontextprotocol/python-sdk/pull/590/files#diff-41ed2e8548ae223801c0a37a6b50ce913e24f0e660bbbc2ddd91686820c86336
https://github.com/modelcontextprotocol/python-sdk/pull/590/files#diff-41ed2e8548ae223801c0a37a6b50ce913e24f0e660bbbc2ddd91686820c86336
src/mcp/client/stdio/__init__.pyhttps://github.com/modelcontextprotocol/python-sdk/pull/590/files#diff-2d78210c1f729556ae6d443eb0e255394d786171d32842ff2f8dea90d096da39
View file https://github.com/modelcontextprotocol/python-sdk/blob/37289763d277a2e0a2ab46976eaae7ca4e88feeb/src/mcp/client/stdio/__init__.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/modelcontextprotocol/python-sdk/pull/590/{{ revealButtonHref }}
https://github.com/modelcontextprotocol/python-sdk/pull/590/files#diff-2d78210c1f729556ae6d443eb0e255394d786171d32842ff2f8dea90d096da39
https://github.com/modelcontextprotocol/python-sdk/pull/590/files#diff-2d78210c1f729556ae6d443eb0e255394d786171d32842ff2f8dea90d096da39
https://github.com/modelcontextprotocol/python-sdk/pull/590/files#diff-2d78210c1f729556ae6d443eb0e255394d786171d32842ff2f8dea90d096da39
https://github.com/modelcontextprotocol/python-sdk/pull/590/files#diff-2d78210c1f729556ae6d443eb0e255394d786171d32842ff2f8dea90d096da39
https://github.com/modelcontextprotocol/python-sdk/pull/590/files#diff-2d78210c1f729556ae6d443eb0e255394d786171d32842ff2f8dea90d096da39
https://github.com/modelcontextprotocol/python-sdk/pull/590/files#diff-2d78210c1f729556ae6d443eb0e255394d786171d32842ff2f8dea90d096da39
https://github.com/modelcontextprotocol/python-sdk/pull/590/files#diff-2d78210c1f729556ae6d443eb0e255394d786171d32842ff2f8dea90d096da39
src/mcp/client/streamable_http.pyhttps://github.com/modelcontextprotocol/python-sdk/pull/590/files#diff-e8c18a3067a9b157c5c39a947f53d395afeb00e7026dad2d5a279011da943b5e
View file https://github.com/modelcontextprotocol/python-sdk/blob/37289763d277a2e0a2ab46976eaae7ca4e88feeb/src/mcp/client/streamable_http.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/modelcontextprotocol/python-sdk/pull/590/{{ revealButtonHref }}
https://github.com/modelcontextprotocol/python-sdk/pull/590/files#diff-e8c18a3067a9b157c5c39a947f53d395afeb00e7026dad2d5a279011da943b5e
https://github.com/modelcontextprotocol/python-sdk/pull/590/files#diff-e8c18a3067a9b157c5c39a947f53d395afeb00e7026dad2d5a279011da943b5e
https://github.com/modelcontextprotocol/python-sdk/pull/590/files#diff-e8c18a3067a9b157c5c39a947f53d395afeb00e7026dad2d5a279011da943b5e
https://github.com/modelcontextprotocol/python-sdk/pull/590/files#diff-e8c18a3067a9b157c5c39a947f53d395afeb00e7026dad2d5a279011da943b5e
https://github.com/modelcontextprotocol/python-sdk/pull/590/files#diff-e8c18a3067a9b157c5c39a947f53d395afeb00e7026dad2d5a279011da943b5e
https://github.com/modelcontextprotocol/python-sdk/pull/590/files#diff-e8c18a3067a9b157c5c39a947f53d395afeb00e7026dad2d5a279011da943b5e
https://github.com/modelcontextprotocol/python-sdk/pull/590/files#diff-e8c18a3067a9b157c5c39a947f53d395afeb00e7026dad2d5a279011da943b5e
https://github.com/modelcontextprotocol/python-sdk/pull/590/files#diff-e8c18a3067a9b157c5c39a947f53d395afeb00e7026dad2d5a279011da943b5e
https://github.com/modelcontextprotocol/python-sdk/pull/590/files#diff-e8c18a3067a9b157c5c39a947f53d395afeb00e7026dad2d5a279011da943b5e
https://github.com/modelcontextprotocol/python-sdk/pull/590/files#diff-e8c18a3067a9b157c5c39a947f53d395afeb00e7026dad2d5a279011da943b5e
https://github.com/modelcontextprotocol/python-sdk/pull/590/files#diff-e8c18a3067a9b157c5c39a947f53d395afeb00e7026dad2d5a279011da943b5e
src/mcp/client/websocket.pyhttps://github.com/modelcontextprotocol/python-sdk/pull/590/files#diff-8f9b2dd9cb0b005e59cbf396efef3f1c4bf00192414df9443339697ff60fc340
View file https://github.com/modelcontextprotocol/python-sdk/blob/37289763d277a2e0a2ab46976eaae7ca4e88feeb/src/mcp/client/websocket.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/modelcontextprotocol/python-sdk/pull/590/{{ revealButtonHref }}
https://github.com/modelcontextprotocol/python-sdk/pull/590/files#diff-8f9b2dd9cb0b005e59cbf396efef3f1c4bf00192414df9443339697ff60fc340
https://github.com/modelcontextprotocol/python-sdk/pull/590/files#diff-8f9b2dd9cb0b005e59cbf396efef3f1c4bf00192414df9443339697ff60fc340
https://github.com/modelcontextprotocol/python-sdk/pull/590/files#diff-8f9b2dd9cb0b005e59cbf396efef3f1c4bf00192414df9443339697ff60fc340
https://github.com/modelcontextprotocol/python-sdk/pull/590/files#diff-8f9b2dd9cb0b005e59cbf396efef3f1c4bf00192414df9443339697ff60fc340
https://github.com/modelcontextprotocol/python-sdk/pull/590/files#diff-8f9b2dd9cb0b005e59cbf396efef3f1c4bf00192414df9443339697ff60fc340
https://github.com/modelcontextprotocol/python-sdk/pull/590/files#diff-8f9b2dd9cb0b005e59cbf396efef3f1c4bf00192414df9443339697ff60fc340
src/mcp/server/lowlevel/server.pyhttps://github.com/modelcontextprotocol/python-sdk/pull/590/files#diff-b21bf5e21c058ccfddb404c209f2d4288e4f32b121111ffc9d466638631d13e4
View file https://github.com/modelcontextprotocol/python-sdk/blob/37289763d277a2e0a2ab46976eaae7ca4e88feeb/src/mcp/server/lowlevel/server.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/modelcontextprotocol/python-sdk/pull/590/{{ revealButtonHref }}
https://github.com/modelcontextprotocol/python-sdk/pull/590/files#diff-b21bf5e21c058ccfddb404c209f2d4288e4f32b121111ffc9d466638631d13e4
https://github.com/modelcontextprotocol/python-sdk/pull/590/files#diff-b21bf5e21c058ccfddb404c209f2d4288e4f32b121111ffc9d466638631d13e4
https://github.com/modelcontextprotocol/python-sdk/pull/590/files#diff-b21bf5e21c058ccfddb404c209f2d4288e4f32b121111ffc9d466638631d13e4
https://github.com/modelcontextprotocol/python-sdk/pull/590/files#diff-b21bf5e21c058ccfddb404c209f2d4288e4f32b121111ffc9d466638631d13e4
src/mcp/server/session.pyhttps://github.com/modelcontextprotocol/python-sdk/pull/590/files#diff-9a603a2587011a188aa76ca19a32fcd343a253516325fbcfb4f7bfb6a814634c
View file https://github.com/modelcontextprotocol/python-sdk/blob/37289763d277a2e0a2ab46976eaae7ca4e88feeb/src/mcp/server/session.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/modelcontextprotocol/python-sdk/pull/590/{{ revealButtonHref }}
https://github.com/modelcontextprotocol/python-sdk/pull/590/files#diff-9a603a2587011a188aa76ca19a32fcd343a253516325fbcfb4f7bfb6a814634c
https://github.com/modelcontextprotocol/python-sdk/pull/590/files#diff-9a603a2587011a188aa76ca19a32fcd343a253516325fbcfb4f7bfb6a814634c
https://github.com/modelcontextprotocol/python-sdk/pull/590/files#diff-9a603a2587011a188aa76ca19a32fcd343a253516325fbcfb4f7bfb6a814634c
https://github.com/modelcontextprotocol/python-sdk/pull/590/files#diff-9a603a2587011a188aa76ca19a32fcd343a253516325fbcfb4f7bfb6a814634c
src/mcp/server/sse.pyhttps://github.com/modelcontextprotocol/python-sdk/pull/590/files#diff-db3d89720f05f9c8a375c9ce008a6b477be25dccabca86a7d422814c5ab3f12c
View file https://github.com/modelcontextprotocol/python-sdk/blob/37289763d277a2e0a2ab46976eaae7ca4e88feeb/src/mcp/server/sse.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/modelcontextprotocol/python-sdk/pull/590/{{ revealButtonHref }}
https://github.com/modelcontextprotocol/python-sdk/pull/590/files#diff-db3d89720f05f9c8a375c9ce008a6b477be25dccabca86a7d422814c5ab3f12c
https://github.com/modelcontextprotocol/python-sdk/pull/590/files#diff-db3d89720f05f9c8a375c9ce008a6b477be25dccabca86a7d422814c5ab3f12c
https://github.com/modelcontextprotocol/python-sdk/pull/590/files#diff-db3d89720f05f9c8a375c9ce008a6b477be25dccabca86a7d422814c5ab3f12c
https://github.com/modelcontextprotocol/python-sdk/pull/590/files#diff-db3d89720f05f9c8a375c9ce008a6b477be25dccabca86a7d422814c5ab3f12c
https://github.com/modelcontextprotocol/python-sdk/pull/590/files#diff-db3d89720f05f9c8a375c9ce008a6b477be25dccabca86a7d422814c5ab3f12c
https://github.com/modelcontextprotocol/python-sdk/pull/590/files#diff-db3d89720f05f9c8a375c9ce008a6b477be25dccabca86a7d422814c5ab3f12c
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/590/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.