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",