From 6025bb1256d4ae94388356cc2c7bef84a95a14b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Claude4=CE=9Elope?= Date: Fri, 27 Jun 2025 16:45:21 +0200 Subject: [PATCH] Fix daemon start directory creation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Added parents=True to mkdir call to create parent directories - Fixes FileNotFoundError when starting daemon in background 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- mcp_browser/__main__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mcp_browser/__main__.py b/mcp_browser/__main__.py index 425c842..a23a9f7 100644 --- a/mcp_browser/__main__.py +++ b/mcp_browser/__main__.py @@ -378,7 +378,7 @@ async def start_daemon_background(args): # Redirect stdout/stderr to log file log_dir = socket_path.parent / "logs" - log_dir.mkdir(exist_ok=True) + log_dir.mkdir(parents=True, exist_ok=True) log_file = log_dir / f"mcp-browser-{args.server or 'default'}.log" with open(log_file, 'a') as log: