Skip to content

Commit 3731bce

Browse files
committed
log client info
1 parent 0b1fc21 commit 3731bce

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/uipath_mcp/_cli/_runtime/_runtime.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -357,6 +357,8 @@ async def _register(self) -> None:
357357
}
358358
client_info["tools"].append(tool_info)
359359

360+
logger.info(client_info)
361+
360362
# Register with UiPath MCP Server
361363
await self._uipath.api_client.request_async(
362364
"POST",
@@ -366,6 +368,9 @@ async def _register(self) -> None:
366368
logger.info("Registered MCP Server type successfully")
367369
except Exception as e:
368370
logger.error(f"Error during registration: {e}")
371+
if (e.status_code == 400):
372+
logger.error(f"Error details: {e.response.text}")
373+
369374
raise UiPathMcpRuntimeError(
370375
"REGISTRATION_ERROR",
371376
"Failed to register MCP Server",

0 commit comments

Comments
 (0)