diff --git a/libs/arcade-cli/arcade_cli/configure.py b/libs/arcade-cli/arcade_cli/configure.py index 68ca07a4..9f503799 100644 --- a/libs/arcade-cli/arcade_cli/configure.py +++ b/libs/arcade-cli/arcade_cli/configure.py @@ -526,12 +526,18 @@ def configure_client( server_name = Path.cwd().name if transport == "stdio": - if not bool(re.match(r"^[a-zA-Z0-9_-]+\.py$", entrypoint_file)): - raise ValueError(f"Entrypoint file '{entrypoint_file}' is not a valid Python file name") + if "/" in entrypoint_file or "\\" in entrypoint_file: + raise ValueError( + f"Entrypoint file '{entrypoint_file}' must be a filename in the current " + f"directory, not a path" + ) if not (Path.cwd() / entrypoint_file).exists(): raise ValueError(f"Entrypoint file '{entrypoint_file}' is not in the current directory") + if not bool(re.match(r"^[a-zA-Z0-9_-]+\.py$", entrypoint_file)): + raise ValueError(f"Entrypoint file '{entrypoint_file}' is not a valid Python file name") + client_lower = client.lower() if client_lower == "claude": diff --git a/pyproject.toml b/pyproject.toml index 87c7d0e6..906852ef 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "arcade-mcp" -version = "1.13.0" +version = "1.13.1" description = "Arcade.dev - Tool Calling platform for Agents" readme = "README.md" license = { file = "LICENSE" }