From 31363734c5a16765f214be412b4b1c6cb21f4577 Mon Sep 17 00:00:00 2001 From: Adolfo Reyna Date: Wed, 17 Jun 2026 22:36:32 -0400 Subject: [PATCH] Allow upload_files.py to accept target IP as command line argument --- upload_files.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/upload_files.py b/upload_files.py index 58e3841..130e507 100644 --- a/upload_files.py +++ b/upload_files.py @@ -3,7 +3,13 @@ import json import urllib.request import sys +# Default ESP32 IP ESP32_IP = "192.168.68.124" + +# Allow overriding IP via command-line argument +if len(sys.argv) > 1: + ESP32_IP = sys.argv[1] + URL = f"http://{ESP32_IP}/api/mcp" def call_mcp_tool(tool_name, arguments):