diff --git a/apps/schemas/mcp.py b/apps/schemas/mcp.py index b1f45c4371e42204afd52a12dbad69a05f5133a9..be25b4eb90d7dc85edac4f3e0501da4b330792fd 100644 --- a/apps/schemas/mcp.py +++ b/apps/schemas/mcp.py @@ -57,7 +57,7 @@ class MCPServerStdioConfig(MCPBasicConfig): class MCPServerSSEConfig(MCPBasicConfig): """MCP 服务器配置""" - url: str = Field(description="MCP 服务器地址", default="http://example.com/sse", pattern=r"^https?://.+/sse$") + url: str = Field(description="MCP 服务器地址", default="http://example.com/sse", pattern=r"^https?://.+/sse.*$") class MCPServerConfig(BaseModel):