Title: Test foundations (safety nets) · Issue #2905 · modelcontextprotocol/python-sdk · GitHub
Open Graph Title: Test foundations (safety nets) · Issue #2905 · modelcontextprotocol/python-sdk
X Title: Test foundations (safety nets) · Issue #2905 · modelcontextprotocol/python-sdk
Description: The safety net the core reworks rely on: pin today's behaviour so nothing can silently break it, and give every other ticket a way to write tests against the modern path. Zero dependencies — anyone can start today. What's in it Legacy wi...
Open Graph Description: The safety net the core reworks rely on: pin today's behaviour so nothing can silently break it, and give every other ticket a way to write tests against the modern path. Zero dependencies — anyone...
X Description: The safety net the core reworks rely on: pin today's behaviour so nothing can silently break it, and give every other ticket a way to write tests against the modern path. Zero dependencies — an...
Opengraph URL: https://github.com/modelcontextprotocol/python-sdk/issues/2905
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Test foundations (safety nets)","articleBody":"The safety net the core reworks rely on: pin today's behaviour so nothing can silently break it, and give every other ticket a way to write tests against the modern path. Zero dependencies — anyone can start today.\n\n## What's in it\n\n- Legacy wire-protection golden tests: pin the 2025 stateful and `stateless_http=True` paths byte-for-byte (session lifecycle, GET stream, resumability, the literal HTTP 400 error bodies the current transport returns, and the behaviour when no `MCP-Protocol-Version` header is sent), plus negative checks that no 2026 vocabulary leaks onto a 2025 wire.\n- In-memory / DirectDispatcher 2026 parity so other tickets can write end-to-end tests without HTTP.\n- Add the modern sessionless path as a `tests/interaction` connect-fixture leg, so every existing transport-agnostic test re-proves over the 2026 wire mode.\n- Optional: a public-API snapshot test (so accidental surface breaks are loud).\n\n## Conformance\n\n- (test infrastructure — proven by the suite itself staying green through the core reworks)\n\n## Dependencies\n\n- Depends on: none\n\n## References\n\n- [python-sdk tests/interaction](https://github.com/modelcontextprotocol/python-sdk/blob/main/tests/interaction/README.md)\n- [expected-failures baseline](https://github.com/modelcontextprotocol/python-sdk/blob/main/.github/actions/conformance/expected-failures.yml)\n","author":{"url":"https://github.com/maxisbey","@type":"Person","name":"maxisbey"},"datePublished":"2026-06-17T11:12:29.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/2905/python-sdk/issues/2905"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:d08b8908-03f3-05a8-555b-9d3d3943dd97 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E3F6:3E5B83:F02932:15A2C4C:6A589D66 |
| html-safe-nonce | 1e9083aba3bbc4c4e6c1f696bd153e80b5a30fa5bcfc04500538dc8ae9f3cd06 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFM0Y2OjNFNUI4MzpGMDI5MzI6MTVBMkM0Qzo2QTU4OUQ2NiIsInZpc2l0b3JfaWQiOiIyMDg4ODY0NDExNDE0OTk0Mjc4IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 546ee3410b0a24b5bafad3e942e0cacd9e1e1fd975fffad84d86d02a202f1b9f |
| hovercard-subject-tag | issue:4682677282 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/modelcontextprotocol/python-sdk/2905/issue_layout |
| twitter:image | https://opengraph.githubassets.com/a18f1b096800409a587ef8aaff25ec494cd671f406f0f7df27e76d37de996d72/modelcontextprotocol/python-sdk/issues/2905 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/a18f1b096800409a587ef8aaff25ec494cd671f406f0f7df27e76d37de996d72/modelcontextprotocol/python-sdk/issues/2905 |
| og:image:alt | The safety net the core reworks rely on: pin today's behaviour so nothing can silently break it, and give every other ticket a way to write tests against the modern path. Zero dependencies — anyone... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | maxisbey |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5f2a0c7865178af3d91dd9f13b0cdfc3c73a2529c873d2780bb4c01271a57ec6 |
| turbo-cache-control | no-preview |
| 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 |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 8aae7b8d6caacacf5c66eaeb2702d8dc88d85b4a |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width