From ecec895eebcb76095805c56046a3e1c52cdc39d5 Mon Sep 17 00:00:00 2001 From: Dreamwxz <82244600+Dreamwxz@users.noreply.github.com> Date: Tue, 5 May 2026 19:34:43 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8A=A0=E5=85=A5url=E6=A0=A1=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/config/official_configs.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/config/official_configs.py b/src/config/official_configs.py index 9a8cb00e..29d6e976 100644 --- a/src/config/official_configs.py +++ b/src/config/official_configs.py @@ -2521,6 +2521,9 @@ class MCPServerItemConfig(ConfigBase): if self.transport == "streamable_http" and not self.url.strip(): raise ValueError(f"MCP 服务器 {self.name} 使用 streamable_http 时必须填写 url") + if self.transport == "sse" and not self.url.strip(): + raise ValueError(f"MCP 服务器 {self.name} 使用 sse 时必须填写 url") + return super().model_post_init(context)