This commit is contained in:
Lance Galletti 2025-06-27 11:39:51 +02:00 committed by GitHub
commit 0c871c59bc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 160 additions and 0 deletions

View file

@ -57,6 +57,7 @@ async def list_mcp_tools(endpoint: str, headers: dict[str, str]) -> ListToolDefs
description=param_schema.get("description", ""),
)
)
annotations = getattr(tool, "annotations", None)
tools.append(
ToolDef(
name=tool.name,
@ -65,6 +66,7 @@ async def list_mcp_tools(endpoint: str, headers: dict[str, str]) -> ListToolDefs
metadata={
"endpoint": endpoint,
},
annotations=annotations,
)
)
return ListToolDefsResponse(data=tools)