mcpserver
The tracked changes tagged mcpserver, newest release first. Every sentence is an item's summary.
Goes with
Changes
MCP Python SDK v2.1.0
-
Unexpected handler exceptions are logged once at ERROR with traceback, and clients see only 'Error executing tool <name>' (or the resource/prompt equivalent) instead of the exception text; use ToolError or ResourceError to send a message to the client.
-
Tools annotated to return TextContent, EmbeddedResource, Image, Audio, or lists or unions of them no longer advertise outputSchema or return structuredContent; pass structured_output=True to keep the previous shape.
-
Prompt messages accept Image and Audio content.
-
Prompt functions may return bare content blocks.
-
Message, UserMessage and AssistantMessage are exported from mcp.server.mcpserver.
+4 more
-
SseServerTransport and MCPServer.sse_app() accept a max_request_body_size parameter.
-
TypedDict tool results omit NotRequired keys instead of serializing them as null.
-
Registering TypedDict tool return types no longer fails on Python 3.10.
-
Recursive tool return types get an object-rooted outputSchema that pre-2026 clients accept.