π The fast, Pythonic way to build MCP servers and clients.
Stop pydantic 2.13 from leaking _WrappedResult docstring into tool output schemas (#3918)
Jeremiah Lowin7d7607473d77
diff --git a/.github/workflows/run-upgrade-checks.yml b/.github/workflows/run-upgrade-checks.ymlindex 180c25bc0..c94720ba7 100644--- a/.github/workflows/run-upgrade-checks.yml+++ b/.github/workflows/run-upgrade-checks.yml@@ -121,7 +121,7 @@ jobs:- **ty (type checker)**: New ty releases frequently add stricter checks that flag previously-accepted code. Run `uv run ty check` locally with the latest ty to reproduce. Fix the type errors or bump the ty version floor in `pyproject.toml`.- **ruff**: New lint rules or stricter defaults in a ruff upgrade.- - **mcp SDK**: Breaking changes in the `mcp` package (new method signatures, renamed types).+ - **MCP SDK**: Breaking changes in the `mcp` package (new method signatures, renamed types).### What to dodiff --git a/src/fastmcp/tools/function_parsing.py b/src/fastmcp/tools/function_parsing.pyindex 9b9b0870e..50d217ce6 100644--- a/src/fastmcp/tools/function_parsing.py+++ b/src/fastmcp/tools/function_parsing.py@@ -67,8 +67,6 @@ logger = get_logger(__name__)@dataclassclass _WrappedResult(Generic[T]):- """Generic wrapper for non-object return types."""-result: T