Skip to content

Commit e916fe2

Browse files
authored
Merge pull request #126 from UiPath/fix/signalr_access_token
Fix: Pass access token on SignalR connect
2 parents afcf400 + 605dac3 commit e916fe2

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
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.98"
3+
version = "0.0.99"
44
description = "UiPath MCP SDK"
55
readme = { file = "README.md", content-type = "text/markdown" }
66
requires-python = ">=3.11"

src/uipath_mcp/_cli/_runtime/_runtime.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,8 +176,12 @@ async def execute(self) -> Optional[UiPathRuntimeResult]:
176176
root_span.set_attribute("args", json.dumps(self._server.args))
177177
root_span.set_attribute("span_type", "MCP Server")
178178

179+
def token_factory() -> str:
180+
return os.environ.get("UIPATH_ACCESS_TOKEN", "")
181+
179182
self._signalr_client = SignalRClient(
180183
signalr_url,
184+
access_token_factory=token_factory,
181185
headers={
182186
"X-UiPath-Internal-TenantId": self.context.trace_context.tenant_id, # type: ignore
183187
"X-UiPath-Internal-AccountId": self.context.trace_context.org_id, # type: ignore

0 commit comments

Comments
 (0)