From 4554633046e570abb004d3e8ab3ddcd197320f9c Mon Sep 17 00:00:00 2001 From: Prakash Maheshwaran Date: Wed, 28 May 2025 14:55:49 -0700 Subject: [PATCH] fixed python version check in mcp CLI setup --- skyvern/cli/mcp.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/skyvern/cli/mcp.py b/skyvern/cli/mcp.py index 3b7a9d2d..ee714a65 100644 --- a/skyvern/cli/mcp.py +++ b/skyvern/cli/mcp.py @@ -67,15 +67,15 @@ def get_windsurf_config_path(host_system: str) -> str: def setup_mcp_config() -> str: console.print(Panel("[bold yellow]Setting up MCP Python Environment[/bold yellow]", border_style="yellow")) python_paths: list[tuple[str, str]] = [] - for python_cmd in ["python", "python3.11"]: + for python_cmd in ["python", "python3.11", "python3.12", "python3.13"]: python_path = shutil.which(python_cmd) if python_path: python_paths.append((python_cmd, python_path)) if not python_paths: - console.print("[red]Error: Could not find any Python installation. Please install Python 3.11 first.[/red]") + console.print("[red]Error: Could not find any Python installation. Please install Python 3.11 or higher first.[/red]") path_to_env = Prompt.ask( - "Enter the full path to your python 3.11 environment. For example in MacOS if you installed it using Homebrew, it would be [cyan]/opt/homebrew/bin/python3.11[/cyan]" + "Enter the full path to your Python 3.11+ environment. For example in MacOS if you installed it using Homebrew, it would be [cyan]/opt/homebrew/bin/python3.11[/cyan] or [cyan]/opt/homebrew/bin/python3.12[/cyan]" ) else: _, default_path = python_paths[0]