f0e6057a19
The HTTP+SSE transport was superseded by Streamable HTTP in the 2025-03-26 spec revision and is formally deprecated under SEP-2596. Mark every public entry point with typing_extensions.deprecated so type checkers flag it and a runtime MCPDeprecationWarning fires: sse_client, SseServerParameters, SseServerTransport, MCPServer.sse_app / run_sse_async, and the run(transport="sse") overload. Nested constructions suppress the inner warning so callers see exactly one. Also: mcp run --transport help text drops sse, python -m mcp.client connects with Streamable HTTP, and the url_elicitation client snippet moves to Streamable HTTP. Docs and migration guide updated. No-Verification-Needed: user requested immediate push, verification explicitly waived
Python SDK examples
stories/— the canonical reference. One self-verifying example per protocol feature, each with its own README. Start withstories/tools/; the stories README has the full table and how to run them.snippets/— short extracts that were embedded into the v1 README (now on thev1.xbranch); superseded bydocs_src/, which the docs and README embed today. Retained pending consolidation intostories/.servers/everything-server/— the conformance target for the cross-SDK conformance suite. Exercises every server capability in one process.mcpserver/— single-file v1-era examples retained for the migration guide; superseded bystories/and slated for removal.clients/and the remainingservers/directories (simple-*,sse-polling-demo,structured-output-lowlevel) — standalone v1-era projects retained pending consolidation intostories/(thesimple-authpair is still linked fromdocs/run/authorization.mdanddocs/client/oauth-clients.md).
For real-world servers see the servers repository.