Skip to content

Agent Mesh

mobile: keep whitespace out of the external MCP URL field

Tomas Tormo720b835e8a94
diff --git a/mobile/sam-node-app/lib/main.dart b/mobile/sam-node-app/lib/main.dart
index f5c8fa53..0bd1edda 100644
--- a/mobile/sam-node-app/lib/main.dart
+++ b/mobile/sam-node-app/lib/main.dart
@@ -968,6 +968,9 @@ class _NodeControlPageState extends State<NodeControlPage> {
TextFormField(
controller: _externalMcpUrlController,
enabled: !isRunning,
+ inputFormatters: [
+ FilteringTextInputFormatter.deny(RegExp(r'\s'))
+ ],
decoration: const InputDecoration(
labelText: 'External MCP Server URL',
hintText: 'http://127.0.0.1:8080',