From 3731bcea770c7fd25cefde9938935397ad45e4bc Mon Sep 17 00:00:00 2001 From: Eduard Stanculet Date: Thu, 22 May 2025 10:42:09 +0300 Subject: [PATCH] log client info --- src/uipath_mcp/_cli/_runtime/_runtime.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/uipath_mcp/_cli/_runtime/_runtime.py b/src/uipath_mcp/_cli/_runtime/_runtime.py index afd067b..685b127 100644 --- a/src/uipath_mcp/_cli/_runtime/_runtime.py +++ b/src/uipath_mcp/_cli/_runtime/_runtime.py @@ -357,6 +357,8 @@ async def _register(self) -> None: } client_info["tools"].append(tool_info) + logger.info(client_info) + # Register with UiPath MCP Server await self._uipath.api_client.request_async( "POST", @@ -366,6 +368,9 @@ async def _register(self) -> None: logger.info("Registered MCP Server type successfully") except Exception as e: logger.error(f"Error during registration: {e}") + if (e.status_code == 400): + logger.error(f"Error details: {e.response.text}") + raise UiPathMcpRuntimeError( "REGISTRATION_ERROR", "Failed to register MCP Server",