@@ -72,7 +72,7 @@ async def execute(self) -> Optional[UiPathRuntimeResult]:
7272 ) # type: ignore
7373
7474 # Set up SignalR client
75- signalr_url = f"{ os .environ .get ('UIPATH_URL' )} /mcp_ /wsstunnel?slug={ self ._server .name } &runtimeId={ self ._runtime_id } "
75+ signalr_url = f"{ os .environ .get ('UIPATH_URL' )} /agenthub_ /wsstunnel?slug={ self ._server .name } &runtimeId={ self ._runtime_id } "
7676
7777 with tracer .start_as_current_span (self ._server .name ) as root_span :
7878 root_span .set_attribute ("runtime_id" , self ._runtime_id )
@@ -389,7 +389,7 @@ async def _register(self) -> None:
389389 # Register with UiPath MCP Server
390390 await self ._uipath .api_client .request_async (
391391 "POST" ,
392- f"mcp_ /mcp/{ self ._server .name } /runtime/start?runtimeId={ self ._runtime_id } " ,
392+ f"agenthub_ /mcp/{ self ._server .name } /runtime/start?runtimeId={ self ._runtime_id } " ,
393393 json = client_info ,
394394 headers = {"X-UIPATH-FolderKey" : folder_key },
395395 )
@@ -414,7 +414,7 @@ async def _on_session_start_error(self, session_id: str) -> None:
414414 try :
415415 response = await self ._uipath .api_client .request_async (
416416 "POST" ,
417- f"mcp_ /mcp/{ self ._server .name } /out/message?sessionId={ session_id } " ,
417+ f"agenthub_ /mcp/{ self ._server .name } /out/message?sessionId={ session_id } " ,
418418 json = JSONRPCResponse (
419419 jsonrpc = "2.0" ,
420420 id = 0 ,
@@ -480,7 +480,7 @@ async def _on_runtime_abort(self) -> None:
480480 try :
481481 response = await self ._uipath .api_client .request_async (
482482 "POST" ,
483- f"mcp_ /mcp/{ self ._server .name } /runtime/abort?runtimeId={ self ._runtime_id } " ,
483+ f"agenthub_ /mcp/{ self ._server .name } /runtime/abort?runtimeId={ self ._runtime_id } " ,
484484 )
485485 if response .status_code == 202 :
486486 logger .info (
0 commit comments