feat: MCP server支持使用sse模式

This commit is contained in:
kevin1sMe
2025-05-04 23:33:07 +08:00
parent 0f3806d358
commit 8f266bea0d
4 changed files with 36 additions and 25 deletions
+2 -2
View File
@@ -50,9 +50,9 @@ class MCPManager:
"""初始化所有MCP服务"""
config = self.load_config()
for name, srv_config in config.items():
if not srv_config.get("command"):
if not srv_config.get("command") and not srv_config.get("url"):
self.logger.bind(tag=TAG).warning(
f"Skipping server {name}: command not specified"
f"Skipping server {name}: neither command nor url specified"
)
continue