chore: change the server url validation

pull/22036/head
Novice 11 months ago
parent a67325f444
commit 901c3157c3

@ -659,6 +659,9 @@ class ToolProviderMCPApi(Resource):
parser.add_argument("provider_id", type=str, required=True, nullable=False, location="json")
args = parser.parse_args()
if not validators.url(args["server_url"]):
if "[__HIDDEN__]" in args["server_url"]:
pass
else:
raise ValueError("Server URL is not valid.")
MCPToolManageService.update_mcp_provider(
tenant_id=current_user.current_tenant_id,

Loading…
Cancel
Save