Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions libs/arcade-cli/arcade_cli/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -382,15 +382,17 @@ def evals(
require_dependency(
package_name="arcade_evals",
command_name="evals",
install_command=r"pip install 'arcade-mcp\[evals]'",
uv_install_command=r"uv tool install 'arcade-mcp[evals]'",
pip_install_command=r"pip install 'arcade-mcp[evals]'",
)
# Although Evals does not depend on the TDK, some evaluations import the
# ToolCatalog class from the TDK instead of from arcade_core, so we require
# the TDK to run the evals CLI command to avoid possible import errors.
require_dependency(
package_name="arcade_tdk",
command_name="evals",
install_command=r"pip install arcade-tdk",
uv_install_command=r"uv pip install arcade-tdk",
pip_install_command=r"pip install arcade-tdk",
)

models_list = models.split(",") # Use 'models_list' to avoid shadowing
Expand Down
17 changes: 11 additions & 6 deletions libs/arcade-cli/arcade_cli/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -961,20 +961,25 @@ def resolve_provider_api_key(provider: Provider, provider_api_key: str | None =
def require_dependency(
package_name: str,
command_name: str,
install_command: str,
uv_install_command: str,
pip_install_command: str,
) -> None:
"""
Display a helpful error message if the required dependency is missing.

Args:
package_name: The name of the package to import (e.g., 'arcade_serve')
command_name: The command that requires the package (e.g., 'serve')
install_command: The command to install the package (e.g., "pip install 'arcade-mcp[evals]'")
command_name: The command that requires the package (e.g., 'evals')
uv_install_command: The uv command to install the package (e.g., "uv tool install 'arcade-mcp[evals]'")
pip_install_command: The pip command to install the package (e.g., "pip install 'arcade-mcp[evals]'")
"""
try:
importlib.import_module(package_name.replace("-", "_"))
except ImportError:
handle_cli_error(
f"The '{package_name}' package is required to run the '{command_name}' command but is not installed. "
f"To install it, run the following command: {install_command}"
error_message = (
f"The '{package_name}' package is required to run the '{command_name}' command but is not installed.\n\n"
f"To install it:\n"
f" - If using uv: {uv_install_command}\n"
f" - If using pip: {pip_install_command}"
)
handle_cli_error(error_message)
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "arcade-mcp"
version = "1.5.3"
version = "1.5.4"
description = "Arcade.dev - Tool Calling platform for Agents"
readme = "README.md"
license = {file = "LICENSE"}
Expand Down