mcp新增sse支持

This commit is contained in:
Dreamwxz
2026-05-05 16:26:47 +08:00
committed by SengokuCola
parent 0b2620b290
commit ed34cb8e1a
3 changed files with 38 additions and 3 deletions

View File

@@ -309,7 +309,7 @@ class MCPManager:
provider_type="mcp",
icons=[build_tool_icon(item) for item in getattr(tool, "icons", []) or []],
annotation=build_tool_annotation(getattr(tool, "annotations", None)),
metadata={"server_name": server_name} | getattr(tool, "meta", {}),
metadata={"server_name": server_name} | (getattr(tool, "meta", {}) or {}),
)
)
return tool_specs