René's URL Explorer Experiment


Title: ci: add strict-no-cover to detect unnecessary coverage pragmas by maxisbey · Pull Request #1897 · modelcontextprotocol/python-sdk · GitHub

Open Graph Title: ci: add strict-no-cover to detect unnecessary coverage pragmas by maxisbey · Pull Request #1897 · modelcontextprotocol/python-sdk

X Title: ci: add strict-no-cover to detect unnecessary coverage pragmas by maxisbey · Pull Request #1897 · modelcontextprotocol/python-sdk

Description: Add strict-no-cover from pydantic to the CI pipeline. This tool identifies # pragma: no cover comments on lines that are actually covered by tests, helping keep coverage pragmas accurate and preventing them from accumulating as dead annotations. Motivation Over time, # pragma: no cover annotations accumulate on lines that are actually exercised by tests — the original reason for the pragma may no longer apply (e.g., code was refactored, tests were added). These stale pragmas hide real coverage data and make it harder to identify genuinely uncovered code. Changes CI integration (e66af17) Add strict-no-cover as a dev dependency (installed from git) Add CI step to run strict-no-cover after pytest coverage (Linux only — the tool has a Windows path-handling bug) Pin coverage[toml] to >=7.10.7,<=7.13 because 7.13.1 introduced a regression in how source paths are reported in .coverage databases, breaking strict-no-cover Remove relative_files = true from [tool.coverage.run] as it interferes with strict-no-cover path matching Add pragma: lax no cover and pragma: no branch to exclude_lines in coverage config Pragma cleanup (f0c0b6e) Remove # pragma: no cover from ~150 lines that are actually covered by tests Add # pragma: lax no cover for platform-specific code (Windows skipif markers, sys.platform branches, OS-specific exception handlers) Add # pragma: no branch for branches where the exit path is never taken (async for loops, anyio.fail_after blocks, finally clauses) Pragma guide Pragma Meaning Use when # pragma: no cover Line must never be covered Strict — CI fails if covered # pragma: lax no cover Line may or may not be covered Platform/version-specific code, flaky coverage # pragma: no branch Branch exit not taken async for, with fail_after(), loops that always break How it works After coverage run -m pytest and coverage combine, the CI runs strict-no-cover which: Reads the .coverage database to find which lines were actually executed Scans source files for # pragma: no cover annotations Reports any lines that have the pragma but ARE covered (meaning the pragma is unnecessary) Exits non-zero if any are found, failing the CI check # pragma: lax no cover lines are excluded from this check, making them safe for code that is covered in some CI configurations but not others.

Open Graph Description: Add strict-no-cover from pydantic to the CI pipeline. This tool identifies # pragma: no cover comments on lines that are actually covered by tests, helping keep coverage pragmas accurate and preven...

X Description: Add strict-no-cover from pydantic to the CI pipeline. This tool identifies # pragma: no cover comments on lines that are actually covered by tests, helping keep coverage pragmas accurate and preven...

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

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:3549eb23-5bfc-bcf6-0f54-493b9d265acb
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id8916:22C843:164671:1DADEE:6A616964
html-safe-nonceafb9e05aaa7919d4732bd768d5b40946481fbbf9270d606b6561ffdd58c753ca
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4OTE2OjIyQzg0MzoxNjQ2NzE6MURBREVFOjZBNjE2OTY0IiwidmlzaXRvcl9pZCI6Ijg1NDY1MTk1MzQyMzE0OTQxMiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacbd12a967f88de5e8abf689cb547b0489ced8c9c9e881d02fa254d2aee817663b
hovercard-subject-tagpull_request:3181538049
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/1897/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:altAdd strict-no-cover from pydantic to the CI pipeline. This tool identifies # pragma: no cover comments on lines that are actually covered by tests, helping keep coverage pragmas accurate and preven...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Nonea69385f7d268ece7ad25b131bbd70f457024811fc79afcae43785a6849b724e2
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
release484cf265a1f970d5c7a5e7c37cb677d8010aa12f
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/modelcontextprotocol/python-sdk/pull/1897/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmodelcontextprotocol%2Fpython-sdk%2Fpull%2F1897%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
Code QualityEnforce quality at mergehttps://github.com/features/code-quality
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%2F1897%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/1897/files
Reloadhttps://github.com/modelcontextprotocol/python-sdk/pull/1897/files
Reloadhttps://github.com/modelcontextprotocol/python-sdk/pull/1897/files
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/1897/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.7k https://github.com/login?return_to=%2Fmodelcontextprotocol%2Fpython-sdk
Code https://github.com/modelcontextprotocol/python-sdk
Issues 268 https://github.com/modelcontextprotocol/python-sdk/issues
Pull requests 313 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
Kludexhttps://github.com/Kludex
mainhttps://github.com/modelcontextprotocol/python-sdk/tree/main
add-strict-no-coverhttps://github.com/modelcontextprotocol/python-sdk/tree/add-strict-no-cover
Conversation 10 https://github.com/modelcontextprotocol/python-sdk/pull/1897
Commits 9 https://github.com/modelcontextprotocol/python-sdk/pull/1897/commits
Checks 30 https://github.com/modelcontextprotocol/python-sdk/pull/1897/checks
Files changed https://github.com/modelcontextprotocol/python-sdk/pull/1897/files
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/1897/files
ci: add strict-no-cover to detect unnecessary coverage pragmas https://github.com/modelcontextprotocol/python-sdk/pull/1897/files#top
Show all changes 9 commits https://github.com/modelcontextprotocol/python-sdk/pull/1897/files
0c84038 ci: add strict-no-cover to detect unnecessary coverage pragmas maxisbey Jan 16, 2026 https://github.com/modelcontextprotocol/python-sdk/pull/1897/commits/0c84038ba0c8edf755371b6221fb9603285d5a0b
da79832 fix: clean up unnecessary coverage pragmas across codebase maxisbey Jan 23, 2026 https://github.com/modelcontextprotocol/python-sdk/pull/1897/commits/da7983249bccdf231825b8ff42da64f74e469ced
55cf282 fix: address review feedback on pragma placement maxisbey Jan 23, 2026 https://github.com/modelcontextprotocol/python-sdk/pull/1897/commits/55cf2822c8762e17a74c093fa7ac3d0a612204c6
2a30761 test: use assertions instead of conditional guards in resumption test maxisbey Jan 23, 2026 https://github.com/modelcontextprotocol/python-sdk/pull/1897/commits/2a307619c6d87e8f8ec670abaf30a5572fd528e5
a508913 fix: use lax no cover for GET stream exception handler maxisbey Jan 23, 2026 https://github.com/modelcontextprotocol/python-sdk/pull/1897/commits/a5089138d59b9651807dffa3a36cba2188436c6b
101fddd fix: use lax no cover for resumption test inter-phase code maxisbey Jan 23, 2026 https://github.com/modelcontextprotocol/python-sdk/pull/1897/commits/101fddd786d7320da027b1683c0a27a13671917c
0fd3003 fix: restore uv.lock from main maxisbey Jan 23, 2026 https://github.com/modelcontextprotocol/python-sdk/pull/1897/commits/0fd30034dfdac8a7609a7f3d2038c51a914b5478
ae6943c fix: update uv.lock with strict-no-cover dependency maxisbey Jan 23, 2026 https://github.com/modelcontextprotocol/python-sdk/pull/1897/commits/ae6943c175b2b5625c77121d5dad17c5e22cfcc7
c72ae6b fix: add coverage pragmas for version-dependent resumption test lines maxisbey Jan 23, 2026 https://github.com/modelcontextprotocol/python-sdk/pull/1897/commits/c72ae6bab51a51b4b59fc97050e140450eb2a33e
Clear filters https://github.com/modelcontextprotocol/python-sdk/pull/1897/files
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/1897/files
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/1897/files
shared.yml https://github.com/modelcontextprotocol/python-sdk/pull/1897/files#diff-9852c0f7d79fa9d5200f11511ffdbadc321f7115fe1c5e8d2f2e63863d2441ee
pyproject.toml https://github.com/modelcontextprotocol/python-sdk/pull/1897/files#diff-50c86b7ed8ac2cf95bd48334961bf0530cdc77b5a56f852c5c61b89d735fd711
claude.py https://github.com/modelcontextprotocol/python-sdk/pull/1897/files#diff-b9cc4f521f80017ffb9a4cbc1a52da9c9cba4fd372598f4575a4336e2b9a3cf4
cli.py https://github.com/modelcontextprotocol/python-sdk/pull/1897/files#diff-ed6a22760239e76508d462209c10b7f07612896965b7808478261a9c529b796e
oauth2.py https://github.com/modelcontextprotocol/python-sdk/pull/1897/files#diff-b7aaf2062da175cea9a532176d6eb78b659eaadb757cc48929f0bafccfdb8d98
session.py https://github.com/modelcontextprotocol/python-sdk/pull/1897/files#diff-634d1abcb8bda1a784f31e3431a10124e387f487dd243a54244515b4972aa0ee
session_group.py https://github.com/modelcontextprotocol/python-sdk/pull/1897/files#diff-cbe797d477654047e3091f5e3c0a1046d9197e34ed55d884c7d957ef4e61d775
sse.py https://github.com/modelcontextprotocol/python-sdk/pull/1897/files#diff-41ed2e8548ae223801c0a37a6b50ce913e24f0e660bbbc2ddd91686820c86336
stdio.py https://github.com/modelcontextprotocol/python-sdk/pull/1897/files#diff-a906fce75e115cde24e79b8cdac6442af7845748f57ec0e997ff81f089408186
streamable_http.py https://github.com/modelcontextprotocol/python-sdk/pull/1897/files#diff-e8c18a3067a9b157c5c39a947f53d395afeb00e7026dad2d5a279011da943b5e
token.py https://github.com/modelcontextprotocol/python-sdk/pull/1897/files#diff-0bfdf5a468abdd078a0287db095a4ad5ebfcb04ea3e437026cdc8038c137ecab
client_auth.py https://github.com/modelcontextprotocol/python-sdk/pull/1897/files#diff-24c1b3fd929c3f6acb7f5a09322c15122e44e894b595a6013b0ae6259ad27500
task_context.py https://github.com/modelcontextprotocol/python-sdk/pull/1897/files#diff-914a336dca71f0f4694531a3527a094132ba109e51ffb4cd1d1faa58daa97fab
types.py https://github.com/modelcontextprotocol/python-sdk/pull/1897/files#diff-139734dfbe9c4b682d3547dc3e8c79f0da4142f50598fdb5f147663cc2692a88
server.py https://github.com/modelcontextprotocol/python-sdk/pull/1897/files#diff-14a2991a8f2be5b9e60dab5fae92d2230dc23e57937ad5e5641b832d9c662738
base.py https://github.com/modelcontextprotocol/python-sdk/pull/1897/files#diff-69c6a7ada93ce277ad1ae8f79a6800160e437084559ca0a24255851cb061a3a1
context_injection.py https://github.com/modelcontextprotocol/python-sdk/pull/1897/files#diff-948485e674648fa42095014afde8e3ba7ce9cb5af00b2ae693187ce64024d5b9
logging.py https://github.com/modelcontextprotocol/python-sdk/pull/1897/files#diff-fe52195d326c54954d43babc82f79782b162fdef9a6f186325f85cfe2f1ad9b1
server.py https://github.com/modelcontextprotocol/python-sdk/pull/1897/files#diff-b21bf5e21c058ccfddb404c209f2d4288e4f32b121111ffc9d466638631d13e4
session.py https://github.com/modelcontextprotocol/python-sdk/pull/1897/files#diff-9a603a2587011a188aa76ca19a32fcd343a253516325fbcfb4f7bfb6a814634c
streamable_http.py https://github.com/modelcontextprotocol/python-sdk/pull/1897/files#diff-0119e4c1bbf2fde7ba89b9c9f5bc472ccc2332f84e96e47cf9e45cebef801da3
transport_security.py https://github.com/modelcontextprotocol/python-sdk/pull/1897/files#diff-c17c97ac87513551ff71eab97a2b040af12707f3abd1970b3d01a999cce9dce2
session.py https://github.com/modelcontextprotocol/python-sdk/pull/1897/files#diff-aaa1596dd4db91f5cd7f743c8afbe58596daf01a2ecec4a0024768f7409fb1dc
test_client_credentials.py https://github.com/modelcontextprotocol/python-sdk/pull/1897/files#diff-c84aa56739a1205229f9ca6a502589d65984e9461e55324c600702a40f28986f
conftest.py https://github.com/modelcontextprotocol/python-sdk/pull/1897/files#diff-d66be9fe425fabad4b8eeaa4dd90b911ac45443d2575d828a29fc74be7ea2f34
test_auth.py https://github.com/modelcontextprotocol/python-sdk/pull/1897/files#diff-f083d075f463e8b1ecfa6b931c33288c3d09b00ee3af3e5f74df16b7e75c3ab1
test_notification_response.py https://github.com/modelcontextprotocol/python-sdk/pull/1897/files#diff-8c7bb1142c1c9cb43b4d2e7bf265054daca89ba175deec8b690f00464c00c182
test_stdio.py https://github.com/modelcontextprotocol/python-sdk/pull/1897/files#diff-49f66b09e4d89b29b440c955c429fe948dbcc3bbb08fffb504cf40be24382352
test_memory.py https://github.com/modelcontextprotocol/python-sdk/pull/1897/files#diff-6ae3f0a1371508074d5761d7a67a876ffe72c027c2fd0c3352f009ad902da950
test_server.py https://github.com/modelcontextprotocol/python-sdk/pull/1897/files#diff-82f7ca0df19c99b8e50045b475ead10a75d969ef61f2f4eba71a9b8ff3d360cc
test_1027_win_unreachable_cleanup.py https://github.com/modelcontextprotocol/python-sdk/pull/1897/files#diff-58ee556cdf4f7669f21584c546737c09da73fcbb6b3b839a8db7212793152ff6
test_129_resource_templates.py https://github.com/modelcontextprotocol/python-sdk/pull/1897/files#diff-9f5bf8bd9599ca9494ff9e524bb0a220910ecdbaa0e01eedff5ad6778a81c434
test_1363_race_condition_streamable_http.py https://github.com/modelcontextprotocol/python-sdk/pull/1897/files#diff-e581901efafbad07422bf926218ce7bec6c7a40e6d726aa538b2818d903bf9f9
test_88_random_error.py https://github.com/modelcontextprotocol/python-sdk/pull/1897/files#diff-4e8132257776907428bdfd1d3671faed7b41a6347402e65f630f3a27a290edf5
test_malformed_input.py https://github.com/modelcontextprotocol/python-sdk/pull/1897/files#diff-b649c0b5fba86f777a51ee53b6579c7a639f0484b3562efcafe81a3322a4219e
test_auth_integration.py https://github.com/modelcontextprotocol/python-sdk/pull/1897/files#diff-6db9f61c163fde554e33209f7b184b6485d848942a133b8cf17024c70f216004
test_file_resources.py https://github.com/modelcontextprotocol/python-sdk/pull/1897/files#diff-13f2cc870dbbdedfefa3f6f777b15ef82076de0f55c1854b8d40178872ee9620
test_resource_manager.py https://github.com/modelcontextprotocol/python-sdk/pull/1897/files#diff-8c6c5018603605fc22cccb9d2fd9301f99b9784eead7612a20610c117179a9f5
test_resource_template.py https://github.com/modelcontextprotocol/python-sdk/pull/1897/files#diff-43d119004d118d943703eba5dcdc0c38754808e1b1067b7757ca70def217fefe
test_elicitation.py https://github.com/modelcontextprotocol/python-sdk/pull/1897/files#diff-c69808371feab9c7d3a6b87bc307fa79254948bed48cf84e5dc90efee0156547
test_func_metadata.py https://github.com/modelcontextprotocol/python-sdk/pull/1897/files#diff-28100164bc341b35cebdebdebcd004bacade502fd869fc6f8cb546e3d1d0238d
test_server.py https://github.com/modelcontextprotocol/python-sdk/pull/1897/files#diff-2c82340ecf6b6a4c0adbc7f94f272d810dca759a8bba8c3066b4110afc2fd586
test_tool_manager.py https://github.com/modelcontextprotocol/python-sdk/pull/1897/files#diff-b5b4bbafe34c06e716812137f400c45d7e1a454cce6f39f69a71b3e9cb4c1975
test_completion_with_context.py https://github.com/modelcontextprotocol/python-sdk/pull/1897/files#diff-7b9f06a84b3dc75676e1efff318066a211e3e0210ba14abd37626d431c400d43
test_lowlevel_input_validation.py https://github.com/modelcontextprotocol/python-sdk/pull/1897/files#diff-b03a30ed62b1e26c982596a9a203e82a559718f58d4bf7c25cf959820508ae8b
test_lowlevel_output_validation.py https://github.com/modelcontextprotocol/python-sdk/pull/1897/files#diff-0c1fbfc219f8d31c8fc337edc62d3c107192ff8ef97eddce15ec6c29e8a2f209
test_lowlevel_tool_annotations.py https://github.com/modelcontextprotocol/python-sdk/pull/1897/files#diff-d6a45a1ed1f4ebc14198da5fe66dab121d6fa342c6bda5a0d4d53b8696a84d75
test_session.py https://github.com/modelcontextprotocol/python-sdk/pull/1897/files#diff-ed22c8fef52dc8c1d840dc0825bc375c48b67dcc2b468bab084aded3af06fdcf
test_progress_notifications.py https://github.com/modelcontextprotocol/python-sdk/pull/1897/files#diff-9df01c21bb5b7f1353ec56a7fa0efd594a04b3e109f49ca0a598fb9a6919a7eb
test_session.py https://github.com/modelcontextprotocol/python-sdk/pull/1897/files#diff-c1cae39f59e7077c9b3f3310d51bd7fc70f57b80f25911dafdcf7720b71184c2
test_streamable_http.py https://github.com/modelcontextprotocol/python-sdk/pull/1897/files#diff-57d1f3c64af36960aa61b1d77387fb6201b90fbc2f3d606bf2761315ce618cc5
test_ws.py https://github.com/modelcontextprotocol/python-sdk/pull/1897/files#diff-42c069f4857387aa663d81e4dc484bffa345f00b175503cfe090ca14d6dcdfd5
test_examples.py https://github.com/modelcontextprotocol/python-sdk/pull/1897/files#diff-0741a50beca4b08d354933485499f735f9b5493841e8f3af0e89b16ae1e04af4
uv.lock https://github.com/modelcontextprotocol/python-sdk/pull/1897/files#diff-84321598744d84dbee2318e634c74c9aae39a1c253f1c4bd17ebf9ef2f807b11
.github/workflows/shared.ymlhttps://github.com/modelcontextprotocol/python-sdk/pull/1897/files#diff-9852c0f7d79fa9d5200f11511ffdbadc321f7115fe1c5e8d2f2e63863d2441ee
View file https://github.com/modelcontextprotocol/python-sdk/blob/c72ae6bab51a51b4b59fc97050e140450eb2a33e/.github/workflows/shared.yml
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/modelcontextprotocol/python-sdk/pull/1897/{{ revealButtonHref }}
https://github.com/modelcontextprotocol/python-sdk/pull/1897/files#diff-9852c0f7d79fa9d5200f11511ffdbadc321f7115fe1c5e8d2f2e63863d2441ee
maxisbeyhttps://github.com/maxisbey
Jan 17, 2026https://github.com/modelcontextprotocol/python-sdk/pull/1897/files#r2700821493
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
@Kludexhttps://github.com/Kludex
https://github.com/modelcontextprotocol/python-sdk/actions/runs/21070443439/job/60598385217https://github.com/modelcontextprotocol/python-sdk/actions/runs/21070443439/job/60598385217
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/1897/files
https://github.com/modelcontextprotocol/python-sdk/pull/1897/files#diff-9852c0f7d79fa9d5200f11511ffdbadc321f7115fe1c5e8d2f2e63863d2441ee
pyproject.tomlhttps://github.com/modelcontextprotocol/python-sdk/pull/1897/files#diff-50c86b7ed8ac2cf95bd48334961bf0530cdc77b5a56f852c5c61b89d735fd711
View file https://github.com/modelcontextprotocol/python-sdk/blob/c72ae6bab51a51b4b59fc97050e140450eb2a33e/pyproject.toml
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/modelcontextprotocol/python-sdk/pull/1897/{{ revealButtonHref }}
https://github.com/modelcontextprotocol/python-sdk/pull/1897/files#diff-50c86b7ed8ac2cf95bd48334961bf0530cdc77b5a56f852c5c61b89d735fd711
https://github.com/modelcontextprotocol/python-sdk/pull/1897/files#diff-50c86b7ed8ac2cf95bd48334961bf0530cdc77b5a56f852c5c61b89d735fd711
https://github.com/modelcontextprotocol/python-sdk/pull/1897/files#diff-50c86b7ed8ac2cf95bd48334961bf0530cdc77b5a56f852c5c61b89d735fd711
https://github.com/modelcontextprotocol/python-sdk/pull/1897/files#diff-50c86b7ed8ac2cf95bd48334961bf0530cdc77b5a56f852c5c61b89d735fd711
https://github.com/modelcontextprotocol/python-sdk/pull/1897/files#diff-50c86b7ed8ac2cf95bd48334961bf0530cdc77b5a56f852c5c61b89d735fd711
https://github.com/modelcontextprotocol/python-sdk/pull/1897/files#diff-50c86b7ed8ac2cf95bd48334961bf0530cdc77b5a56f852c5c61b89d735fd711
https://github.com/modelcontextprotocol/python-sdk/pull/1897/files#diff-50c86b7ed8ac2cf95bd48334961bf0530cdc77b5a56f852c5c61b89d735fd711
src/mcp/cli/claude.pyhttps://github.com/modelcontextprotocol/python-sdk/pull/1897/files#diff-b9cc4f521f80017ffb9a4cbc1a52da9c9cba4fd372598f4575a4336e2b9a3cf4
View file https://github.com/modelcontextprotocol/python-sdk/blob/c72ae6bab51a51b4b59fc97050e140450eb2a33e/src/mcp/cli/claude.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/modelcontextprotocol/python-sdk/pull/1897/{{ revealButtonHref }}
https://github.com/modelcontextprotocol/python-sdk/pull/1897/files#diff-b9cc4f521f80017ffb9a4cbc1a52da9c9cba4fd372598f4575a4336e2b9a3cf4
https://github.com/modelcontextprotocol/python-sdk/pull/1897/files#diff-b9cc4f521f80017ffb9a4cbc1a52da9c9cba4fd372598f4575a4336e2b9a3cf4
src/mcp/cli/cli.pyhttps://github.com/modelcontextprotocol/python-sdk/pull/1897/files#diff-ed6a22760239e76508d462209c10b7f07612896965b7808478261a9c529b796e
View file https://github.com/modelcontextprotocol/python-sdk/blob/c72ae6bab51a51b4b59fc97050e140450eb2a33e/src/mcp/cli/cli.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/modelcontextprotocol/python-sdk/pull/1897/{{ revealButtonHref }}
https://github.com/modelcontextprotocol/python-sdk/pull/1897/files#diff-ed6a22760239e76508d462209c10b7f07612896965b7808478261a9c529b796e
https://github.com/modelcontextprotocol/python-sdk/pull/1897/files#diff-ed6a22760239e76508d462209c10b7f07612896965b7808478261a9c529b796e
src/mcp/client/auth/oauth2.pyhttps://github.com/modelcontextprotocol/python-sdk/pull/1897/files#diff-b7aaf2062da175cea9a532176d6eb78b659eaadb757cc48929f0bafccfdb8d98
View file https://github.com/modelcontextprotocol/python-sdk/blob/c72ae6bab51a51b4b59fc97050e140450eb2a33e/src/mcp/client/auth/oauth2.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/modelcontextprotocol/python-sdk/pull/1897/{{ revealButtonHref }}
https://github.com/modelcontextprotocol/python-sdk/pull/1897/files#diff-b7aaf2062da175cea9a532176d6eb78b659eaadb757cc48929f0bafccfdb8d98
https://github.com/modelcontextprotocol/python-sdk/pull/1897/files#diff-b7aaf2062da175cea9a532176d6eb78b659eaadb757cc48929f0bafccfdb8d98
https://github.com/modelcontextprotocol/python-sdk/pull/1897/files#diff-b7aaf2062da175cea9a532176d6eb78b659eaadb757cc48929f0bafccfdb8d98
https://github.com/modelcontextprotocol/python-sdk/pull/1897/files#diff-b7aaf2062da175cea9a532176d6eb78b659eaadb757cc48929f0bafccfdb8d98
https://github.com/modelcontextprotocol/python-sdk/pull/1897/files#diff-b7aaf2062da175cea9a532176d6eb78b659eaadb757cc48929f0bafccfdb8d98
https://github.com/modelcontextprotocol/python-sdk/pull/1897/files#diff-b7aaf2062da175cea9a532176d6eb78b659eaadb757cc48929f0bafccfdb8d98
src/mcp/client/session.pyhttps://github.com/modelcontextprotocol/python-sdk/pull/1897/files#diff-634d1abcb8bda1a784f31e3431a10124e387f487dd243a54244515b4972aa0ee
View file https://github.com/modelcontextprotocol/python-sdk/blob/c72ae6bab51a51b4b59fc97050e140450eb2a33e/src/mcp/client/session.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/modelcontextprotocol/python-sdk/pull/1897/{{ revealButtonHref }}
https://github.com/modelcontextprotocol/python-sdk/pull/1897/files#diff-634d1abcb8bda1a784f31e3431a10124e387f487dd243a54244515b4972aa0ee
https://github.com/modelcontextprotocol/python-sdk/pull/1897/files#diff-634d1abcb8bda1a784f31e3431a10124e387f487dd243a54244515b4972aa0ee
https://github.com/modelcontextprotocol/python-sdk/pull/1897/files#diff-634d1abcb8bda1a784f31e3431a10124e387f487dd243a54244515b4972aa0ee
https://github.com/modelcontextprotocol/python-sdk/pull/1897/files#diff-634d1abcb8bda1a784f31e3431a10124e387f487dd243a54244515b4972aa0ee
https://github.com/modelcontextprotocol/python-sdk/pull/1897/files#diff-634d1abcb8bda1a784f31e3431a10124e387f487dd243a54244515b4972aa0ee
https://github.com/modelcontextprotocol/python-sdk/pull/1897/files#diff-634d1abcb8bda1a784f31e3431a10124e387f487dd243a54244515b4972aa0ee
src/mcp/client/session_group.pyhttps://github.com/modelcontextprotocol/python-sdk/pull/1897/files#diff-cbe797d477654047e3091f5e3c0a1046d9197e34ed55d884c7d957ef4e61d775
View file https://github.com/modelcontextprotocol/python-sdk/blob/c72ae6bab51a51b4b59fc97050e140450eb2a33e/src/mcp/client/session_group.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/modelcontextprotocol/python-sdk/pull/1897/{{ revealButtonHref }}
https://github.com/modelcontextprotocol/python-sdk/pull/1897/files#diff-cbe797d477654047e3091f5e3c0a1046d9197e34ed55d884c7d957ef4e61d775
https://github.com/modelcontextprotocol/python-sdk/pull/1897/files#diff-cbe797d477654047e3091f5e3c0a1046d9197e34ed55d884c7d957ef4e61d775
src/mcp/client/sse.pyhttps://github.com/modelcontextprotocol/python-sdk/pull/1897/files#diff-41ed2e8548ae223801c0a37a6b50ce913e24f0e660bbbc2ddd91686820c86336
View file https://github.com/modelcontextprotocol/python-sdk/blob/c72ae6bab51a51b4b59fc97050e140450eb2a33e/src/mcp/client/sse.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/modelcontextprotocol/python-sdk/pull/1897/{{ revealButtonHref }}
https://github.com/modelcontextprotocol/python-sdk/pull/1897/files#diff-41ed2e8548ae223801c0a37a6b50ce913e24f0e660bbbc2ddd91686820c86336
https://github.com/modelcontextprotocol/python-sdk/pull/1897/files#diff-41ed2e8548ae223801c0a37a6b50ce913e24f0e660bbbc2ddd91686820c86336
https://github.com/modelcontextprotocol/python-sdk/pull/1897/files#diff-41ed2e8548ae223801c0a37a6b50ce913e24f0e660bbbc2ddd91686820c86336
src/mcp/client/stdio.pyhttps://github.com/modelcontextprotocol/python-sdk/pull/1897/files#diff-a906fce75e115cde24e79b8cdac6442af7845748f57ec0e997ff81f089408186
View file https://github.com/modelcontextprotocol/python-sdk/blob/c72ae6bab51a51b4b59fc97050e140450eb2a33e/src/mcp/client/stdio.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/modelcontextprotocol/python-sdk/pull/1897/{{ revealButtonHref }}
https://github.com/modelcontextprotocol/python-sdk/pull/1897/files#diff-a906fce75e115cde24e79b8cdac6442af7845748f57ec0e997ff81f089408186
https://github.com/modelcontextprotocol/python-sdk/pull/1897/files#diff-a906fce75e115cde24e79b8cdac6442af7845748f57ec0e997ff81f089408186
https://github.com/modelcontextprotocol/python-sdk/pull/1897/files#diff-a906fce75e115cde24e79b8cdac6442af7845748f57ec0e997ff81f089408186
https://github.com/modelcontextprotocol/python-sdk/pull/1897/files#diff-a906fce75e115cde24e79b8cdac6442af7845748f57ec0e997ff81f089408186
https://github.com/modelcontextprotocol/python-sdk/pull/1897/files#diff-a906fce75e115cde24e79b8cdac6442af7845748f57ec0e997ff81f089408186
https://github.com/modelcontextprotocol/python-sdk/pull/1897/files#diff-a906fce75e115cde24e79b8cdac6442af7845748f57ec0e997ff81f089408186
https://github.com/modelcontextprotocol/python-sdk/pull/1897/files#diff-a906fce75e115cde24e79b8cdac6442af7845748f57ec0e997ff81f089408186
src/mcp/client/streamable_http.pyhttps://github.com/modelcontextprotocol/python-sdk/pull/1897/files#diff-e8c18a3067a9b157c5c39a947f53d395afeb00e7026dad2d5a279011da943b5e
View file https://github.com/modelcontextprotocol/python-sdk/blob/c72ae6bab51a51b4b59fc97050e140450eb2a33e/src/mcp/client/streamable_http.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/modelcontextprotocol/python-sdk/pull/1897/{{ revealButtonHref }}
https://github.com/modelcontextprotocol/python-sdk/pull/1897/files#diff-e8c18a3067a9b157c5c39a947f53d395afeb00e7026dad2d5a279011da943b5e
https://github.com/modelcontextprotocol/python-sdk/pull/1897/files#diff-e8c18a3067a9b157c5c39a947f53d395afeb00e7026dad2d5a279011da943b5e
https://github.com/modelcontextprotocol/python-sdk/pull/1897/files#diff-e8c18a3067a9b157c5c39a947f53d395afeb00e7026dad2d5a279011da943b5e
https://github.com/modelcontextprotocol/python-sdk/pull/1897/files#diff-e8c18a3067a9b157c5c39a947f53d395afeb00e7026dad2d5a279011da943b5e
https://github.com/modelcontextprotocol/python-sdk/pull/1897/files#diff-e8c18a3067a9b157c5c39a947f53d395afeb00e7026dad2d5a279011da943b5e
https://github.com/modelcontextprotocol/python-sdk/pull/1897/files#diff-e8c18a3067a9b157c5c39a947f53d395afeb00e7026dad2d5a279011da943b5e
https://github.com/modelcontextprotocol/python-sdk/pull/1897/files#diff-e8c18a3067a9b157c5c39a947f53d395afeb00e7026dad2d5a279011da943b5e
src/mcp/server/auth/handlers/token.pyhttps://github.com/modelcontextprotocol/python-sdk/pull/1897/files#diff-0bfdf5a468abdd078a0287db095a4ad5ebfcb04ea3e437026cdc8038c137ecab
View file https://github.com/modelcontextprotocol/python-sdk/blob/c72ae6bab51a51b4b59fc97050e140450eb2a33e/src/mcp/server/auth/handlers/token.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/modelcontextprotocol/python-sdk/pull/1897/{{ revealButtonHref }}
https://github.com/modelcontextprotocol/python-sdk/pull/1897/files#diff-0bfdf5a468abdd078a0287db095a4ad5ebfcb04ea3e437026cdc8038c137ecab
https://github.com/modelcontextprotocol/python-sdk/pull/1897/files#diff-0bfdf5a468abdd078a0287db095a4ad5ebfcb04ea3e437026cdc8038c137ecab
src/mcp/server/auth/middleware/client_auth.pyhttps://github.com/modelcontextprotocol/python-sdk/pull/1897/files#diff-24c1b3fd929c3f6acb7f5a09322c15122e44e894b595a6013b0ae6259ad27500
View file https://github.com/modelcontextprotocol/python-sdk/blob/c72ae6bab51a51b4b59fc97050e140450eb2a33e/src/mcp/server/auth/middleware/client_auth.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/modelcontextprotocol/python-sdk/pull/1897/{{ revealButtonHref }}
https://github.com/modelcontextprotocol/python-sdk/pull/1897/files#diff-24c1b3fd929c3f6acb7f5a09322c15122e44e894b595a6013b0ae6259ad27500
https://github.com/modelcontextprotocol/python-sdk/pull/1897/files#diff-24c1b3fd929c3f6acb7f5a09322c15122e44e894b595a6013b0ae6259ad27500
https://github.com/modelcontextprotocol/python-sdk/pull/1897/files#diff-24c1b3fd929c3f6acb7f5a09322c15122e44e894b595a6013b0ae6259ad27500
https://github.com/modelcontextprotocol/python-sdk/pull/1897/files#diff-24c1b3fd929c3f6acb7f5a09322c15122e44e894b595a6013b0ae6259ad27500
src/mcp/server/experimental/task_context.pyhttps://github.com/modelcontextprotocol/python-sdk/pull/1897/files#diff-914a336dca71f0f4694531a3527a094132ba109e51ffb4cd1d1faa58daa97fab
View file https://github.com/modelcontextprotocol/python-sdk/blob/c72ae6bab51a51b4b59fc97050e140450eb2a33e/src/mcp/server/experimental/task_context.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/modelcontextprotocol/python-sdk/pull/1897/{{ revealButtonHref }}
https://github.com/modelcontextprotocol/python-sdk/pull/1897/files#diff-914a336dca71f0f4694531a3527a094132ba109e51ffb4cd1d1faa58daa97fab
https://github.com/modelcontextprotocol/python-sdk/pull/1897/files#diff-914a336dca71f0f4694531a3527a094132ba109e51ffb4cd1d1faa58daa97fab
https://github.com/modelcontextprotocol/python-sdk/pull/1897/files#diff-914a336dca71f0f4694531a3527a094132ba109e51ffb4cd1d1faa58daa97fab
https://github.com/modelcontextprotocol/python-sdk/pull/1897/files#diff-914a336dca71f0f4694531a3527a094132ba109e51ffb4cd1d1faa58daa97fab
src/mcp/server/fastmcp/resources/types.pyhttps://github.com/modelcontextprotocol/python-sdk/pull/1897/files#diff-139734dfbe9c4b682d3547dc3e8c79f0da4142f50598fdb5f147663cc2692a88
View file https://github.com/modelcontextprotocol/python-sdk/blob/c72ae6bab51a51b4b59fc97050e140450eb2a33e/src/mcp/server/fastmcp/resources/types.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/modelcontextprotocol/python-sdk/pull/1897/{{ revealButtonHref }}
https://github.com/modelcontextprotocol/python-sdk/pull/1897/files#diff-139734dfbe9c4b682d3547dc3e8c79f0da4142f50598fdb5f147663cc2692a88
https://github.com/modelcontextprotocol/python-sdk/pull/1897/files#diff-139734dfbe9c4b682d3547dc3e8c79f0da4142f50598fdb5f147663cc2692a88
src/mcp/server/fastmcp/server.pyhttps://github.com/modelcontextprotocol/python-sdk/pull/1897/files#diff-14a2991a8f2be5b9e60dab5fae92d2230dc23e57937ad5e5641b832d9c662738
View file https://github.com/modelcontextprotocol/python-sdk/blob/c72ae6bab51a51b4b59fc97050e140450eb2a33e/src/mcp/server/fastmcp/server.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/modelcontextprotocol/python-sdk/pull/1897/{{ revealButtonHref }}
https://github.com/modelcontextprotocol/python-sdk/pull/1897/files#diff-14a2991a8f2be5b9e60dab5fae92d2230dc23e57937ad5e5641b832d9c662738
https://github.com/modelcontextprotocol/python-sdk/pull/1897/files#diff-14a2991a8f2be5b9e60dab5fae92d2230dc23e57937ad5e5641b832d9c662738
src/mcp/server/fastmcp/tools/base.pyhttps://github.com/modelcontextprotocol/python-sdk/pull/1897/files#diff-69c6a7ada93ce277ad1ae8f79a6800160e437084559ca0a24255851cb061a3a1
View file https://github.com/modelcontextprotocol/python-sdk/blob/c72ae6bab51a51b4b59fc97050e140450eb2a33e/src/mcp/server/fastmcp/tools/base.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/modelcontextprotocol/python-sdk/pull/1897/{{ revealButtonHref }}
https://github.com/modelcontextprotocol/python-sdk/pull/1897/files#diff-69c6a7ada93ce277ad1ae8f79a6800160e437084559ca0a24255851cb061a3a1
https://github.com/modelcontextprotocol/python-sdk/pull/1897/files#diff-69c6a7ada93ce277ad1ae8f79a6800160e437084559ca0a24255851cb061a3a1
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/1897/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.