Skip to content

Commit 0bc8261

Browse files
committed
Update MCP to use Pydantic>=2.11
1 parent dced223 commit 0bc8261

File tree

3 files changed

+98
-72
lines changed

3 files changed

+98
-72
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ dependencies = [
2525
"anyio>=4.5",
2626
"httpx>=0.27",
2727
"httpx-sse>=0.4",
28-
"pydantic>=2.7.2,<3.0.0",
28+
"pydantic>=2.11.0,<3.0.0",
2929
"starlette>=0.27",
3030
"python-multipart>=0.0.9",
3131
"sse-starlette>=1.6.1",

tests/server/fastmcp/test_func_metadata.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,7 @@ def func_dict_any() -> dict[str, Any]:
203203

204204
meta = func_metadata(func_dict_any)
205205
assert meta.output_schema == {
206+
"additionalProperties": True,
206207
"type": "object",
207208
"title": "func_dict_anyDictOutput",
208209
}

0 commit comments

Comments
 (0)