fix(deps): update llm sdks (major) - #957
Open
renovate[bot] wants to merge 1 commit into
Open
Conversation
Contributor
|
This is a breaking change and will require code changes to merge. |
renovate
Bot
force-pushed
the
renovate/major-llm-sdks
branch
from
August 3, 2026 18:39
ace9f21 to
690ccf6
Compare
renovate
Bot
force-pushed
the
renovate/major-llm-sdks
branch
2 times, most recently
from
August 12, 2026 04:59
0ad86c5 to
7796d10
Compare
renovate
Bot
force-pushed
the
renovate/major-llm-sdks
branch
from
August 12, 2026 06:32
7796d10 to
0a9cd4d
Compare
renovate
Bot
force-pushed
the
renovate/major-llm-sdks
branch
2 times, most recently
from
August 16, 2026 02:03
b2fe022 to
01f13ca
Compare
renovate
Bot
force-pushed
the
renovate/major-llm-sdks
branch
2 times, most recently
from
August 22, 2026 21:45
d280107 to
edf6eaa
Compare
renovate
Bot
force-pushed
the
renovate/major-llm-sdks
branch
4 times, most recently
from
August 25, 2026 23:03
9721924 to
4a11ae0
Compare
renovate
Bot
force-pushed
the
renovate/major-llm-sdks
branch
from
August 26, 2026 02:32
4a11ae0 to
dbf842b
Compare
renovate
Bot
force-pushed
the
renovate/major-llm-sdks
branch
3 times, most recently
from
September 1, 2026 23:40
cef6369 to
d4b1800
Compare
renovate
Bot
force-pushed
the
renovate/major-llm-sdks
branch
4 times, most recently
from
September 5, 2026 01:20
7133c26 to
74be44b
Compare
renovate
Bot
force-pushed
the
renovate/major-llm-sdks
branch
from
September 5, 2026 23:25
74be44b to
28d4777
Compare
renovate
Bot
force-pushed
the
renovate/major-llm-sdks
branch
from
September 6, 2026 00:59
28d4777 to
a97827c
Compare
renovate
Bot
force-pushed
the
renovate/major-llm-sdks
branch
from
September 6, 2026 06:16
a97827c to
2987bf3
Compare
renovate
Bot
force-pushed
the
renovate/major-llm-sdks
branch
from
September 6, 2026 08:34
2987bf3 to
f029ff8
Compare
renovate
Bot
force-pushed
the
renovate/major-llm-sdks
branch
3 times, most recently
from
September 8, 2026 18:07
f96c906 to
7d774d5
Compare
renovate
Bot
force-pushed
the
renovate/major-llm-sdks
branch
from
September 8, 2026 21:37
7d774d5 to
8b60e26
Compare
renovate
Bot
force-pushed
the
renovate/major-llm-sdks
branch
from
September 9, 2026 02:52
8b60e26 to
7f18f3f
Compare
renovate
Bot
force-pushed
the
renovate/major-llm-sdks
branch
from
September 9, 2026 03:37
7f18f3f to
58a9b91
Compare
renovate
Bot
force-pushed
the
renovate/major-llm-sdks
branch
from
September 9, 2026 03:39
58a9b91 to
a4ef35b
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
>=0.117,<1→>=1.4,<2>=1.27,<2→>=2.2,<3Release Notes
anthropics/anthropic-sdk-python (anthropic)
v1.4.0Compare Source
Full Changelog: v1.3.0...v1.4.0
Features
Bug Fixes
Chores
Documentation
v1.3.0Compare Source
Full Changelog: v1.3.0...v1.4.0
Features
Bug Fixes
Chores
Documentation
v1.2.0Compare Source
Full Changelog: v1.2.0...v1.3.0
Features
Bug Fixes
Chores
Documentation
Refactors
v1.1.0Compare Source
Full Changelog: v1.1.0...v1.2.0
Features
Bug Fixes
unwrap()(0baa902)Documentation
v1.0.0Compare Source
Full Changelog: v0.125.0...v1.0.0
⚠ BREAKING CHANGES
Features
Bug Fixes
output_format=on the parse/stream/tool_runner helpers (59bf261)Chores
Documentation
modelcontextprotocol/python-sdk (mcp)
v2.2.0Compare Source
pip install -U mcp. Docs: https://py.sdk.modelcontextprotocol.io/A few defaults changed in this release. If you run a server or client on 2.x, skim these first:
Behaviour changes
HTTP client redirects are only followed within the endpoint's origin (#3397)
Client("https://..."),streamable_http_clientandsse_clientfollow a redirect only if it stays on the same scheme, host and port (or upgradeshttptohttpson the same host).MCPErrorand the session stays usable (an SSE connect fails withhttpx2.HTTPStatusError). If that other URL is the server you meant, use it as the endpoint URL.follow_redirectssetting on anhttpx2.AsyncClientyou pass in is no longer used for MCP requests, so you don't need it for the trailing-slash redirect any more.Idle Streamable HTTP sessions now expire (legacy <=2025-11-25 spec( (#3395)
Clientdoes) are not affected. Neither are stateless servers or 2026-07-28 connections.mcp.run(transport="streamable-http", session_idle_timeout=None, max_sessions=None)(also onstreamable_http_app()andrun_streamable_http_async()).The OAuth client checks the authorization server's
issueron the legacy path too (#3398)issuerisn't the server's own origin is now rejected withOAuthFlowError: Authorization server metadata issuer mismatch. The protected-resource-metadata path has done this since 2.0.insufficient_scopechallenge is returned to the caller instead of retried.Two new
MCPDeprecationWarnings (#3435, #3447)ClientCredentialsOAuthProvider/PrivateKeyJWTOAuthProviderwithoutissuer=. Pass your authorization server's issuer URL; 3.0 will require it.AuthSettingswithresource_server_urlset butvalidate_token_resourceunset. Set it toTrueorFalse; 3.0 defaults it toTrue.New
AuthSettings.validate_token_resource: only accept tokens yourTokenVerifierreports as issued for this server (#3447).issuer=onClientCredentialsOAuthProviderandPrivateKeyJWTOAuthProvider(#3398).session_idle_timeout=andmax_sessions=on the Streamable HTTP server entry points (#3395).Fixes
DELETEfrees its session immediately, and a refused opening request no longer leaves a session behind (#2455, #3228, #3300).$refs in a tool'soutputSchemaresolve within that schema only; an unresolvable one surfaces asRuntimeError: Invalid schema for tool ...(#3394).Known gaps
The tasks extension (SEP-2663), DPoP (SEP-1932) and the
jwt-bearergrant are not implemented yet; https://github.com/modelcontextprotocol/python-sdk/blob/main/ROADMAP.md tracks them.What's Changed
Full Changelog: modelcontextprotocol/python-sdk@v2.1.1...v2.2.0
v2.1.1Compare Source
What's Changed
Full Changelog: modelcontextprotocol/python-sdk@v2.1.0...v2.1.1
v2.1.0Compare Source
Highlights
ClientacceptsStdioServerParametersdirectly:Client(StdioServerParameters(command="uv", args=["run", "server.py"]))(#3321).ImageandAudio, prompt functions may return bare content blocks, andMessage/UserMessage/AssistantMessageare exported frommcp.server.mcpserver(#3320).SseServerTransportandMCPServer.sse_app()takemax_request_body_size, and the SSE message endpoint answers 405 to non-POST requests (#3336).Behaviour changes to be aware of
Error executing tool <name>(or the resource/prompt equivalent) rather than the exception text. RaiseToolError/ResourceErrorwhen the message is meant for the model; those still reach the client and are logged at INFO without a traceback.TextContent,EmbeddedResource,Image,Audio, or lists/unions of them no longer advertisesoutputSchemaor returnsstructuredContent; itscontentis unchanged. Passstructured_output=Trueto keep the previous shape.Fixes
NotRequiredkeys are omitted instead of serialized asnull, and registration no longer fails on Python 3.10 (#3224, #3227); recursive return types get an object-rootedoutputSchemathat pre-2026 clients accept (#3337).notifications/cancelledis acknowledged with 202 instead of rejected with 400 (#3324).list_tools()(#3223), and accept boolean sub-schemas in tool schemaproperties(#3353).mcp installreads and preserves a Claude Desktop config containing non-ASCII text on any Windows code page (#3296).What's Changed
New Contributors
Full Changelog: modelcontextprotocol/python-sdk@v2.0.0...v2.1.0
v2.0.1Compare Source
One off backport of the FastMCP import warning for
2.0.x, this is due to a lot of people running into this error and making issues on other repos about it. Ideally either pinmcp<2or upgrade to 2.What's Changed
Full Changelog: modelcontextprotocol/python-sdk@v2.0.0...v2.0.1
v2.0.0Compare Source
MCP Python SDK v2 Stable Release
This is v2.0.0, the stable v2 release of the MCP Python SDK. It supports the 2026-07-28 revision of the Model Context Protocol and serves every earlier revision from the same server.
pip install mcpnow installs 2.x.Documentation Rewrite
The documentation has the full tutorial and API reference. Coming from v1? What's new in v2 is the tour of what changed and why, and the migration guide lists every breaking change with before-and-after code.
V1 Maintenance mode
v1.x is in maintenance mode and will only receive security fixes from now on The 1.x line lives on the
v1.xbranch, continues to receive critical bug fixes and security patches, and is documented at https://py.sdk.modelcontextprotocol.io/v1/. If your project is not ready to migrate, keep a<2upper bound on your requirement (for examplemcp>=1.28,<2).Highlights
One SDK, both protocol eras
v2 speaks the 2026-07-28 revision (stateless requests with no handshake,
server/discover,subscriptions/listen, multi-round-trip requests) and still serves every 2025-era client from the sameMCPServer, over Streamable HTTP and stdio, with nothing to configure.Client(target)negotiates the version automatically.FastMCPis nowMCPServer, and there is a first-classClientThe decorator API is unchanged; the low-level
Serveris rebuilt around a shared dispatcher engine, and oneClientobject replaces v1's transport-plus-ClientSession-plus-initialize()layering. It connects to a URL, a stdio subprocess, a custom transport, or straight to a server object in memory for tests.Multi-round-trip requests and resolver dependency injection
At 2026-07-28 the server can no longer call the client, so tools return the question instead. A
Resolve(fn)parameter is filled by your function invisibly to the model and can put a question to the user; one tool body serves both eras.Extension APIs, OpenTelemetry, and a standalone types package
Servers and clients compose protocol extensions through pluggable extension APIs (MCP Apps built in); OpenTelemetry tracing ships on by default; every protocol type is its own package,
mcp-types(imported asmcp_types), published in lock-step withmcp.Hardened stdio and auth
stdio servers keep handler subprocesses and stray prints off the wire, and stdout is diverted to stderr while serving. OAuth adds RFC 9207 issuer validation, the SEP-990 identity-assertion flow, and the client-credentials extension.
Coming from a v2 pre-release
Since the last release candidate: the per-version wire packages are private (
mcp_types._v*),mcp.typesis a permanent alias formcp_types, the auth registration request model is split from the registered-client record, cancelled requests are no longer answered, and log notifications are gated on the per-request log-level opt-in at 2026-07-28. Since the betas:Client(cache=False)is nowcache=NonewithCacheConfig()the default;Context.client_id,RFC7523OAuthClientProvider, andOAuthClientProvider(timeout=)are removed; the client-credentials providers takescope=;message_handlerreceives notifications and exceptions only;FileResource(is_binary=)becomesencoding;MCP_*env vars are gone withpydantic-settings; Streamable HTTP servers reject bodies over 4 MiB with HTTP 413. The migration guide covers all of it.Known gaps
The tasks extension (SEP-2663) is not part of this release. On the client, the DPoP proof binding (SEP-1932) and the workload-identity
jwt-bearergrant are not implemented; both are additive and can land in 2.x.Feedback
Something rough, confusing, or broken? Open an issue or find us in #python-sdk-dev on the MCP Contributors Discord.
Full Changelog: modelcontextprotocol/python-sdk@v2.0.0rc1...v2.0.0
Configuration
📅 Schedule: (in timezone America/New_York)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.
This PR was generated by Mend Renovate. View the repository job log.