René's URL Explorer Experiment


Title: Relax monolith ElicitRequestURLParams.elicitation_id for 2026-07-28 by maxisbey · Pull Request #2913 · modelcontextprotocol/python-sdk · GitHub

Open Graph Title: Relax monolith ElicitRequestURLParams.elicitation_id for 2026-07-28 by maxisbey · Pull Request #2913 · modelcontextprotocol/python-sdk

X Title: Relax monolith ElicitRequestURLParams.elicitation_id for 2026-07-28 by maxisbey · Pull Request #2913 · modelcontextprotocol/python-sdk

Description: Follow-up to #2912, addressing the two review comments that landed after merge. Motivation and Context #2912 re-vendored the 2026-07-28 draft schema, which dropped elicitationId from ElicitRequestURLParams and made CancelledNotificationParams.requestId required again. The regenerated v2026_07_28 surface package picked both up correctly, but the version-superset monolith in _types.py wasn't relaxed to match. As a result parse_server_result("tools/call", "2026-07-28", ...) would reject a spec-valid InputRequiredResult carrying a URL-mode elicitation at the monolith step (the ElicitRequest arm fails for missing elicitationId). What changed src/mcp/types/_types.py: ElicitRequestURLParams.elicitation_id is now str | None = None with a version note. The v2025_11_25 surface package still requires it on the wire, so 2025 callers are unchanged. Same superset pattern CancelledNotificationParams.request_id already uses. src/mcp/types/_types.py: CancelledNotificationParams.request_id docstring updated to note that 2026-07-28 makes the field required again and narrows it to client-issued requests. tests/types/test_methods.py: new test pinning that a 2026 InputRequiredResult with a URL elicit (no elicitationId) parses through both steps. tests/interaction/lowlevel/test_elicitation.py: capture-list type widened to list[str | None] to match the relaxed field. The elicit_url / send_elicit_complete helper signatures in peer.py / server/session.py / server/mcpserver/context.py are intentionally not touched here; those are 2025-11-25 API and version-gating them belongs with #2898 / #2904. How Has This Been Tested? pyright, ruff, ./scripts/test (full suite, 100% coverage, strict-no-cover clean). The new test in tests/types/test_methods.py is the repro from the review comment. Breaking Changes mcp.types.ElicitRequestURLParams can now be constructed without elicitation_id. Existing constructors that pass it are unaffected. Types of changes Bug fix (non-breaking change which fixes an issue) New feature (non-breaking change which adds functionality) Breaking change (fix or feature that would cause existing functionality to change) Documentation update Checklist I have read the MCP Documentation My code follows the repository's style guidelines New and existing tests pass locally I have added appropriate error handling I have added or updated documentation as needed AI Disclaimer

Open Graph Description: Follow-up to #2912, addressing the two review comments that landed after merge. Motivation and Context #2912 re-vendored the 2026-07-28 draft schema, which dropped elicitationId from ElicitRequestU...

X Description: Follow-up to #2912, addressing the two review comments that landed after merge. Motivation and Context #2912 re-vendored the 2026-07-28 draft schema, which dropped elicitationId from ElicitRequestU...

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

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:78ad4024-2c4c-74fc-acbe-6ff10c729199
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idA2E0:5AB97:50921D:6F5057:6A5A4E39
html-safe-nonce0a7b293834e93199ab019c6fe2fd7bd9fdf4b78cf4d29095b6fa5c77bdb7f0c9
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMkUwOjVBQjk3OjUwOTIxRDo2RjUwNTc6NkE1QTRFMzkiLCJ2aXNpdG9yX2lkIjoiNzMxMTY0ODU1MTQ5NDg5NzIxMCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac9900c0a04a6d4ce6e0e32eb9f4be231d193356f9673f949d0138cf4be1ba321b
hovercard-subject-tagpull_request:3899392746
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/2913/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:altFollow-up to #2912, addressing the two review comments that landed after merge. Motivation and Context #2912 re-vendored the 2026-07-28 draft schema, which dropped elicitationId from ElicitRequestU...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Nonea793cd1fa898929111edad5857ee1f24ecf4bf7702525e67357cabc9df136fc3
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
release311929384671aa49f385b6fcc680ae3933943203
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/modelcontextprotocol/python-sdk/pull/2913/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmodelcontextprotocol%2Fpython-sdk%2Fpull%2F2913%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%2F2913%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/2913/files
Reloadhttps://github.com/modelcontextprotocol/python-sdk/pull/2913/files
Reloadhttps://github.com/modelcontextprotocol/python-sdk/pull/2913/files
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/2913/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 256 https://github.com/modelcontextprotocol/python-sdk/issues
Pull requests 303 https://github.com/modelcontextprotocol/python-sdk/pulls
Actions https://github.com/modelcontextprotocol/python-sdk/actions
Projects https://github.com/modelcontextprotocol/python-sdk/projects
Models https://github.com/modelcontextprotocol/python-sdk/models
Security and quality 6 https://github.com/modelcontextprotocol/python-sdk/security
Insights https://github.com/modelcontextprotocol/python-sdk/pulse
Code https://github.com/modelcontextprotocol/python-sdk
Issues https://github.com/modelcontextprotocol/python-sdk/issues
Pull requests https://github.com/modelcontextprotocol/python-sdk/pulls
Actions https://github.com/modelcontextprotocol/python-sdk/actions
Projects https://github.com/modelcontextprotocol/python-sdk/projects
Models https://github.com/modelcontextprotocol/python-sdk/models
Security and quality https://github.com/modelcontextprotocol/python-sdk/security
Insights https://github.com/modelcontextprotocol/python-sdk/pulse
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
maxisbeyhttps://github.com/maxisbey
mainhttps://github.com/modelcontextprotocol/python-sdk/tree/main
types-monolith-2026-followuphttps://github.com/modelcontextprotocol/python-sdk/tree/types-monolith-2026-followup
Conversation 4 https://github.com/modelcontextprotocol/python-sdk/pull/2913
Commits 1 https://github.com/modelcontextprotocol/python-sdk/pull/2913/commits
Checks 33 https://github.com/modelcontextprotocol/python-sdk/pull/2913/checks
Files changed 3 https://github.com/modelcontextprotocol/python-sdk/pull/2913/files
Relax monolith ElicitRequestURLParams.elicitation_id for 2026-07-28 https://github.com/modelcontextprotocol/python-sdk/pull/2913/files#top
Show all changes 1 commit https://github.com/modelcontextprotocol/python-sdk/pull/2913/files
4749ce3 Relax monolith ElicitRequestURLParams.elicitation_id to optional for … maxisbey Jun 19, 2026 https://github.com/modelcontextprotocol/python-sdk/pull/2913/commits/4749ce3284e5d043df39030bdc7966c6d4958442
Clear filters https://github.com/modelcontextprotocol/python-sdk/pull/2913/files
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/2913/files
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/2913/files
_types.py https://github.com/modelcontextprotocol/python-sdk/pull/2913/files#diff-727bcd5cda4a440f63005368c3cbc5f6308f40630901166fd456039c52d3363e
test_elicitation.py https://github.com/modelcontextprotocol/python-sdk/pull/2913/files#diff-5585defd557eb80768153a7b77139020888710d033099a70f574721eea73cb53
test_methods.py https://github.com/modelcontextprotocol/python-sdk/pull/2913/files#diff-784326fe173098cf01a6bf0e23d0d873d706a3e7183ca4cc7044bf7d1f25fc2d
src/mcp/types/_types.pyhttps://github.com/modelcontextprotocol/python-sdk/pull/2913/files#diff-727bcd5cda4a440f63005368c3cbc5f6308f40630901166fd456039c52d3363e
View file https://github.com/modelcontextprotocol/python-sdk/blob/4749ce3284e5d043df39030bdc7966c6d4958442/src/mcp/types/_types.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/modelcontextprotocol/python-sdk/pull/2913/{{ revealButtonHref }}
https://github.com/modelcontextprotocol/python-sdk/pull/2913/files#diff-727bcd5cda4a440f63005368c3cbc5f6308f40630901166fd456039c52d3363e
https://github.com/modelcontextprotocol/python-sdk/pull/2913/checks?check_run_id=82374776400
claudehttps://github.com/apps/claude
Jun 19, 2026https://github.com/modelcontextprotocol/python-sdk/pull/2913/files#r3443314597
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/2913/files
https://github.com/modelcontextprotocol/python-sdk/pull/2913/files#diff-727bcd5cda4a440f63005368c3cbc5f6308f40630901166fd456039c52d3363e
https://github.com/modelcontextprotocol/python-sdk/pull/2913/files#diff-727bcd5cda4a440f63005368c3cbc5f6308f40630901166fd456039c52d3363e
https://github.com/modelcontextprotocol/python-sdk/pull/2913/checks?check_run_id=82374776400
claudehttps://github.com/apps/claude
Jun 19, 2026https://github.com/modelcontextprotocol/python-sdk/pull/2913/files#r3443314603
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/2913/files
https://github.com/modelcontextprotocol/python-sdk/pull/2913/files#diff-727bcd5cda4a440f63005368c3cbc5f6308f40630901166fd456039c52d3363e
tests/interaction/lowlevel/test_elicitation.pyhttps://github.com/modelcontextprotocol/python-sdk/pull/2913/files#diff-5585defd557eb80768153a7b77139020888710d033099a70f574721eea73cb53
View file https://github.com/modelcontextprotocol/python-sdk/blob/4749ce3284e5d043df39030bdc7966c6d4958442/tests/interaction/lowlevel/test_elicitation.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/modelcontextprotocol/python-sdk/pull/2913/{{ revealButtonHref }}
https://github.com/modelcontextprotocol/python-sdk/pull/2913/files#diff-5585defd557eb80768153a7b77139020888710d033099a70f574721eea73cb53
https://github.com/modelcontextprotocol/python-sdk/pull/2913/files#diff-5585defd557eb80768153a7b77139020888710d033099a70f574721eea73cb53
tests/types/test_methods.pyhttps://github.com/modelcontextprotocol/python-sdk/pull/2913/files#diff-784326fe173098cf01a6bf0e23d0d873d706a3e7183ca4cc7044bf7d1f25fc2d
View file https://github.com/modelcontextprotocol/python-sdk/blob/4749ce3284e5d043df39030bdc7966c6d4958442/tests/types/test_methods.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/modelcontextprotocol/python-sdk/pull/2913/{{ revealButtonHref }}
https://github.com/modelcontextprotocol/python-sdk/pull/2913/files#diff-784326fe173098cf01a6bf0e23d0d873d706a3e7183ca4cc7044bf7d1f25fc2d
https://github.com/modelcontextprotocol/python-sdk/pull/2913/files#diff-784326fe173098cf01a6bf0e23d0d873d706a3e7183ca4cc7044bf7d1f25fc2d
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/2913/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.