Skip to content

Commit 5730f31

Browse files
authored
Merge pull request #148 from UiPath/fix/load_dotenv
fix(load_dotenv): remove load_dotenv()
2 parents 1d85e3b + 9d671dd commit 5730f31

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
[project]
22
name = "uipath-mcp"
3-
version = "0.0.102"
3+
version = "0.0.103"
44
description = "UiPath MCP SDK"
55
readme = { file = "README.md", content-type = "text/markdown" }
66
requires-python = ">=3.11"
77
dependencies = [
88
"mcp==1.11.0",
99
"pysignalr==1.3.0",
10-
"uipath>=2.1.0, <2.2.0",
10+
"uipath>=2.1.54, <2.2.0",
1111
]
1212
classifiers = [
1313
"Development Status :: 3 - Alpha",

src/uipath_mcp/_cli/_runtime/_context.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,12 @@ class UiPathMcpRuntimeContext(UiPathRuntimeContext):
1515
server_slug: Optional[str] = None
1616

1717
@classmethod
18-
def from_config(cls, config_path=None):
18+
def from_config(
19+
cls, config_path: str | None = None, **kwargs: object
20+
) -> "UiPathMcpRuntimeContext":
1921
"""Load configuration from uipath.json file with MCP-specific handling."""
2022
# Use the parent's implementation
21-
instance = super().from_config(config_path)
23+
instance = super().from_config(config_path, **kwargs)
2224

2325
# Convert to our type (since parent returns UiPathRuntimeContext)
2426
mcp_instance = cls(**instance.model_dump())

src/uipath_mcp/_cli/cli_run.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
from os import environ as env
44
from typing import Optional
55

6-
from dotenv import load_dotenv
76
from uipath._cli._runtime._contracts import UiPathTraceContext
87
from uipath._cli.middlewares import MiddlewareResult
98

@@ -13,7 +12,6 @@
1312
from ._utils._config import McpConfig
1413

1514
logger = logging.getLogger(__name__)
16-
load_dotenv()
1715

1816

1917
def mcp_run_middleware(

0 commit comments

Comments
 (0)