Skip to content

Commit 0a897f6

Browse files
authored
Merge pull request #31 from UiPath/fix/samples
fix: parse env variables
2 parents 28d201f + cc0a9db commit 0a897f6

File tree

4 files changed

+4
-2
lines changed

4 files changed

+4
-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.27"
3+
version = "0.0.28"
44
description = "UiPath MCP SDK"
55
readme = { file = "README.md", content-type = "text/markdown" }
66
requires-python = ">=3.10"

src/uipath_mcp/_cli/_runtime/_runtime.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ async def execute(self) -> Optional[UiPathRuntimeResult]:
6262
with tracer.start_as_current_span(self.server.name) as root_span:
6363
root_span.set_attribute("session_id", self.server.session_id)
6464
root_span.set_attribute("command", self.server.command)
65+
root_span.set_attribute("env", self.server.env)
6566
root_span.set_attribute("args", self.server.args)
6667
self.signalr_client = SignalRClient(
6768
signalr_url,

src/uipath_mcp/_cli/_runtime/_session.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ async def start(self) -> None:
4242
server_params = StdioServerParameters(
4343
command=self.server_config.command,
4444
args=self.server_config.args,
45-
env=None,
45+
env=self.server_config.env,
4646
)
4747

4848
# Start the server process in a separate task

src/uipath_mcp/_cli/_utils/_config.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ 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", {})
1617
self.args = server_config.get("args", [])
1718

1819
@property

0 commit comments

Comments
 (0)