Skip to content

Commit 288d963

Browse files
committed
fix: use contextual env variables
1 parent 90f2b5a commit 288d963

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "uipath-mcp"
3-
version = "0.0.45"
3+
version = "0.0.46"
44
description = "UiPath MCP SDK"
55
readme = { file = "README.md", content-type = "text/markdown" }
66
requires-python = ">=3.10"

src/uipath_mcp/_cli/_utils/_config.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,11 @@ def __init__(self, name: str, server_config: Dict[str, Any], session_id: Optiona
1313
self.session_id = session_id
1414
self.type = server_config.get("type")
1515
self.command = server_config.get("command")
16-
self.env = server_config.get("env", {})
1716
self.args = server_config.get("args", [])
17+
self.env = server_config.get("env", {})
18+
for key in list(self.env.keys()):
19+
if key in os.environ:
20+
self.env[key] = os.environ[key]
1821

1922
@property
2023
def file_path(self) -> Optional[str]:

0 commit comments

Comments
 (0)