Skip to content

Releases: modelcontextprotocol/python-sdk

v1.12.0

17 Jul 19:30
99c4f3c
Compare
Choose a tag to compare

What's Changed

  • Ensure failed oauth registration response is read before accessing response.text by @jlowin in #1118
  • Avoiding to parse string arguments containing valid JSON if the argument annotation is str by @cjg in #1113
  • Update routing for streamable HTTP to avoid 307 redirect by @yurikunash in #1115
  • add regression tests for #1113 by @bhosmer-ant in #1122
  • Fix BaseModel method name conflicts in func_metadata by @bhosmer-ant in #1123
  • README - replace code snippets with examples by @ihrpr in #1136
  • README - replace code snippets with examples - direct execution and display utilities by @ihrpr in #1137
  • Close server session after handle stateless request by @hopeful0 in #1116
  • tests: use inline_snapshot.Is on parametrized test by @Kludex in #945
  • Add regression test for stateless request memory cleanup by @felixweinberger in #1140
  • Implement RFC9728 - Support WWW-Authenticate header by MCP client by @yurikunash in #1071
  • Add streamable HTTP starlette example to Python SDK docs by @pamelafox in #1111
  • fix markdown error in README in main by @ihrpr in #1147
  • README - replace code snippets with examples - add lowlevel to snippets by @ihrpr in #1150
  • README - replace code snippets with examples - streamable http by @ihrpr in #1155
  • chore: don't allow users to create issues outside the templates by @Kludex in #1163
  • Tests(cli): Add coverage for helper functions by @davenpi in #635
  • Docs: Update CallToolResult parsing in README by @functicons in #812
  • docs: add pre-commit install guide on CONTRIBUTING.md by @dingo4dev in #995
  • fix flaky fix-test_streamablehttp_client_resumption test by @ihrpr in #1166
  • README - replace code snippets with examples -- auth examples by @ihrpr in #1164
  • Support falling back to OIDC metadata for auth by @LucaButBoring in #1061

New Contributors 🙏

Full Changelog: v1.11.0...v1.12.0

v1.11.0

10 Jul 16:36
ee54acb
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v1.10.1...v1.11.0

v1.10.1

27 Jun 10:53
3f0964d
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v1.10.0...v1.10.1

v1.10.0

26 Jun 13:47
dced223
Compare
Choose a tag to compare

🚀 Implementation for Spec revision 2025-06-18

  • feat: implement MCP-Protocol-Version header requirement for HTTP transport by @felixweinberger in #898
  • Rename ResourceReference to ResourceTemplateReference by @ihrpr in #947
  • feat: add _meta to more objects by @felixweinberger in #963
  • Include context into completions by @ihrpr in #966
  • Add support for Elicitation by @ihrpr in #625
  • Update _meta usage guidance in types by @ihrpr in #971
  • Add title to tools, resources, prompts by @felixweinberger in #972
  • Add resource Link by @ihrpr in #974
  • MCP server separation into Authorization Server (AS) and Resource Server (RS) roles per spec PR #338 by @ihrpr in #982
  • RFC 8707 Resource Indicators Implementation by @ihrpr in #991
  • Fix /.well-known/oauth-authorization-server dropping path by @ihrpr in #1014
  • Make "resource" optional on earlier protocols by @dr3s in #1017
  • Add schema validation to lowlevel server by @bhosmer-ant in #1005
  • feat: Add structured output support for tool functions by @bhosmer-ant in #993
  • Update latest protocol version to 2025-06-18 by @ihrpr in #1036

Other changes

New Contributors 🙏

Full Changelog: v1.9.4...v1.10.0

v1.9.4

12 Jun 07:32
20dc0fb
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v1.9.3...v1.9.4

v1.9.3

05 Jun 15:41
5441767
Compare
Choose a tag to compare

What's Changed

Full Changelog: v1.9.2...v1.9.3

v1.9.2

29 May 14:31
05b7156
Compare
Choose a tag to compare

What's Changed

  • Fix ClientSessionGroup cleanup logic by @mkeid in #787
  • Chatbot example: clean up servers in correct order by @clareliguori in #353
  • llamallama-3.2-90b-vision-preview is deprecated by @Arash-IND in #523
  • Support custom httpx client creation by @nickcoai in #752
  • Python lint: Ruff rule PLW1510 -- subprocess-run-without-check by @cclauss in #794
  • add support for parallel run by @lk-naath in #739
  • Fix async callable object tools by @stephanlensky in #568
  • [DOC] Fix example usage of get_context (plus a little more) by @hesreallyhim in #801
  • Pin uv version by @Kludex in #806
  • Fix building auth metadata paths by @Rodriguespn in #779
  • Fix auth tests and ruff format by @ihrpr in #818
  • send errors to pending requests if server closes by @mroch in #333
  • RFC: Lower log levels used for connections by @nickcoai in #821
  • Support for http request injection propagation to tools by @ihrpr in #816
  • Prevent stdio connection hang for missing server path. by @TimChild in #401
  • Fix and update OAuthAuthorizationServerProvider snippet in README.md by @alvarobartt in #830
  • Client sampling and roots capabilities set to None if not implemented by @lorenzocesconetto in #802
  • Support for http request injection propagation in StreamableHttp by @ihrpr in #833

New Contributors

Full Changelog: v1.9.1...v1.9.2

v1.9.1

22 May 15:49
e80c015
Compare
Choose a tag to compare

What's Changed

  • Add OAuth authentication client for HTTPX by @ihrpr in #751
  • fastmcp: allow passing Tool directly to FastMCP constructor by @vbarda in #699
  • add auth client sse by @ihrpr in #760
  • Change default binding from 0.0.0.0 to 127.0.0.1 to align with security recommendations by @ciccolo-anthropic in #738
  • fix: Pass cursor parameter to server by @nbarbettini in #745

New Contributors

Full Changelog: v1.9.0...v1.9.1

v1.9.0

15 May 18:44
6353dd1
Compare
Choose a tag to compare

Protocol Version Update

Now the latest protocol version for Python SDK is 2025-03-26

What's Changed

  • Fix typo in authentication section of README by @mopg in #676
  • fix: 204 is an acceptable response to DELETEing the session by @nbarbettini in #697
  • Minor tweaks to README for Streamable HTTP by @evalstate in #690
  • Properly infer prefix for SSE messages by @jlowin in #659
  • Simple Auth Example to use shttp in addition to sse by @ihrpr in #695
  • Create ClientSessionGroup for managing multiple session connections. by @mkeid in #639
  • fix typo: server has get_context attribute instead of request_context. by @shimizukawa in #446
  • docs: clarify LLM API configuration in mcp_simple_chatbot README by @ddltn in #487
  • fix: Add checks and better error messages on server object for mcp run by @john0312 in #297
  • Fix hanging on streams when stdio_client exiting by @LionNatsu in #559
  • feat: add message to ProgressNotification by @aksheyd in #435
  • Update CI configuration to support multiple OS environments by @DanielAvdar in #708
  • feat: add cursor pagination support to all client list methods by @jerome3o-anthropic in #718
  • Add example for stateless server with JSON response by @5enxia in #704
  • Include server examples folder in pyright check by @ihrpr in #667
  • Set 2025-03-26 as the latest protocol version by @ihrpr in #719
  • Fix example for multiple stateless servers by @ihrpr in #720
  • fix: Update @mcp.resource to use function documentation as default descrip… by @jingyugao in #489
  • Add progress notification callback for client by @ihrpr in #721
  • Servers to accept older versions of client by @ihrpr in #722

New Contributors

Full Changelog: v1.8.1...v1.9.0

v1.8.1

12 May 17:32
c6fb822
Compare
Choose a tag to compare

What's Changed

Full Changelog: v1.8.0...v1.8.1