René's URL Explorer Experiment


Title: Hand TypedDict tool results to pydantic natively by maxisbey · Pull Request #3331 · modelcontextprotocol/python-sdk · GitHub

Open Graph Title: Hand TypedDict tool results to pydantic natively by maxisbey · Pull Request #3331 · modelcontextprotocol/python-sdk

X Title: Hand TypedDict tool results to pydantic natively by maxisbey · Pull Request #3331 · modelcontextprotocol/python-sdk

Description: The official Python SDK for Model Context Protocol servers and clients - Hand TypedDict tool results to pydantic natively by maxisbey · Pull Request #3331 · modelcontextprotocol/python-sdk

Open Graph Description: MCPServer now validates and serializes TypedDict tool results through pydantic's own TypedDict support instead of mirroring the TypedDict into a hand-built BaseModel. Fixes #3224 Fixes #3227 Mo...

X Description: MCPServer now validates and serializes TypedDict tool results through pydantic's own TypedDict support instead of mirroring the TypedDict into a hand-built BaseModel. Fixes #3224 Fixes #322...

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

X: @github

direct link

Domain: github.com

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/_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:988ede03-6613-3413-153f-12ef9bcc33f5
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id9CF4:14ECB:53F96D:6CA578:6B00DA72
html-safe-nonce3f1e42869bc89147ab4db8b22d743d66d97765993ec82cb6e550cfe7ede8c3cf
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5Q0Y0OjE0RUNCOjUzRjk2RDo2Q0E1Nzg6NkIwMERBNzIiLCJ2aXNpdG9yX2lkIjoiMjAxMjg3Nzc4OTg5NTY0NTgxMCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac54362f7e0b2fdf578eddc68681cbc39e244848b049211ed43407f1bc1d1716ac
hovercard-subject-tagpull_request:4304922889
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///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/modelcontextprotocol/python-sdk/3331/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/cd8999cacf0faa73c3dff6e1335fda486b6b88e30286ccab33b501afa4619903/modelcontextprotocol/python-sdk/pull/3331
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/cd8999cacf0faa73c3dff6e1335fda486b6b88e30286ccab33b501afa4619903/modelcontextprotocol/python-sdk/pull/3331
og:image:altMCPServer now validates and serializes TypedDict tool results through pydantic's own TypedDict support instead of mirroring the TypedDict into a hand-built BaseModel. Fixes #3224 Fixes #3227 Mo...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamemaxisbey
hostnamegithub.com
expected-hostnamegithub.com
Nonea481f62a1e04c9b9bdcb5628230682c66d59006f5b13b080f79cba84a176905b
turbo-cache-controlno-cache
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
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release84c8c5cc25e2fb7f2308428458538436baecc6d2
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-namepull-requests

Links:

Skip to contenthttps://github.com/modelcontextprotocol/python-sdk/pull/3331#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmodelcontextprotocol%2Fpython-sdk%2Fpull%2F3331
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%2F3331
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=modelcontextprotocol%2Fpython-sdk
Reloadhttps://github.com/modelcontextprotocol/python-sdk/pull/3331
Reloadhttps://github.com/modelcontextprotocol/python-sdk/pull/3331
Reloadhttps://github.com/modelcontextprotocol/python-sdk/pull/3331
modelcontextprotocolhttps://github.com/modelcontextprotocol
python-sdkhttps://github.com/modelcontextprotocol/python-sdk
Codehttps://github.com/modelcontextprotocol/python-sdk
Issues308 (308)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
https://github.com/modelcontextprotocol/python-sdk
maxisbeyhttps://github.com/maxisbey
mainhttps://github.com/modelcontextprotocol/python-sdk/tree/main
fix/typeddict-native-outputhttps://github.com/modelcontextprotocol/python-sdk/tree/fix/typeddict-native-output
Conversationhttps://github.com/modelcontextprotocol/python-sdk/pull/3331
Commits2 (2)https://github.com/modelcontextprotocol/python-sdk/pull/3331/commits
Checkshttps://github.com/modelcontextprotocol/python-sdk/pull/3331/checks
Files changedhttps://github.com/modelcontextprotocol/python-sdk/pull/3331/files
Hand TypedDict tool results to pydantic nativelyhttps://github.com/modelcontextprotocol/python-sdk/pull/3331#top
maxisbeyhttps://github.com/maxisbey
mainhttps://github.com/modelcontextprotocol/python-sdk/tree/main
fix/typeddict-native-outputhttps://github.com/modelcontextprotocol/python-sdk/tree/fix/typeddict-native-output
https://github.com/maxisbey
maxisbeyhttps://github.com/maxisbey
Aug 18, 2026https://github.com/modelcontextprotocol/python-sdk/pull/3331#issue-5182178699
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/3331
#3224https://github.com/modelcontextprotocol/python-sdk/issues/3224
#3227https://github.com/modelcontextprotocol/python-sdk/issues/3227
structuredContent for a TypedDict return injects nulls for NotRequired keys, violating the tool's own outputSchema #3224https://github.com/modelcontextprotocol/python-sdk/issues/3224
NotRequired TypedDict return annotation raises PydanticForbiddenQualifier at tool registration on Python 3.10 #3227https://github.com/modelcontextprotocol/python-sdk/issues/3227
#3225https://github.com/modelcontextprotocol/python-sdk/pull/3225
@sainikhiljulurihttps://github.com/sainikhiljuluri
@gingeekrishnahttps://github.com/gingeekrishna
MCP Documentationhttps://modelcontextprotocol.io
#3337https://github.com/modelcontextprotocol/python-sdk/issues/3337
#3100https://github.com/modelcontextprotocol/python-sdk/issues/3100
AI Disclaimerhttps://gist.github.com/maxisbey/6123d132484e4c533eab519a2800693d
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/3331
https://github.com/maxisbey
Hand TypedDict tool results to pydantic nativelyhttps://github.com/modelcontextprotocol/python-sdk/pull/3331/commits/1e90f40a0bb20e07f6f9ae824b5c90349f970a96
1e90f40https://github.com/modelcontextprotocol/python-sdk/pull/3331/commits/1e90f40a0bb20e07f6f9ae824b5c90349f970a96
#3224https://github.com/modelcontextprotocol/python-sdk/issues/3224
#3227https://github.com/modelcontextprotocol/python-sdk/issues/3227
#3224https://github.com/modelcontextprotocol/python-sdk/issues/3224
#3227https://github.com/modelcontextprotocol/python-sdk/issues/3227
https://github.com/apps/github-actions
github-actionshttps://github.com/apps/github-actions
Aug 18, 2026https://github.com/modelcontextprotocol/python-sdk/pull/3331#issuecomment-5328692715
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/3331
https://pr-3331.mcp-python-docs.pages.devhttps://pr-3331.mcp-python-docs.pages.dev
https://97f6bc13.mcp-python-docs.pages.devhttps://97f6bc13.mcp-python-docs.pages.dev
@maxisbeyhttps://github.com/maxisbey
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/3331
https://github.com/maxisbey
maxisbeyhttps://github.com/maxisbey
August 18, 2026 13:21https://github.com/modelcontextprotocol/python-sdk/pull/3331#event-29621490637
https://github.com/maxisbey
maxisbeyhttps://github.com/maxisbey
Aug 18, 2026 https://github.com/modelcontextprotocol/python-sdk/pull/3331#pullrequestreview-4961471472
View reviewed changes https://github.com/modelcontextprotocol/python-sdk/pull/3331/files/1e90f40a0bb20e07f6f9ae824b5c90349f970a96
src/mcp/server/mcpserver/utilities/func_metadata.pyhttps://github.com/modelcontextprotocol/python-sdk/pull/3331/files/1e90f40a0bb20e07f6f9ae824b5c90349f970a96#diff-5584d2273ac6a270822fe54fb95a27e03d6895afd1216e8bd71d1850e8f09676
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/3331
https://github.com/apps/cubic-dev-ai
cubic-dev-aihttps://github.com/apps/cubic-dev-ai
Aug 18, 2026 https://github.com/modelcontextprotocol/python-sdk/pull/3331#pullrequestreview-4961529127
View reviewed changes https://github.com/modelcontextprotocol/python-sdk/pull/3331/files/1e90f40a0bb20e07f6f9ae824b5c90349f970a96
cubic-dev-aihttps://github.com/apps/cubic-dev-ai
https://github.com/modelcontextprotocol/python-sdk/pull/3331#pullrequestreview-4961529127
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Re-trigger cubichttps://www.cubic.dev/action/re-review/pr/modelcontextprotocol/python-sdk/3331/ai_pr_review_1787059292840_a7d058aa-2fbc-4fa7-9d0a-06d64bdc5cb0?returnTo=https%3A%2F%2Fgithub.com%2Fmodelcontextprotocol%2Fpython-sdk%2Fpull%2F3331
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/3331
https://github.com/apps/claude
claudehttps://github.com/apps/claude
Aug 18, 2026 https://github.com/modelcontextprotocol/python-sdk/pull/3331#pullrequestreview-4961604482
View reviewed changes https://github.com/modelcontextprotocol/python-sdk/pull/3331/files/1e90f40a0bb20e07f6f9ae824b5c90349f970a96
claudehttps://github.com/apps/claude
https://github.com/modelcontextprotocol/python-sdk/pull/3331#pullrequestreview-4961604482
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/3331
src/mcp/server/mcpserver/utilities/func_metadata.pyhttps://github.com/modelcontextprotocol/python-sdk/pull/3331/files/1e90f40a0bb20e07f6f9ae824b5c90349f970a96#diff-5584d2273ac6a270822fe54fb95a27e03d6895afd1216e8bd71d1850e8f09676
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/3331
src/mcp/server/mcpserver/utilities/func_metadata.pyhttps://github.com/modelcontextprotocol/python-sdk/pull/3331/files/1e90f40a0bb20e07f6f9ae824b5c90349f970a96#diff-5584d2273ac6a270822fe54fb95a27e03d6895afd1216e8bd71d1850e8f09676
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/3331
docs/servers/structured-output.mdhttps://github.com/modelcontextprotocol/python-sdk/pull/3331/files/1e90f40a0bb20e07f6f9ae824b5c90349f970a96#diff-6cdb67ce182e70a37d1f810c4d392afc68e9dcd0e7b7904fe608e6e33ce42b92
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/3331
https://github.com/maxisbey
Derive the output validator on FuncMetadata construction; review fixeshttps://github.com/modelcontextprotocol/python-sdk/pull/3331/commits/053ffdac345b12c14e0175e22a0edec6f8f6413e
053ffdahttps://github.com/modelcontextprotocol/python-sdk/pull/3331/commits/053ffdac345b12c14e0175e22a0edec6f8f6413e
https://github.com/maxisbey
maxisbeyhttps://github.com/maxisbey
Aug 19, 2026 https://github.com/modelcontextprotocol/python-sdk/pull/3331#ref-issue-5194736439
Recursive tool return type publishes an outputSchema with no root type, failing tools/list on 2025-11-25 sessions #3337 https://github.com/modelcontextprotocol/python-sdk/issues/3337
https://github.com/maxisbey
maxisbeyhttps://github.com/maxisbey
Aug 20, 2026https://github.com/modelcontextprotocol/python-sdk/pull/3331#issuecomment-5357355419
053ffdahttps://github.com/modelcontextprotocol/python-sdk/commit/053ffdac345b12c14e0175e22a0edec6f8f6413e
#3337https://github.com/modelcontextprotocol/python-sdk/issues/3337
#3100https://github.com/modelcontextprotocol/python-sdk/issues/3100
#3118https://github.com/modelcontextprotocol/python-sdk/pull/3118
AI Disclaimerhttps://gist.github.com/maxisbey/6123d132484e4c533eab519a2800693d
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/3331
https://github.com/maxisbey
maxisbeyhttps://github.com/maxisbey
0cee624https://github.com/modelcontextprotocol/python-sdk/commit/0cee6249bad02d67a96678973f9db383519c64b4
Aug 20, 2026https://github.com/modelcontextprotocol/python-sdk/pull/3331#event-29749932642
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/3331
https://github.com/maxisbey
maxisbeyhttps://github.com/maxisbey
August 20, 2026 14:36https://github.com/modelcontextprotocol/python-sdk/pull/3331#event-29749934701
https://github.com/maxisbey
maxisbeyhttps://github.com/maxisbey
Aug 24, 2026 https://github.com/modelcontextprotocol/python-sdk/pull/3331#ref-pullrequest-5237822184
Give recursive tool return types an object-rooted output schema #3376 https://github.com/modelcontextprotocol/python-sdk/pull/3376
https://github.com/anneheartrecord
anneheartrecordhttps://github.com/anneheartrecord
Aug 25, 2026 https://github.com/modelcontextprotocol/python-sdk/pull/3331#ref-pullrequest-4709093962
fix(mcpserver): preserve Annotated/Field metadata for dict[str, T] return types #2939 https://github.com/modelcontextprotocol/python-sdk/pull/2939
https://github.co/hiddenchars
https://github.com/modelcontextprotocol/python-sdk/pull/{{ revealButtonHref }}
Sign up for freehttps://github.com/join?source=comment-repo
Sign in to commenthttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmodelcontextprotocol%2Fpython-sdk%2Fpull%2F3331
https://github.com/apps/cubic-dev-ai
cubic-dev-ai[bot] https://github.com/apps/cubic-dev-ai
https://github.com/modelcontextprotocol/python-sdk/pull/3331/files/1e90f40a0bb20e07f6f9ae824b5c90349f970a96
https://github.com/apps/claude
claude[bot] https://github.com/apps/claude
https://github.com/modelcontextprotocol/python-sdk/pull/3331/files/1e90f40a0bb20e07f6f9ae824b5c90349f970a96
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/3331
NotRequired TypedDict return annotation raises PydanticForbiddenQualifier at tool registration on Python 3.10 https://github.com/modelcontextprotocol/python-sdk/issues/3227
structuredContent for a TypedDict return injects nulls for NotRequired keys, violating the tool's own outputSchema https://github.com/modelcontextprotocol/python-sdk/issues/3224
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/3331
https://github.com/maxisbey
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.