Repository navigation
fix(pypi): update dependency mcp to v2.3.0 - #465
Merged
Merged
Conversation
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:
==2.2.0→==2.3.0Release 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
Configuration
📅 Schedule: (UTC)
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR is behind base branch, 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.