From b5c36ebef44362216d709ae96fe47c164bf02115 Mon Sep 17 00:00:00 2001 From: Mithun Gowda B Date: Mon, 8 Sep 2025 22:02:20 +0530 Subject: [PATCH] Update mcp.py Fixed the Serena installation timeout issue Signed-off-by: Mithun Gowda B --- setup/components/mcp.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/setup/components/mcp.py b/setup/components/mcp.py index e4646f8..bbf31f6 100644 --- a/setup/components/mcp.py +++ b/setup/components/mcp.py @@ -6,6 +6,7 @@ import subprocess import sys from typing import Dict, List, Tuple, Optional, Any from pathlib import Path +import shlex from ..core.base import Component from ..utils.ui import display_info, display_warning @@ -181,11 +182,13 @@ class MCPComponent(Component): self.logger.debug(f"Running: {install_command}") + + cmd_parts = shlex.split(install_command) result = subprocess.run( - install_command.split(), + cmd_parts, capture_output=True, text=True, - timeout=300, + timeout=900, # 15 minutes shell=(sys.platform == "win32") )