From 9d5412cc559ebe499d61b8c22306d4f9436af2af Mon Sep 17 00:00:00 2001 From: King-Vibhor Date: Fri, 10 Oct 2025 13:16:06 +0530 Subject: [PATCH 1/3] Fixed regec validation --- ui/app/config/views/mcpClientForm.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/app/config/views/mcpClientForm.tsx b/ui/app/config/views/mcpClientForm.tsx index bc1208c5d..3b6211af6 100644 --- a/ui/app/config/views/mcpClientForm.tsx +++ b/ui/app/config/views/mcpClientForm.tsx @@ -113,7 +113,7 @@ const ClientForm: React.FC = ({ client, open, onClose, onSaved Validator.required(form.connection_string?.trim(), "Connection URL is required"), Validator.pattern( form.connection_string || "", - /^(http:\/\/|https:\/\/|env\.[A-Z_]+$)/, + /^(?:http:\/\/|https:\/\/|env\.[A-Z_]+)$/, "Connection URL must start with http://, https://, or be an environment variable (env.VAR_NAME)", ), ] From 70c7d8cfd7e8f0ac3c32a9c29bcdbac573d05df3 Mon Sep 17 00:00:00 2001 From: King-Vibhor Date: Fri, 10 Oct 2025 13:46:43 +0530 Subject: [PATCH 2/3] Addressed review comments --- ui/app/config/views/mcpClientForm.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/app/config/views/mcpClientForm.tsx b/ui/app/config/views/mcpClientForm.tsx index 3b6211af6..9e3909485 100644 --- a/ui/app/config/views/mcpClientForm.tsx +++ b/ui/app/config/views/mcpClientForm.tsx @@ -113,7 +113,7 @@ const ClientForm: React.FC = ({ client, open, onClose, onSaved Validator.required(form.connection_string?.trim(), "Connection URL is required"), Validator.pattern( form.connection_string || "", - /^(?:http:\/\/|https:\/\/|env\.[A-Z_]+)$/, + /^(?:http:?\/\/.+|env\.[A-Z_]+)$/, "Connection URL must start with http://, https://, or be an environment variable (env.VAR_NAME)", ), ] From a2ffd06563b9ad7ef7430dfb98d6d31b64f9bc93 Mon Sep 17 00:00:00 2001 From: King-Vibhor Date: Sat, 11 Oct 2025 00:43:29 +0530 Subject: [PATCH 3/3] Fix regex validation to support HTTPS URLs in connection strings --- ui/app/config/views/mcpClientForm.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/app/config/views/mcpClientForm.tsx b/ui/app/config/views/mcpClientForm.tsx index 9e3909485..90ff2b3e8 100644 --- a/ui/app/config/views/mcpClientForm.tsx +++ b/ui/app/config/views/mcpClientForm.tsx @@ -113,7 +113,7 @@ const ClientForm: React.FC = ({ client, open, onClose, onSaved Validator.required(form.connection_string?.trim(), "Connection URL is required"), Validator.pattern( form.connection_string || "", - /^(?:http:?\/\/.+|env\.[A-Z_]+)$/, + /^(?:https?:\/\/.+|env\.[A-Z_]+)$/, "Connection URL must start with http://, https://, or be an environment variable (env.VAR_NAME)", ), ]