Skip to content

Commit f330b27

Browse files
authored
Upgrade mcp pacakge and Add meta property back to FastMCP add_tool call (#590)
1 parent 225bd06 commit f330b27

File tree

3 files changed

+2550
-2550
lines changed

3 files changed

+2550
-2550
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ dependencies = [
1818
"fastapi>=0.115.6",
1919
"httpx>=0.28.1",
2020
"jsonref>=1.1.0",
21-
"mcp>=1.18.0",
21+
"mcp>=1.19.0",
2222
"numpy>=2.1.3",
2323
"opentelemetry-distro>=0.50b0",
2424
"opentelemetry-exporter-otlp-proto-http>=1.29.0",

src/mcp_agent/server/app_server.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2227,7 +2227,7 @@ async def _await_task(task: asyncio.Task):
22272227
title = decl.get("title")
22282228
annotations = decl.get("annotations")
22292229
icons = decl.get("icons")
2230-
_meta = decl.get("meta")
2230+
meta = decl.get("meta")
22312231

22322232
# Bind per-iteration values to avoid late-binding closure bugs
22332233
name_local = name
@@ -2311,7 +2311,7 @@ async def _adapter(**kw):
23112311
description=description or (fn.__doc__ or ""),
23122312
annotations=annotations,
23132313
icons=icons,
2314-
# meta=meta, TODO: saqadri - add this after https://github.com/modelcontextprotocol/python-sdk/pull/1463 is pushed to pypi
2314+
meta=meta,
23152315
structured_output=structured_output,
23162316
)
23172317
registered.add(name_local)
@@ -2424,7 +2424,7 @@ async def _adapter(**kw):
24242424
description=full_desc,
24252425
annotations=annotations,
24262426
icons=icons,
2427-
# meta=meta, TODO: saqadri - add this after https://github.com/modelcontextprotocol/python-sdk/pull/1463 is pushed to pypi
2427+
meta=meta,
24282428
structured_output=False,
24292429
)
24302430
registered.add(run_tool_name)

0 commit comments

Comments
 (0)