diff --git a/pyproject.toml b/pyproject.toml index 04179a0..1031cd1 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "uipath-mcp" -version = "0.0.96" +version = "0.0.97" description = "UiPath MCP SDK" readme = { file = "README.md", content-type = "text/markdown" } requires-python = ">=3.11" diff --git a/src/uipath_mcp/_cli/cli_run.py b/src/uipath_mcp/_cli/cli_run.py index c2d4a4c..08fb3e6 100644 --- a/src/uipath_mcp/_cli/cli_run.py +++ b/src/uipath_mcp/_cli/cli_run.py @@ -33,6 +33,23 @@ async def execute(): context = UiPathMcpRuntimeContext.from_config( env.get("UIPATH_CONFIG_PATH", "uipath.json") ) + + import json + import os + + config_path = env.get("UIPATH_CONFIG_PATH") + path = config_path or "uipath.json" + + config2 = {} + + if os.path.exists(path): + with open(path, "r") as f: + config2 = json.load(f) + + print("-" * 40) + print(config2) + print("-" * 40) + context.config = config context.entrypoint = entrypoint context.input = input