Skip to content

Commit 12e0861

Browse files
authored
Merge pull request #153 from UiPath/fix/runtime-error-handling
fix: runtime error handling
2 parents b8a1501 + 2392a96 commit 12e0861

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "uipath-mcp"
3-
version = "0.0.104"
3+
version = "0.0.105"
44
description = "UiPath MCP SDK"
55
readme = { file = "README.md", content-type = "text/markdown" }
66
requires-python = ">=3.11"

src/uipath_mcp/_cli/_runtime/_runtime.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -402,8 +402,8 @@ async def _register(self) -> None:
402402
# Only proceed if initialization was successful
403403
tools_result = await session.list_tools()
404404
# logger.info(tools_result)
405-
except asyncio.TimeoutError:
406-
logger.error("Initialization timed out")
405+
except Exception as err:
406+
logger.error(f"Initialization error: {err}")
407407
# Capture stderr output here, after the timeout
408408
stderr_temp.seek(0)
409409
server_stderr_output = stderr_temp.read()
@@ -418,7 +418,7 @@ async def _register(self) -> None:
418418
# Now that we're outside the context managers, check if initialization succeeded
419419
if not initialization_successful:
420420
await self._on_runtime_abort()
421-
error_message = "The server process failed to initialize. Verify environment variables are set correctly."
421+
error_message = "The server process failed to initialize."
422422
if server_stderr_output:
423423
error_message += f"\nServer error output:\n{server_stderr_output}"
424424
raise UiPathMcpRuntimeError(

uv.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)