File tree Expand file tree Collapse file tree 2 files changed +11
-9
lines changed
src/uipath_mcp/_cli/_runtime Expand file tree Collapse file tree 2 files changed +11
-9
lines changed Original file line number Diff line number Diff line change 11[project ]
22name = " uipath-mcp"
3- version = " 0.0.88 "
3+ version = " 0.0.89 "
44description = " UiPath MCP SDK"
55readme = { file = " README.md" , content-type = " text/markdown" }
66requires-python = " >=3.10"
Original file line number Diff line number Diff line change @@ -259,6 +259,16 @@ async def _handle_signalr_close(self) -> None:
259259
260260 async def _register (self ) -> None :
261261 """Register the MCP server with UiPath."""
262+
263+ folder_key = os .environ .get ("UIPATH_FOLDER_KEY" )
264+ if not folder_key :
265+ raise UiPathMcpRuntimeError (
266+ "REGISTRATION_ERROR" ,
267+ "No UIPATH_FOLDER_KEY environment variable set." ,
268+ "Please set the UIPATH_FOLDER_KEY environment variable." ,
269+ UiPathErrorCategory .USER ,
270+ )
271+
262272 initialization_successful = False
263273 tools_result = None
264274 server_stderr_output = ""
@@ -375,14 +385,6 @@ async def _register(self) -> None:
375385
376386 logger .info (client_info )
377387
378- folder_key = os .environ .get ("UIPATH_FOLDER_KEY" )
379- if not folder_key :
380- raise UiPathMcpRuntimeError (
381- "REGISTRATION_ERROR" ,
382- "No UIPATH_FOLDER_KEY environment variable set." ,
383- UiPathErrorCategory .USER ,
384- )
385-
386388 # Register with UiPath MCP Server
387389 await self ._uipath .api_client .request_async (
388390 "POST" ,
You can’t perform that action at this time.
0 commit comments