Skip to content
Closed
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ui/app/config/views/mcpClientForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ const ClientForm: React.FC<ClientFormProps> = ({ 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_]+)$/,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Image

this fails for https

@KingVibhor please add test cases as well and re-submit

"Connection URL must start with http://, https://, or be an environment variable (env.VAR_NAME)",
),
]
Expand Down