Skip to content
Navigation Menu
Sign in
Appearance settings
Platform
AI CODE CREATION
GitHub Copilot
Write better code with AI
GitHub Copilot app
Direct agents from issue to merge
MCP Registry
Integrate external tools
DEVELOPER WORKFLOWS
Actions
Automate any workflow
Codespaces
Instant dev environments
Issues
Plan and track work
Code Review
Manage code changes
Code Quality
Enforce quality at merge
APPLICATION SECURITY
GitHub Advanced Security
Find and fix vulnerabilities
Code security
Secure your code as you build
Secret protection
Stop leaks before they start
EXPLORE
Why GitHub
Documentation
Blog
Changelog
Marketplace
View all features
Solutions
BY COMPANY SIZE
Enterprises
Small and medium teams
Startups
Nonprofits
BY USE CASE
App Modernization
DevSecOps
DevOps
CI/CD
View all use cases
BY INDUSTRY
Healthcare
Financial services
Manufacturing
Government
View all industries
View all solutions
Resources
EXPLORE BY TOPIC
AI
Software Development
DevOps
Security
View all topics
EXPLORE BY TYPE
Customer stories
Events & webinars
Ebooks & reports
Business insights
GitHub Skills
SUPPORT & SERVICES
Documentation
Customer support
Community forum
Trust center
Partners
View all resources
Open Source
COMMUNITY
GitHub Sponsors
Fund open source developers
PROGRAMS
Security Lab
Maintainer Community
Accelerator
GitHub Stars
Archive Program
REPOSITORIES
Topics
Trending
Collections
Enterprise
ENTERPRISE SOLUTIONS
Enterprise platform
AI-powered developer platform
AVAILABLE ADD-ONS
GitHub Advanced Security
Enterprise-grade security features
Copilot for Business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Pricing
Search
/
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
Uh oh!
There was an error while loading.
Please reload this page
.
modelcontextprotocol
/
python-sdk
Public
Notifications
You must be signed in to change notification settings
Fork
3.8k
Star
24k
Code
Issues
197
Pull requests
226
Actions
Projects
Security and quality
6
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
MCPServer: content-block returns are unstructured, prompt messages take Image/Audio
- #3320
#3320
Merged
maxisbey
merged 11 commits into
main
modelcontextprotocol/python-sdk:main
from
mcpserver-content-and-prompt-ergonomics
modelcontextprotocol/python-sdk:mcpserver-content-and-prompt-ergonomics
Copy head branch name to clipboard
Aug 17, 2026
Conversation
Commits
11
(11)
Checks
Files changed
Merged
MCPServer: content-block returns are unstructured, prompt messages take Image/Audio
#3320
maxisbey
merged 11 commits into
main
modelcontextprotocol/python-sdk:main
from
mcpserver-content-and-prompt-ergonomics
modelcontextprotocol/python-sdk:mcpserver-content-and-prompt-ergonomics
Copy head branch name to clipboard
Commits
Commits on Aug 16, 2026
Remove stale TODO from Client.send_roots_list_changed
Show description for 02a0c5e
maxisbey
committed
02a0c5e
View commit details
Copy full SHA for 02a0c5e
Browse repository at this point
Accept Image and Audio helpers as prompt message content
Show description for 5234189
maxisbey
committed
5234189
View commit details
Copy full SHA for 5234189
Browse repository at this point
Treat content-block, Image and Audio return annotations as unstructured tool output
Show description for 0be83f5
maxisbey
committed
0be83f5
View commit details
Copy full SHA for 0be83f5
Browse repository at this point
Let MCPServer.add_prompt take a function; export prompt Message classes
Show description for d26de07
maxisbey
committed
d26de07
View commit details
Copy full SHA for d26de07
Browse repository at this point
Leave the migration guide alone; these are 2.x fixes, not v1->v2 breaks
Show description for 988fbbf
maxisbey
committed
988fbbf
View commit details
Copy full SHA for 988fbbf
Browse repository at this point
Drop the add_prompt(fn) overload; keep only the Message re-exports
Show description for b1f7a29
maxisbey
committed
b1f7a29
View commit details
Copy full SHA for b1f7a29
Browse repository at this point
Review round: mirror _convert_to_content in the content rule; keep prompts and templates out of it
Show description for 9cc83c9
maxisbey
committed
9cc83c9
View commit details
Copy full SHA for 9cc83c9
Browse repository at this point
Prompt functions may return bare content blocks, Image or Audio
Show description for 2251112
maxisbey
committed
2251112
View commit details
Copy full SHA for 2251112
Browse repository at this point
Review nits: Annotated recursion looks at the type only; drop Iterable from content origins; prompt() docstring
Show description for 6f95028
maxisbey
committed
6f95028
View commit details
Copy full SHA for 6f95028
Browse repository at this point
Commits on Aug 17, 2026
Prompt render: let conversion errors surface; validate dict messages once
Show description for 6015f97
maxisbey
committed
6015f97
View commit details
Copy full SHA for 6015f97
Browse repository at this point
Document that path-backed Image/Audio message content reads the file (Raises: OSError)
Show description for 4fadfdd
maxisbey
committed
4fadfdd
View commit details
Copy full SHA for 4fadfdd
Browse repository at this point
You can’t perform that action at this time.