Skip to content

Commit 1db13b1

Browse files
committed
fix: add SignalR token to header
1 parent 520dbdb commit 1db13b1

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
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.100"
3+
version = "0.0.101"
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: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -175,17 +175,14 @@ async def execute(self) -> Optional[UiPathRuntimeResult]:
175175
root_span.set_attribute("command", str(self._server.command))
176176
root_span.set_attribute("args", json.dumps(self._server.args))
177177
root_span.set_attribute("span_type", "MCP Server")
178-
179-
def token_factory() -> str:
180-
return os.environ.get("UIPATH_ACCESS_TOKEN", "")
181-
178+
bearer_token = os.environ.get("UIPATH_ACCESS_TOKEN")
182179
self._signalr_client = SignalRClient(
183180
signalr_url,
184-
access_token_factory=token_factory,
185181
headers={
186182
"X-UiPath-Internal-TenantId": self.context.trace_context.tenant_id, # type: ignore
187183
"X-UiPath-Internal-AccountId": self.context.trace_context.org_id, # type: ignore
188184
"X-UIPATH-FolderKey": self.context.folder_key,
185+
"Authorization": f"Bearer {bearer_token}",
189186
},
190187
)
191188
self._signalr_client.on("MessageReceived", self._handle_signalr_message)

0 commit comments

Comments
 (0)