René's URL Explorer Experiment


Title: fix: preserve typed Context in resource and prompt handlers by morluto · Pull Request #3236 · modelcontextprotocol/python-sdk · GitHub

Open Graph Title: fix: preserve typed Context in resource and prompt handlers by morluto · Pull Request #3236 · modelcontextprotocol/python-sdk

X Title: fix: preserve typed Context in resource and prompt handlers by morluto · Pull Request #3236 · modelcontextprotocol/python-sdk

Description: Fixes #3235. Problem The server creates one live Context object for each request. That object carries private state linking it to the active request and session. Resource-template and prompt handlers are wrapped with Pydantic's validate_call. When a handler uses the precise Context[LifespanState] annotation, Pydantic reconstructs the context as a new model instead of passing through the server-created object. Private request state is not part of that reconstructed model, so ctx.request_context, ctx.session, and related properties raise: ValueError: Context is not available outside of a request Before Client arguments ─┐ Live Context ──────┴─► Pydantic validation ─► New Context ─► Handler error │ └─ private request state is missing After Client arguments ─────► Pydantic validation ─┐ Live Context ─────────► pass through ─────────┴─► Handler Bare Context happened to pass through unchanged, so the failure appeared only when resource or prompt handlers used Context[LifespanState]. Tool handlers were unaffected because they use a different argument-validation path. Change The validation wrapper now marks only the SDK-injected context parameter with Pydantic's SkipValidation. Caller-supplied arguments still receive the existing validation and coercion, including parameters collected through **kwargs, while the original live context reaches synchronous and asynchronous handlers unchanged. The wrapper restores the handler's public signature after Pydantic builds its validator, so introspection and generated schemas continue to expose the original types. The lifespan and migration documentation now describes Context[LifespanState] as supported across tools, resource templates, and prompts; static resources do not support context injection. Regression coverage The context-injection tests now use parameterized Context and access live request state through an asynchronous resource handler and a synchronous prompt handler. A resource-template regression also verifies that the exact context object is preserved while URI parameters continue to flow through **kwargs. On the affected base revision, these tests fail when the reconstructed context first accesses its request state. Validation uv run coverage run -m pytest -n auto — 5,585 passed, 8 skipped, 1 xfailed uv run coverage report — 100.00% statement and branch coverage uv run ruff format --check . — passed uv run ruff check . — passed uv run pyright — passed uvx --from pre-commit pre-commit run markdownlint --files docs/handlers/lifespan.md docs/migration.md — passed AI assistance was used to investigate and prepare this contribution; the final diff and validation results were reviewed before submission.

Open Graph Description: Fixes #3235. Problem The server creates one live Context object for each request. That object carries private state linking it to the active request and session. Resource-template and prompt handle...

X Description: Fixes #3235. Problem The server creates one live Context object for each request. That object carries private state linking it to the active request and session. Resource-template and prompt handle...

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

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.114.3

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:ae3700d8-7779-6adb-c5ec-dd718f8aa658
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idE210:C8426:11F39CD:18A1BB2:6B056818
html-safe-nonceb0062cab57741cf4c4a2b0632a54a9ac436b32324137111775bd0082999b15e9
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMjEwOkM4NDI2OjExRjM5Q0Q6MThBMUJCMjo2QjA1NjgxOCIsInZpc2l0b3JfaWQiOiI4MDYxOTk5OTQ5NjY1MzYzOTkyIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac20c49c33cc2d78eac8d3411b03da21886a474d9bf50aa53155cfd8f358987eea
hovercard-subject-tagpull_request:4185316395
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/3236/files
twitter:imagehttps://avatars.githubusercontent.com/u/76467478?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/76467478?s=400&v=4
og:image:altFixes #3235. Problem The server creates one live Context object for each request. That object carries private state linking it to the active request and session. Resource-template and prompt handle...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None1be5cc09efdd4833c24a4ffa71d698e3999fa09071e159fe14c2c08e41c98331
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
releasef6d69234e682c947a48074340e69d45d5901de31
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/modelcontextprotocol/python-sdk/pull/3236/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmodelcontextprotocol%2Fpython-sdk%2Fpull%2F3236%2Ffiles
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
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
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://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
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmodelcontextprotocol%2Fpython-sdk%2Fpull%2F3236%2Ffiles
Sign uphttps://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/3236/files
Reloadhttps://github.com/modelcontextprotocol/python-sdk/pull/3236/files
Reloadhttps://github.com/modelcontextprotocol/python-sdk/pull/3236/files
modelcontextprotocolhttps://github.com/modelcontextprotocol
python-sdkhttps://github.com/modelcontextprotocol/python-sdk
Codehttps://github.com/modelcontextprotocol/python-sdk
Issues320 (320)https://github.com/modelcontextprotocol/python-sdk/issues
Pull requests112 (112)https://github.com/modelcontextprotocol/python-sdk/pulls
Actionshttps://github.com/modelcontextprotocol/python-sdk/actions
Projectshttps://github.com/modelcontextprotocol/python-sdk/projects
Security and quality12 (12)https://github.com/modelcontextprotocol/python-sdk/security
Insightshttps://github.com/modelcontextprotocol/python-sdk/insights
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
morlutohttps://github.com/morluto
modelcontextprotocol:mainhttps://github.com/modelcontextprotocol/python-sdk/tree/main
morluto:fix/template-resource-contexthttps://github.com/morluto/python-sdk/tree/fix/template-resource-context
Conversation 14 https://github.com/modelcontextprotocol/python-sdk/pull/3236
Commits 5 https://github.com/modelcontextprotocol/python-sdk/pull/3236/commits
Checks 35 https://github.com/modelcontextprotocol/python-sdk/pull/3236/checks
Files changed https://github.com/modelcontextprotocol/python-sdk/pull/3236/files
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/3236/files
fix: preserve typed Context in resource and prompt handlers https://github.com/modelcontextprotocol/python-sdk/pull/3236/files#top
Show all changes 5 commits https://github.com/modelcontextprotocol/python-sdk/pull/3236/files
823a081 Fix typed Context in resources and prompts morluto Aug 1, 2026 https://github.com/modelcontextprotocol/python-sdk/pull/3236/commits/823a081ed699f371299c05b5731d9bcad6e8cbd5
5029af5 Cover context injection fallback paths morluto Aug 1, 2026 https://github.com/modelcontextprotocol/python-sdk/pull/3236/commits/5029af5033b35375b77b21d2ee33987f58c881f2
543c733 Clarify context support for resource templates morluto Aug 1, 2026 https://github.com/modelcontextprotocol/python-sdk/pull/3236/commits/543c73359255daddc738d3566213de85e6e47e76
34816ec Strengthen typed context regression coverage morluto Aug 1, 2026 https://github.com/modelcontextprotocol/python-sdk/pull/3236/commits/34816eccf9e129cda976d8b25d975973b0116ff7
595c442 Simplify injected context validation morluto Aug 1, 2026 https://github.com/modelcontextprotocol/python-sdk/pull/3236/commits/595c442c2d76d1055d1f8c6f499a2ca7f31d01f4
Clear filters https://github.com/modelcontextprotocol/python-sdk/pull/3236/files
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/3236/files
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/3236/files
context.md https://github.com/modelcontextprotocol/python-sdk/pull/3236/files#diff-36dba329d9378a6db53f5d0e6358f068c5959dd774dd76908d04c1a9e305091f
lifespan.md https://github.com/modelcontextprotocol/python-sdk/pull/3236/files#diff-424eaa84baf57af255e7e909f4b23da75f930cb628efae7377aade6422923c1f
migration.md https://github.com/modelcontextprotocol/python-sdk/pull/3236/files#diff-758ba107a728fccfdf0d098b2c06ded59127dd53ea287d630f72fb51040bc72d
base.py https://github.com/modelcontextprotocol/python-sdk/pull/3236/files#diff-5df96c06127fae8e6f84e304e9bce59568220d3364e7493ea839527627ac4571
templates.py https://github.com/modelcontextprotocol/python-sdk/pull/3236/files#diff-44c89eefb9a0f376f6c3004ad4a44828e0403a96114fe008c0dd7a708abde7cc
context_injection.py https://github.com/modelcontextprotocol/python-sdk/pull/3236/files#diff-1b4ab7dd31f66da1830d323a66bff21b9b1a8d6d9220bc9f73bf2daee3bf3382
test_lifespan.py https://github.com/modelcontextprotocol/python-sdk/pull/3236/files#diff-9df4fe606c237af28d8005a7af4381c5a6c1bddc4e3c3f3171aa97c123d94f95
test_resource_template.py https://github.com/modelcontextprotocol/python-sdk/pull/3236/files#diff-1984957e9d1e3a3e525ce9a3707676cae0b81fd98ba0866abf8ce087e1c443b6
test_server.py https://github.com/modelcontextprotocol/python-sdk/pull/3236/files#diff-c191383f010475fc22bf69d35f14f16d7e45098b05a1a0f03ad66d6c151d1f34
docs/handlers/context.mdhttps://github.com/modelcontextprotocol/python-sdk/pull/3236/files#diff-36dba329d9378a6db53f5d0e6358f068c5959dd774dd76908d04c1a9e305091f
View file https://github.com/morluto/python-sdk/blob/595c442c2d76d1055d1f8c6f499a2ca7f31d01f4/docs/handlers/context.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/modelcontextprotocol/python-sdk/pull/3236/{{ revealButtonHref }}
https://github.com/modelcontextprotocol/python-sdk/pull/3236/files#diff-36dba329d9378a6db53f5d0e6358f068c5959dd774dd76908d04c1a9e305091f
https://github.com/modelcontextprotocol/python-sdk/pull/3236/files#diff-36dba329d9378a6db53f5d0e6358f068c5959dd774dd76908d04c1a9e305091f
https://github.com/modelcontextprotocol/python-sdk/pull/3236/files#diff-36dba329d9378a6db53f5d0e6358f068c5959dd774dd76908d04c1a9e305091f
https://github.com/modelcontextprotocol/python-sdk/pull/3236/files#diff-36dba329d9378a6db53f5d0e6358f068c5959dd774dd76908d04c1a9e305091f
docs/handlers/lifespan.mdhttps://github.com/modelcontextprotocol/python-sdk/pull/3236/files#diff-424eaa84baf57af255e7e909f4b23da75f930cb628efae7377aade6422923c1f
View file https://github.com/morluto/python-sdk/blob/595c442c2d76d1055d1f8c6f499a2ca7f31d01f4/docs/handlers/lifespan.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/modelcontextprotocol/python-sdk/pull/3236/{{ revealButtonHref }}
https://github.com/modelcontextprotocol/python-sdk/pull/3236/files#diff-424eaa84baf57af255e7e909f4b23da75f930cb628efae7377aade6422923c1f
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/3236/files
https://github.com/modelcontextprotocol/python-sdk/pull/3236/files#diff-424eaa84baf57af255e7e909f4b23da75f930cb628efae7377aade6422923c1f
https://github.com/modelcontextprotocol/python-sdk/pull/3236/files#diff-424eaa84baf57af255e7e909f4b23da75f930cb628efae7377aade6422923c1f
https://github.com/modelcontextprotocol/python-sdk/pull/3236/files#diff-424eaa84baf57af255e7e909f4b23da75f930cb628efae7377aade6422923c1f
docs/migration.mdhttps://github.com/modelcontextprotocol/python-sdk/pull/3236/files#diff-758ba107a728fccfdf0d098b2c06ded59127dd53ea287d630f72fb51040bc72d
View file https://github.com/morluto/python-sdk/blob/595c442c2d76d1055d1f8c6f499a2ca7f31d01f4/docs/migration.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/modelcontextprotocol/python-sdk/pull/3236/{{ revealButtonHref }}
https://github.com/modelcontextprotocol/python-sdk/pull/3236/files#diff-758ba107a728fccfdf0d098b2c06ded59127dd53ea287d630f72fb51040bc72d
https://github.com/modelcontextprotocol/python-sdk/pull/3236/files#diff-758ba107a728fccfdf0d098b2c06ded59127dd53ea287d630f72fb51040bc72d
src/mcp/server/mcpserver/prompts/base.pyhttps://github.com/modelcontextprotocol/python-sdk/pull/3236/files#diff-5df96c06127fae8e6f84e304e9bce59568220d3364e7493ea839527627ac4571
View file https://github.com/morluto/python-sdk/blob/595c442c2d76d1055d1f8c6f499a2ca7f31d01f4/src/mcp/server/mcpserver/prompts/base.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/modelcontextprotocol/python-sdk/pull/3236/{{ revealButtonHref }}
https://github.com/modelcontextprotocol/python-sdk/pull/3236/files#diff-5df96c06127fae8e6f84e304e9bce59568220d3364e7493ea839527627ac4571
https://github.com/modelcontextprotocol/python-sdk/pull/3236/files#diff-5df96c06127fae8e6f84e304e9bce59568220d3364e7493ea839527627ac4571
https://github.com/modelcontextprotocol/python-sdk/pull/3236/files#diff-5df96c06127fae8e6f84e304e9bce59568220d3364e7493ea839527627ac4571
https://github.com/modelcontextprotocol/python-sdk/pull/3236/files#diff-5df96c06127fae8e6f84e304e9bce59568220d3364e7493ea839527627ac4571
src/mcp/server/mcpserver/resources/templates.pyhttps://github.com/modelcontextprotocol/python-sdk/pull/3236/files#diff-44c89eefb9a0f376f6c3004ad4a44828e0403a96114fe008c0dd7a708abde7cc
View file https://github.com/morluto/python-sdk/blob/595c442c2d76d1055d1f8c6f499a2ca7f31d01f4/src/mcp/server/mcpserver/resources/templates.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/modelcontextprotocol/python-sdk/pull/3236/{{ revealButtonHref }}
https://github.com/modelcontextprotocol/python-sdk/pull/3236/files#diff-44c89eefb9a0f376f6c3004ad4a44828e0403a96114fe008c0dd7a708abde7cc
https://github.com/modelcontextprotocol/python-sdk/pull/3236/files#diff-44c89eefb9a0f376f6c3004ad4a44828e0403a96114fe008c0dd7a708abde7cc
https://github.com/modelcontextprotocol/python-sdk/pull/3236/files#diff-44c89eefb9a0f376f6c3004ad4a44828e0403a96114fe008c0dd7a708abde7cc
https://github.com/modelcontextprotocol/python-sdk/pull/3236/files#diff-44c89eefb9a0f376f6c3004ad4a44828e0403a96114fe008c0dd7a708abde7cc
src/mcp/server/mcpserver/utilities/context_injection.pyhttps://github.com/modelcontextprotocol/python-sdk/pull/3236/files#diff-1b4ab7dd31f66da1830d323a66bff21b9b1a8d6d9220bc9f73bf2daee3bf3382
View file https://github.com/morluto/python-sdk/blob/595c442c2d76d1055d1f8c6f499a2ca7f31d01f4/src/mcp/server/mcpserver/utilities/context_injection.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/modelcontextprotocol/python-sdk/pull/3236/{{ revealButtonHref }}
https://github.com/modelcontextprotocol/python-sdk/pull/3236/files#diff-1b4ab7dd31f66da1830d323a66bff21b9b1a8d6d9220bc9f73bf2daee3bf3382
https://github.com/modelcontextprotocol/python-sdk/pull/3236/files#diff-1b4ab7dd31f66da1830d323a66bff21b9b1a8d6d9220bc9f73bf2daee3bf3382
https://github.com/modelcontextprotocol/python-sdk/pull/3236/files#diff-1b4ab7dd31f66da1830d323a66bff21b9b1a8d6d9220bc9f73bf2daee3bf3382
tests/docs_src/test_lifespan.pyhttps://github.com/modelcontextprotocol/python-sdk/pull/3236/files#diff-9df4fe606c237af28d8005a7af4381c5a6c1bddc4e3c3f3171aa97c123d94f95
View file https://github.com/morluto/python-sdk/blob/595c442c2d76d1055d1f8c6f499a2ca7f31d01f4/tests/docs_src/test_lifespan.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/modelcontextprotocol/python-sdk/pull/3236/{{ revealButtonHref }}
https://github.com/modelcontextprotocol/python-sdk/pull/3236/files#diff-9df4fe606c237af28d8005a7af4381c5a6c1bddc4e3c3f3171aa97c123d94f95
https://github.com/modelcontextprotocol/python-sdk/pull/3236/files#diff-9df4fe606c237af28d8005a7af4381c5a6c1bddc4e3c3f3171aa97c123d94f95
https://github.com/modelcontextprotocol/python-sdk/pull/3236/files#diff-9df4fe606c237af28d8005a7af4381c5a6c1bddc4e3c3f3171aa97c123d94f95
https://github.com/modelcontextprotocol/python-sdk/pull/3236/files#diff-9df4fe606c237af28d8005a7af4381c5a6c1bddc4e3c3f3171aa97c123d94f95
https://github.com/modelcontextprotocol/python-sdk/pull/3236/files#diff-9df4fe606c237af28d8005a7af4381c5a6c1bddc4e3c3f3171aa97c123d94f95
tests/server/mcpserver/resources/test_resource_template.pyhttps://github.com/modelcontextprotocol/python-sdk/pull/3236/files#diff-1984957e9d1e3a3e525ce9a3707676cae0b81fd98ba0866abf8ce087e1c443b6
View file https://github.com/morluto/python-sdk/blob/595c442c2d76d1055d1f8c6f499a2ca7f31d01f4/tests/server/mcpserver/resources/test_resource_template.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/modelcontextprotocol/python-sdk/pull/3236/{{ revealButtonHref }}
https://github.com/modelcontextprotocol/python-sdk/pull/3236/files#diff-1984957e9d1e3a3e525ce9a3707676cae0b81fd98ba0866abf8ce087e1c443b6
https://github.com/modelcontextprotocol/python-sdk/pull/3236/files#diff-1984957e9d1e3a3e525ce9a3707676cae0b81fd98ba0866abf8ce087e1c443b6
tests/server/mcpserver/test_server.pyhttps://github.com/modelcontextprotocol/python-sdk/pull/3236/files#diff-c191383f010475fc22bf69d35f14f16d7e45098b05a1a0f03ad66d6c151d1f34
View file https://github.com/morluto/python-sdk/blob/595c442c2d76d1055d1f8c6f499a2ca7f31d01f4/tests/server/mcpserver/test_server.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/modelcontextprotocol/python-sdk/pull/3236/{{ revealButtonHref }}
https://github.com/modelcontextprotocol/python-sdk/pull/3236/files#diff-c191383f010475fc22bf69d35f14f16d7e45098b05a1a0f03ad66d6c151d1f34
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/3236/files
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/3236/files
https://github.com/modelcontextprotocol/python-sdk/pull/3236/files#diff-c191383f010475fc22bf69d35f14f16d7e45098b05a1a0f03ad66d6c151d1f34
https://github.com/modelcontextprotocol/python-sdk/pull/3236/files#diff-c191383f010475fc22bf69d35f14f16d7e45098b05a1a0f03ad66d6c151d1f34
https://github.com/modelcontextprotocol/python-sdk/pull/3236/files#diff-c191383f010475fc22bf69d35f14f16d7e45098b05a1a0f03ad66d6c151d1f34
https://github.com/modelcontextprotocol/python-sdk/pull/3236/files#diff-c191383f010475fc22bf69d35f14f16d7e45098b05a1a0f03ad66d6c151d1f34
https://github.com/modelcontextprotocol/python-sdk/pull/3236/files#diff-c191383f010475fc22bf69d35f14f16d7e45098b05a1a0f03ad66d6c151d1f34
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/3236/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

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlno-cache

Viewport: width=device-width


URLs of crawlers that visited me.