| react-profiling | 0 |
| react-import-map | react,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/commits(.:format) |
| route-controller | pull_requests |
| route-action | commits |
| fetch-nonce | v2:4e077f82-e98b-e9c1-6991-bfd261d1e64b |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | D8EA:3D3A06:DE5E68:131DF54:6B05C369 |
| html-safe-nonce | 70f4a37c3181b9f98f961998075db2c923236570954333b98457d7b93ec4fe92 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEOEVBOjNEM0EwNjpERTVFNjg6MTMxREY1NDo2QjA1QzM2OSIsInZpc2l0b3JfaWQiOiIyMzMxNDI5MTIzMzI4OTUxMTQ1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | dcf74eff7c218972cec643fc07b9c33a7ec3f2121d965f5498be3a563b7770d7 |
| hovercard-subject-tag | pull_request:4290724030 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | ///pull_requests/show/commits |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/modelcontextprotocol/python-sdk/pull/3320/commits |
| twitter:image | https://opengraph.githubassets.com/1628f709691b2ef53004c73034340e1b9017429601381873b2e7c63b82ee6943/modelcontextprotocol/python-sdk/pull/3320 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/1628f709691b2ef53004c73034340e1b9017429601381873b2e7c63b82ee6943/modelcontextprotocol/python-sdk/pull/3320 |
| og:image:alt | Four small MCPServer/client fixes that remove traps the server docs would otherwise have to explain around. One commit per item so they can be reviewed (or dropped) independently.
Behaviour change ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | maxisbey |
| hostname | github.com |
| expected-hostname | github.com |
| None | 13b1c5df76a26b2d8420784ae7f9fb9c438fc6cb0c95a689d26fb49879d8e556 |
| turbo-cache-control | no-cache |
| go-import | github.com/modelcontextprotocol/python-sdk git https://github.com/modelcontextprotocol/python-sdk.git |
| octolytics-dimension-user_id | 182288589 |
| octolytics-dimension-user_login | modelcontextprotocol |
| octolytics-dimension-repository_id | 862584018 |
| octolytics-dimension-repository_nwo | modelcontextprotocol/python-sdk |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 862584018 |
| octolytics-dimension-repository_network_root_nwo | modelcontextprotocol/python-sdk |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | bcf1e3e7f14567fd89b0218ee06dd0aad8f1d288 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | pull-requests |
| Skip to content | https://github.com/modelcontextprotocol/python-sdk/pull/3320/commits#start-of-content |
| https://github.com/ |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmodelcontextprotocol%2Fpython-sdk%2Fpull%2F3320%2Fcommits |
| GitHubRepository hosting, code review, and collaboration | https://github.com/platform |
| CopilotAI coding agent for tasks, projects, and automated work | https://github.com/features/copilot |
| ActionsCI/CD and automation | https://github.com/features/actions |
| Code QualityQuality analysis, fixes, and enforcement | https://github.com/features/code-quality |
| CodespacesCloud development environments | https://github.com/features/codespaces |
| Code SecurityVulnerability detection and remediation | https://github.com/security/advanced-security/code-security |
| Secret ProtectionSecret scanning and leak prevention | https://github.com/security/advanced-security/secret-protection |
| All Features | https://github.com/features |
| Documentation | https://docs.github.com/en |
| Training | https://learn.github.com/skills |
| Certifications | https://learn.github.com/credentials |
| Build with Copilot | https://github.com/features/ai |
| Customize Copilot | https://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview |
| Integrations | https://github.com/marketplace |
| Trending repos | https://github.com/trending |
| GitHub Sponsors | https://github.com/open-source/sponsors |
| Developer articles | https://github.com/resources/articles |
| ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place. | https://github.blog/changelog/ |
| Enterprises | https://github.com/enterprise |
| Team | https://github.com/team |
| Startups | https://github.com/enterprise/startups |
| Nonprofits | https://github.com/solutions/industry/nonprofits |
| Healthcare | https://github.com/solutions/industry/healthcare |
| Financial services | https://github.com/solutions/industry/financial-services |
| Manufacturing | https://github.com/solutions/industry/manufacturing |
| Government | https://github.com/solutions/industry/government |
| See all industries | https://github.com/solutions/industry |
| Why GitHub | https://github.com/why-github |
| Customer Stories | https://github.com/customer-stories |
| Business insights | https://github.com/solutions/executive-insights |
| Trust Center | https://github.com/trust-center |
| GitHub Advanced SecurityEnterprise-grade code security | https://github.com/security/advanced-security |
| Copilot for businessEnterprise-grade AI features | https://github.com/features/copilot/copilot-business |
| Premium SupportEnterprise-grade 24/7 support | https://github.com/enterprise/premium-support |
| Documentation | https://docs.github.com/en |
| Resource center | https://github.com/resources |
| Blog | https://github.blog/ |
| Events & webinars | https://github.com/resources/events |
| Community Forum | https://github.com/orgs/community/discussions |
| Customer Stories | https://github.com/customer-stories |
| Integrations | https://github.com/marketplace |
| Customer support | https://help.github.com/ |
| Training | https://learn.github.com/skills |
| GitHub Status | https://www.githubstatus.com/ |
| About | https://github.com/about |
| Partners | https://github.com/partners |
| Changelog | https://github.blog/changelog/ |
| GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub. | https://githubuniverse.com/ |
| Pricing | https://github.com/pricing |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmodelcontextprotocol%2Fpython-sdk%2Fpull%2F3320%2Fcommits |
| 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%2Fcommits&source=header-repo&source_repo=modelcontextprotocol%2Fpython-sdk |
| Reload | https://github.com/modelcontextprotocol/python-sdk/pull/3320/commits |
| Reload | https://github.com/modelcontextprotocol/python-sdk/pull/3320/commits |
| Reload | https://github.com/modelcontextprotocol/python-sdk/pull/3320/commits |
| modelcontextprotocol | https://github.com/modelcontextprotocol |
| python-sdk | https://github.com/modelcontextprotocol/python-sdk |
| Code | https://github.com/modelcontextprotocol/python-sdk |
| Issues320 (320) | https://github.com/modelcontextprotocol/python-sdk/issues |
| Pull requests112 (112) | https://github.com/modelcontextprotocol/python-sdk/pulls |
| Actions | https://github.com/modelcontextprotocol/python-sdk/actions |
| Projects | https://github.com/modelcontextprotocol/python-sdk/projects |
| Security and quality12 (12) | https://github.com/modelcontextprotocol/python-sdk/security |
| Insights | https://github.com/modelcontextprotocol/python-sdk/insights |
| https://github.com/modelcontextprotocol/python-sdk |
| maxisbey | https://github.com/maxisbey |
| main | https://github.com/modelcontextprotocol/python-sdk/tree/main |
| mcpserver-content-and-prompt-ergonomics | https://github.com/modelcontextprotocol/python-sdk/tree/mcpserver-content-and-prompt-ergonomics |
| Conversation | https://github.com/modelcontextprotocol/python-sdk/pull/3320 |
| Commits11 (11) | https://github.com/modelcontextprotocol/python-sdk/pull/3320/commits |
| Checks | https://github.com/modelcontextprotocol/python-sdk/pull/3320/checks |
| Files changed | https://github.com/modelcontextprotocol/python-sdk/pull/3320/files |
| MCPServer: content-block returns are unstructured, prompt messages take Image/Audio | https://github.com/modelcontextprotocol/python-sdk/pull/3320/commits#top |
| maxisbey | https://github.com/maxisbey |
| main | https://github.com/modelcontextprotocol/python-sdk/tree/main |
| mcpserver-content-and-prompt-ergonomics | https://github.com/modelcontextprotocol/python-sdk/tree/mcpserver-content-and-prompt-ergonomics |
| Remove stale TODO from Client.send_roots_list_changed | https://github.com/modelcontextprotocol/python-sdk/pull/3320/commits/02a0c5e68fd56d3f0a15344fb505eba6223c390f |
| https://github.com/maxisbey |
| maxisbey | https://github.com/modelcontextprotocol/python-sdk/commits?author=maxisbey |
| 02a0c5e | https://github.com/modelcontextprotocol/python-sdk/pull/3320/commits/02a0c5e68fd56d3f0a15344fb505eba6223c390f |
| https://github.com/modelcontextprotocol/python-sdk/tree/02a0c5e68fd56d3f0a15344fb505eba6223c390f |
| Accept Image and Audio helpers as prompt message content | https://github.com/modelcontextprotocol/python-sdk/pull/3320/commits/523418995d04f74d215da6c9af0a9b3c38d82b4e |
| https://github.com/maxisbey |
| maxisbey | https://github.com/modelcontextprotocol/python-sdk/commits?author=maxisbey |
| 5234189 | https://github.com/modelcontextprotocol/python-sdk/pull/3320/commits/523418995d04f74d215da6c9af0a9b3c38d82b4e |
| https://github.com/modelcontextprotocol/python-sdk/tree/523418995d04f74d215da6c9af0a9b3c38d82b4e |
| Treat content-block, Image and Audio return annotations as unstructured tool output | https://github.com/modelcontextprotocol/python-sdk/pull/3320/commits/0be83f5e4f82fd60d66697274209804b72df1c47 |
| https://github.com/maxisbey |
| maxisbey | https://github.com/modelcontextprotocol/python-sdk/commits?author=maxisbey |
| 0be83f5 | https://github.com/modelcontextprotocol/python-sdk/pull/3320/commits/0be83f5e4f82fd60d66697274209804b72df1c47 |
| https://github.com/modelcontextprotocol/python-sdk/tree/0be83f5e4f82fd60d66697274209804b72df1c47 |
| Let MCPServer.add_prompt take a function; export prompt Message classes | https://github.com/modelcontextprotocol/python-sdk/pull/3320/commits/d26de07100428444cec66fc1da648703c6ca35fc |
| https://github.com/maxisbey |
| maxisbey | https://github.com/modelcontextprotocol/python-sdk/commits?author=maxisbey |
| d26de07 | https://github.com/modelcontextprotocol/python-sdk/pull/3320/commits/d26de07100428444cec66fc1da648703c6ca35fc |
| https://github.com/modelcontextprotocol/python-sdk/tree/d26de07100428444cec66fc1da648703c6ca35fc |
| Leave the migration guide alone; these are 2.x fixes, not v1->v2 breaks | https://github.com/modelcontextprotocol/python-sdk/pull/3320/commits/988fbbf711de39f4ac3d8476c376a70194b60cec |
| https://github.com/maxisbey |
| maxisbey | https://github.com/modelcontextprotocol/python-sdk/commits?author=maxisbey |
| 988fbbf | https://github.com/modelcontextprotocol/python-sdk/pull/3320/commits/988fbbf711de39f4ac3d8476c376a70194b60cec |
| https://github.com/modelcontextprotocol/python-sdk/tree/988fbbf711de39f4ac3d8476c376a70194b60cec |
| Drop the add_prompt(fn) overload; keep only the Message re-exports | https://github.com/modelcontextprotocol/python-sdk/pull/3320/commits/b1f7a298dbcf905addb18bd4ab2d0c69ba28f436 |
| https://github.com/maxisbey |
| maxisbey | https://github.com/modelcontextprotocol/python-sdk/commits?author=maxisbey |
| b1f7a29 | https://github.com/modelcontextprotocol/python-sdk/pull/3320/commits/b1f7a298dbcf905addb18bd4ab2d0c69ba28f436 |
| https://github.com/modelcontextprotocol/python-sdk/tree/b1f7a298dbcf905addb18bd4ab2d0c69ba28f436 |
| Review round: mirror _convert_to_content in the content rule; keep prompts and templates out of it | https://github.com/modelcontextprotocol/python-sdk/pull/3320/commits/9cc83c931640f7f32f6844679d9863ec29af5726 |
| https://github.com/maxisbey |
| maxisbey | https://github.com/modelcontextprotocol/python-sdk/commits?author=maxisbey |
| 9cc83c9 | https://github.com/modelcontextprotocol/python-sdk/pull/3320/commits/9cc83c931640f7f32f6844679d9863ec29af5726 |
| https://github.com/modelcontextprotocol/python-sdk/tree/9cc83c931640f7f32f6844679d9863ec29af5726 |
| Prompt functions may return bare content blocks, Image or Audio | https://github.com/modelcontextprotocol/python-sdk/pull/3320/commits/2251112243f6521b662b9021d438e9514197609c |
| https://github.com/maxisbey |
| maxisbey | https://github.com/modelcontextprotocol/python-sdk/commits?author=maxisbey |
| 2251112 | https://github.com/modelcontextprotocol/python-sdk/pull/3320/commits/2251112243f6521b662b9021d438e9514197609c |
| https://github.com/modelcontextprotocol/python-sdk/tree/2251112243f6521b662b9021d438e9514197609c |
| Review nits: Annotated recursion looks at the type only; drop Iterable from content origins; prompt() docstring | https://github.com/modelcontextprotocol/python-sdk/pull/3320/commits/6f95028f181c682fb26be72219de57302780cb09 |
| https://github.com/maxisbey |
| maxisbey | https://github.com/modelcontextprotocol/python-sdk/commits?author=maxisbey |
| 6f95028 | https://github.com/modelcontextprotocol/python-sdk/pull/3320/commits/6f95028f181c682fb26be72219de57302780cb09 |
| https://github.com/modelcontextprotocol/python-sdk/tree/6f95028f181c682fb26be72219de57302780cb09 |
| Prompt render: let conversion errors surface; validate dict messages once | https://github.com/modelcontextprotocol/python-sdk/pull/3320/commits/6015f97b3150fe9cbab544657a4f55de4f9358bd |
| https://github.com/maxisbey |
| maxisbey | https://github.com/modelcontextprotocol/python-sdk/commits?author=maxisbey |
| 6015f97 | https://github.com/modelcontextprotocol/python-sdk/pull/3320/commits/6015f97b3150fe9cbab544657a4f55de4f9358bd |
| https://github.com/modelcontextprotocol/python-sdk/tree/6015f97b3150fe9cbab544657a4f55de4f9358bd |
| Document that path-backed Image/Audio message content reads the file (Raises: OSError) | https://github.com/modelcontextprotocol/python-sdk/pull/3320/commits/4fadfddab167951ebd9b3762eda415ff53da67f9 |
| https://github.com/maxisbey |
| maxisbey | https://github.com/modelcontextprotocol/python-sdk/commits?author=maxisbey |
| 4fadfdd | https://github.com/modelcontextprotocol/python-sdk/pull/3320/commits/4fadfddab167951ebd9b3762eda415ff53da67f9 |
| https://github.com/modelcontextprotocol/python-sdk/tree/4fadfddab167951ebd9b3762eda415ff53da67f9 |
|
| https://github.com |
| Terms | https://docs.github.com/site-policy/github-terms/github-terms-of-service |
| Privacy | https://docs.github.com/site-policy/privacy-policies/github-privacy-statement |
| Security | https://github.com/security |
| Status | https://www.githubstatus.com/ |
| Community | https://github.community/ |
| Docs | https://docs.github.com/ |
| Contact | https://support.github.com?tags=dotcom-footer |