Repository navigation
feat(deps): update dependency mcp (1.30.0 → 2.3.0) - #255
renovate[bot] wants to merge 1 commit into
Conversation
|
|
User renovate[bot] does not have write permissions |
Renovate PR AnalysisUpdate Summary
Release Changes
Breaking ChangesAffecting this repo directly:
Not affecting our usage (verified): Code Changes RequiredYes — this PR must not merge without them:
Security ImpactPositive overall: hardened stdio (stray prints/handler subprocesses kept off the wire), OAuth issuer validation, stricter protocol validation. Not directly on our threat surface (stdio transport, in-cluster, no inbound auth). No known CVE against 1.29.0; v1.x continues to receive security fixes, so staying on 1.x short-term carries no immediate risk. RecommendationRequires code changes — MCP SDK is an explicit no-auto-merge category (tool call parsing), and this major bump breaks both servers at startup ( |
f8991fc to
76b3e9e
Compare
Renovate PR AnalysisUpdate Summary
Release Changesv2.0.0 is the stable v2 release, supporting the 2026-07-28 protocol revision while still serving 2025-era clients from the same server over stdio and Streamable HTTP (release notes, migration guide):
Breaking ChangesYes — directly affecting this repo:
Verified compatible surfaces (migration guide "What is unchanged on Code Changes Required
Security Impactv2 hardens stdio (stray output can no longer corrupt the protocol stream — directly relevant to the supergateway stdio bridge both images use) and tightens wire validation. The OAuth/RFC 9207 changes don't apply (in-cluster, no MCP-level auth). No CVEs cited. Staying on v1.x is viable short-term (maintenance mode, security fixes only) but is a dead end for features. RecommendationNeeds manual review — do not merge as-is. This is a major bump of the MCP SDK powering both MCP servers (excluded from auto-merge: LLM/AI tooling affects tool call parsing), the v1→v2 rename guarantees a startup crash of both servers the moment the Dockerfile pins are aligned, and the PR currently updates only |
76b3e9e to
bdb70df
Compare
Renovate PR AnalysisUpdate Summary
Release Changesv2.0.0 is the stable v2 rewrite (2026-07-28 protocol revision, 2025-era clients still served from the same server over stdio/Streamable HTTP):
v2.1.0 additions (release):
Breaking ChangesYes — directly affecting this repo:
Code Changes Required
Per the migration guide, Security Impactv2 hardens stdio (stray output can no longer corrupt the protocol stream — relevant to the supergateway bridge) and tightens wire validation; v2.1.0 extends the 4 MiB body limit across SSE/OAuth endpoints (DoS hardening). The OAuth/RFC 9207 additions don't apply (in-cluster, no MCP-level auth). No CVEs cited. Staying on v1.x remains viable short-term (security fixes only) but is a dead end. RecommendationNeeds manual review — do not merge as-is. This hits two never-auto-merge exclusions: a major bump with breaking changes relevant to this repo, and an LLM/AI SDK (MCP servers affect tool call parsing). The PR updates only |
bdb70df to
8bdce7d
Compare
Renovate PR AnalysisUpdate Summary
Release Changes
Breaking ChangesDirectly affecting this repo — the servers will not start on mcp 2.x:
Code Changes RequiredRequired before this bump can merge (a maintainer must apply — read-only checkout here):
Security ImpactNo CVE driving urgency. Long-term: v1.x is maintenance-mode (security fixes only), so remaining on 1.x accumulates risk. v2 hardening is net-positive for this deployment: keeping stray stdout off the stdio wire protects the supergateway JSON-RPC stream, and OAuth hardening applies if auth is ever added (currently in-cluster, no auth). Python compatibility is fine: opengist-mcp base RecommendationRequires code changes — do not merge. Both MCP servers fatal at startup on mcp 2.x ( |
8bdce7d to
fbba466
Compare
Renovate PR AnalysisUpdate Summary
Release Changesv2.0.0 is a full rewrite: Breaking ChangesDirectly breaking for this repo — both servers crash at startup under mcp 2.x:
Code Changes RequiredMechanical migration (per the official migration guide; the
Security Impactv2 hardens stdio (stray prints kept off the wire), validates handler results against the protocol schema, and tightens OAuth issuer checks. None of the changes reduce security here; both servers are unauthenticated stdio-behind-supergateway, which is unchanged. No CVE listed. RecommendationRequires code changes — merging as-is ships images that build cleanly but crash-loop at startup with |
fbba466 to
2dfbd56
Compare
Renovate PR Analysis(Re-analysis: previous comments predate this PR's latest update.) Update Summary
Release Changesv2.0.0 (stable), v2.0.1, v2.1.0, v2.1.1, v2.2.0 — highlights:
Breaking ChangesYes — this PR as-is does not actually update the images, and updating later breaks both servers:
Code Changes Required
Python floor: both images run Python 3.12 (ubuntu 24.04) / 3.13 (python:3.13-alpine3.21); the v2 migration guide's dependency table branches on Python <3.14 vs >=3.14, i.e. both are inside the supported range. Security Impactv2 hardens stdio transport and OAuth; no CVEs cited. This SDK directly affects MCP tool-call parsing for both MCP servers — security-sensitive by definition per repo policy. RecommendationRequires code changes — LLM/AI SDK major (never auto-merge). The mechanical migration is small (two imports, two constructor calls, two Dockerfile pins) but the PR is incomplete without it, and the unrelated opengist-mcp metadata-test failure needs fixing before CI can validate anything. |
2dfbd56 to
b66288d
Compare
Renovate PR AnalysisUpdate Summary
Release Changes
Breaking ChangesDirectly affecting this repo (empirically verified by installing
Code Changes RequiredDo not merge as-is. A complete update needs, in one PR:
Security Impactv2 hardens the SDK surface: stdio servers keep stray prints/subprocesses off the protocol wire, exception details are no longer leaked to clients, OAuth issuer validation, and a 4 MiB request body cap on HTTP transports. Our deployments are stdio servers behind supergateway (in-cluster, no inbound auth), so the HTTP-transport changes don't apply. Staying on 1.x carries maintenance-mode risk (security fixes only), so migrating is advisable — but deliberately, not via this half-update. RecommendationRequires code changes — merging as-is ships images that still run mcp 1.x (Dockerfiles untouched) while pyproject.toml declares a v2 range whose runtime import path breaks both servers ( |
b66288d to
49fb77f
Compare
Renovate PR AnalysisUpdate Summary
Release Changesv2.0.0 is a full rewrite (2026-07-28 protocol revision, both eras served from one server). Key changes through 2.3.0:
Breaking ChangesYes, if 2.x were actually installed — but as-is this PR does not change what the images ship:
Code Changes RequiredTo actually adopt mcp 2.x (not part of this PR):
Security Impactv1.x now receives security fixes only; v2 hardens stdio (stray prints off the wire, stdout diverted to stderr — beneficial for the supergateway stdio wrapping), OAuth issuer validation, and body-size limits. Staying on 1.x has a slowly growing security-gap risk, which argues for scheduling the v2 migration — but via a reviewed code-change PR, not this constraint-only bump. Separate pre-existing failure surfaced by this PR's CI (present on main RecommendationNeeds manual review — do not merge as-is. This is a major LLM/AI SDK bump (repo exclusion list). The PR itself is inert for image builds (Dockerfiles carry their own 1.x pins) but would commit the repo to a |
Renovate PR AnalysisUpdate Summary
Release ChangesAll versions between old and new (from upstream release notes in the PR body and the v1→v2 migration guide at py.sdk.modelcontextprotocol.io/migration/):
Breaking ChangesDirectly affecting this repo:
Code Changes RequiredThis PR alone changes nothing in the shipped images: both Dockerfiles install dependencies via an explicit
Security ImpactPositive: hardened stdio (stray prints/subprocess output kept off the protocol wire), OAuth RFC 9207 issuer validation, stricter schema validation, CI Status
RecommendationNeeds manual review — this is a major bump of an LLM/AI SDK (MCP servers affect tool-call parsing; explicit never-auto-merge exclusion), and the import-path breakage means it requires the code changes listed above before it can merge. Per policy this PR is never auto-merged. |
Renovate PR AnalysisUpdate Summary
Files changed: Release ChangesSpanning 1.30.0 → 2.3.0 (v2.0.0, 2.0.1, 2.1.0, 2.1.1, 2.2.0, 2.3.0):
Breaking ChangesDirectly affecting this repo:
Not affected: Code Changes RequiredThe PR as posted is inconsistent: it bumps pyproject.toml but leaves the code and Dockerfiles on v1.
Note: merged as-is, the images keep installing mcp 1.x from the Dockerfile pins (pyproject.toml is inert inside the image), so structure tests keep passing — the breakage only appears for anyone installing from pyproject (e.g. Security Impactv2 hardens several surfaces: stdio keeps stray prints and handler subprocesses off the wire, OAuth gains RFC 9207 issuer validation and stricter client auth at RecommendationNeeds manual review — this is an LLM/AI SDK update (MCP servers |
Renovate PR AnalysisUpdate Summary
Release Changesv2.0.0 → v2.3.0 highlights (from upstream release notes in the PR body; verified against upstream README and PyPI):
Breaking ChangesFatal for both apps as-is — verified empirically (mcp 2.3.0 in python:3.13-alpine):
Code Changes RequiredA maintainer must do this in one coordinated change (this checkout is read-only):
Security Impactv1.x receives security fixes only (maintenance mode), so staying pinned has diminishing returns. v2 hardens stdio transports (keeps stray output off the protocol wire) — relevant here since supergateway bridges stdio to an in-cluster HTTP/SSE endpoint. No CVE drives this update; the MCP SDK is the LLM tool-call parsing layer, which is why this PR must not be auto-merged regardless. Verification Performed
RecommendationRequires code changes — never auto-merge (LLM/AI SDK exclusion). As written the bump is a metadata-only no-op that contradicts the Dockerfile pins, and if the pins were aligned without porting the code both MCP servers would crash at startup on the removed |
7b7b8ed to
acd3cf0
Compare
acd3cf0 to
d7e8712
Compare
This PR contains the following updates:
>=1.0,<2.0→>=2.3,<2.4Warning
Some dependencies could not be looked up. Check the Dependency Dashboard for more information.
Release Notes
modelcontextprotocol/python-sdk (mcp)
v2.3.0Compare Source
pip install -U mcp. Docs: https://py.sdk.modelcontextprotocol.io/Mostly fixes, plus three new options. A few things behave differently, so skim these first:
Behaviour changes
httpx2>=2.10.0is now required (#3600)>=2.5.0. The newmax_sse_event_sizeoption needs it.httpx2below 2.10.A tool with an invalid
x-mcp-headerannotation fails at registration (#3620)@mcp.tool(),add_toolandTool.from_functionraiseInvalidSignature, naming the tool and the problem.str,intorboolparameter (so alsostr | None,float, lists and enums), a header name that isn't a valid token, and two names that differ only by case.Annotated[str | None, WithJsonSchema({"type": "string", "x-mcp-header": "Region"})] = None.Empty
_metaandparamsare no longer sent (#3628)"_meta": {}on every request. Some servers reject that. It is now left out, as in v1.pingand list requests without a cursor go out with noparamsmember.ctx.metaisNonerather than{}, and middleware seesctx.paramsasNonefor a request without params.initializeleaves outexperimentalwhen none is configured (#3614)"experimental": {}.server/discoveralready left it out.capabilities.experimentalon a legacy connection should handleNone.Mcp-Param-*validation looks the tool up by name (#3630)MCPServerno longer runstools/listfor everytools/call, so middleware no longer sees that extra request.tools/listno longer affects it.An interactive OAuth login no longer counts against request timeouts (#3635)
OAuthClientProviderwaits onredirect_handlerandcallback_handler.Client(mode="auto")settling on2025-11-25when the login took longer than 10 seconds.callback_handlerif you need one.New
max_sse_event_size=onstreamable_http_clientandStreamableHttpParameters. The default stays 1 MiB per SSE event; raise it, or passNone, for larger tool results (#3600).MCPServer(subscriptions=False)stops servingsubscriptions/listenand advertiseslistChangedandsubscribeas false (#3626).Server(get_tool_input_schema=...)lets a low-level server supply a tool's schema for header validation without running itstools/listhandler (#3630).Client.call_toolre-lists the tools and retries once after aHeaderMismatch(-32020) rejection (#3627).Fixes
ctx: Context[AppState]works on prompts and resource templates, not only on tools (#3624)."structuredContent": nullis checked against the output schema instead of being treated as missing (#3621).progress_callbackthat raises no longer fails the call on an in-processClient(server)(#3623).mode="auto", connecting to a server withoutserver/discovernow shows oneERRORspan for the probe (#3629).stdio_clientresolves the executable off the event loop on Windows (#3510).Docs
What's Changed
Full Changelog: modelcontextprotocol/python-sdk@v2.2.0...v2.3.0
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: (UTC)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.