Skip to content

Commit dbb42ba

Browse files
committed
fix: trim URL field in MCP server form for consistency
1 parent ad0ceb3 commit dbb42ba

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

packages/ai-native/src/browser/mcp/config/components/mcp-server-form.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,9 @@ export const MCPServerForm: FC<Props> = ({ visible, initialData, onSave, onCance
109109
if (form.command) {
110110
form.command = form.command.trim();
111111
}
112+
if (form.url) {
113+
form.url = form.url.trim();
114+
}
112115
if (formData.type === MCP_SERVER_TYPE.SSE) {
113116
form.url = form.url?.trim();
114117
} else {

0 commit comments

Comments
 (0)