From 26eb25f86fda6016e430594053fbb1c0b42b49f1 Mon Sep 17 00:00:00 2001 From: Eduard Stanculet Date: Tue, 17 Mar 2026 16:45:43 +0200 Subject: [PATCH] feat: add Platform and SwaggerMcp server types to McpServerType enum The AgentHub backend now supports server types 6 (Platform) and 7 (SwaggerMcp). Without these, the SDK raises a Pydantic validation error when retrieving swagger-mcp servers. Co-Authored-By: Claude Opus 4.6 (1M context) --- .../uipath-platform/src/uipath/platform/orchestrator/mcp.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/uipath-platform/src/uipath/platform/orchestrator/mcp.py b/packages/uipath-platform/src/uipath/platform/orchestrator/mcp.py index 9a811d876..95c5ebc4a 100644 --- a/packages/uipath-platform/src/uipath/platform/orchestrator/mcp.py +++ b/packages/uipath-platform/src/uipath/platform/orchestrator/mcp.py @@ -17,6 +17,8 @@ class McpServerType(IntEnum): SelfHosted = 3 # tunnel to (externally) self-hosted server Remote = 4 # HTTP connection to remote MCP server ProcessAssistant = 5 # Dynamic user process assistant + Platform = 6 # Platform-provided MCP service + SwaggerMcp = 7 # OpenAPI/Swagger-backed MCP server class McpServerStatus(IntEnum):