Skip to content

Bump mcp from 1.29.0 to 2.1.1 - #19

Merged
dsanchezp18 merged 2 commits into
mainfrom
dependabot/uv/mcp-2.1.1
Sep 6, 2026
Merged

Bump mcp from 1.29.0 to 2.1.1#19
dsanchezp18 merged 2 commits into
mainfrom
dependabot/uv/mcp-2.1.1

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Aug 29, 2026

Copy link
Copy Markdown
Contributor

Bumps mcp from 1.29.0 to 2.1.1.

Release notes

Sourced from mcp's releases.

v2.1.1

What's Changed

Full Changelog: modelcontextprotocol/python-sdk@v2.1.0...v2.1.1

v2.1.0

Highlights

  • Client accepts StdioServerParameters directly: Client(StdioServerParameters(command="uv", args=["run", "server.py"])) (#3321).
  • Prompt messages accept Image and Audio, prompt functions may return bare content blocks, and Message / UserMessage / AssistantMessage are exported from mcp.server.mcpserver (#3320).
  • The 4 MiB request body limit now also covers the SSE transport and the OAuth endpoints; SseServerTransport and MCPServer.sse_app() take max_request_body_size, and the SSE message endpoint answers 405 to non-POST requests (#3336).

Behaviour changes to be aware of

  • Handler exceptions (#3314): an unexpected exception from a tool, resource or prompt handler is logged once at ERROR with its traceback, and the client now sees only Error executing tool <name> (or the resource/prompt equivalent) rather than the exception text. Raise ToolError / ResourceError when the message is meant for the model; those still reach the client and are logged at INFO without a traceback.
  • Content-block return annotations (#3320): a tool annotated to return TextContent, EmbeddedResource, Image, Audio, or lists/unions of them no longer advertises outputSchema or returns structuredContent; its content is unchanged. Pass structured_output=True to keep the previous shape.

Fixes

  • TypedDict tool results: NotRequired keys are omitted instead of serialized as null, and registration no longer fails on Python 3.10 (#3224, #3227); recursive return types get an object-rooted outputSchema that pre-2026 clients accept (#3337).
  • 2026-07-28 over HTTP: a POSTed notification such as notifications/cancelled is acknowledged with 202 instead of rejected with 400 (#3324).
  • Pre-2026 sessions ignore cache-hint fields from later revisions instead of failing list_tools() (#3223), and accept boolean sub-schemas in tool schema properties (#3353).
  • mcp install reads and preserves a Claude Desktop config containing non-ASCII text on any Windows code page (#3296).

What's Changed

... (truncated)

Commits
  • 0921d94 Point imports of mcp.server.fastmcp at the migration guide (#3388)
  • 4d6f87e Build releases with the pinned hatchling and a publish action that accepts Me...
  • c5d7d0b docs: refresh translations for recent English changes (#3379)
  • d8b6383 Give recursive tool return types an object-rooted output schema (#3376)
  • 56af447 Log MCPServer handler exceptions by kind and keep crash details off the wire ...
  • f1c40b0 Accept boolean sub-schemas in 2025-11-25 tool schema properties (#3354)
  • 57394b0 Apply the request body limit to the SSE and OAuth endpoints (#3336)
  • 0cee624 Hand TypedDict tool results to pydantic natively (#3331)
  • 0d92192 Shorten stdio test comments (#3329)
  • b2025ab Acknowledge notification POSTs with 202 on the 2026-07-28 HTTP entry (#3326)
  • Additional commits viewable in compare view

@dependabot dependabot Bot added dependencies Pull requests that update a dependency file python:uv Pull requests that update python:uv code labels Aug 29, 2026
@dependabot
dependabot Bot force-pushed the dependabot/uv/mcp-2.1.1 branch 2 times, most recently from 3a11dd7 to 8bd6d0b Compare August 30, 2026 21:08
@dsanchezp18

Copy link
Copy Markdown
Collaborator

Deferring this for now — mcp 2.x is a breaking change, not a drop-in bump: it renames FastMCP to MCPServer and moves it from mcp.server.fastmcp to mcp.server.mcpserver (see the migration guide). Every tool file in this repo (~40+) does from mcp.server.fastmcp import FastMCP, so this needs a full migration pass across the codebase, not just a version bump — confirmed by CI failing on collection with ModuleNotFoundError: No module named 'mcp.server.fastmcp'.

Leaving this open rather than closing it as a placeholder to come back to once the migration is scoped out.

@dependabot
dependabot Bot force-pushed the dependabot/uv/mcp-2.1.1 branch 5 times, most recently from bd0ce25 to 0db15cf Compare September 4, 2026 18:07
dependabot Bot and others added 2 commits September 6, 2026 12:06
Bumps [mcp](https://github.com/modelcontextprotocol/python-sdk) from 1.29.0 to 2.1.1.
- [Release notes](https://github.com/modelcontextprotocol/python-sdk/releases)
- [Changelog](https://github.com/modelcontextprotocol/python-sdk/blob/main/RELEASE.md)
- [Commits](modelcontextprotocol/python-sdk@v1.29.0...v2.1.1)

---
updated-dependencies:
- dependency-name: mcp
  dependency-version: 2.1.1
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
mcp 2.x removed mcp.server.fastmcp outright, so Dependabot's version bump
alone left CI failing on a ModuleNotFoundError. Renames the FastMCP import
and type hint to MCPServer everywhere (mechanical, no behavior change),
and moves stateless_http off the MCPServer constructor onto
streamable_http_app(), per the v2 migration guide. Tightens the pyproject
floor to mcp>=2.1.1 since the code no longer runs on 1.x. Verified live:
stdio startup, /health, and an initialize + tools/list round trip over
/mcp all succeed under the new stateless HTTP setup.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@dsanchezp18
dsanchezp18 force-pushed the dependabot/uv/mcp-2.1.1 branch from 0db15cf to 24bad05 Compare September 6, 2026 18:17
@dsanchezp18
dsanchezp18 merged commit c4b42ea into main Sep 6, 2026
4 checks passed
@dsanchezp18
dsanchezp18 deleted the dependabot/uv/mcp-2.1.1 branch September 6, 2026 18:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file python:uv Pull requests that update python:uv code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant