Skip to content

feat: add Platform and SwaggerMcp server types to McpServerType enum#1456

Draft
edis-uipath wants to merge 1 commit intomainfrom
feat/add-swagger-mcp-server-type
Draft

feat: add Platform and SwaggerMcp server types to McpServerType enum#1456
edis-uipath wants to merge 1 commit intomainfrom
feat/add-swagger-mcp-server-type

Conversation

@edis-uipath
Copy link
Contributor

@edis-uipath edis-uipath commented Mar 17, 2026

Summary

  • Add Platform = 6 and SwaggerMcp = 7 to McpServerType enum in uipath-platform
  • The AgentHub backend supports these server types but the SDK doesn't recognize them, causing a Pydantic validation error when retrieving swagger-mcp servers:
    Input should be 0, 1, 2, 3, 4 or 5 [type=enum, input_value=7, input_type=int]
    

Test plan

  • Verify McpServer.model_validate({"type": 7, ...}) no longer raises a validation error
  • Verify existing server types (0-5) still work correctly

🤖 Generated with Claude Code

Development Packages

uipath-platform

[project]
dependencies = [
  # Exact version:
  "uipath-platform==0.0.25.dev1014565396",

  # Any version from PR
  "uipath-platform>=0.0.25.dev1014560000,<0.0.25.dev1014570000"
]

[[tool.uv.index]]
name = "testpypi"
url = "https://test.pypi.org/simple/"
publish-url = "https://test.pypi.org/legacy/"
explicit = true

[tool.uv.sources]
uipath-platform = { index = "testpypi" }

uipath

[project]
dependencies = [
  # Exact version:
  "uipath==2.10.15.dev1014565396",

  # Any version from PR
  "uipath>=2.10.15.dev1014560000,<2.10.15.dev1014570000"
]

[[tool.uv.index]]
name = "testpypi"
url = "https://test.pypi.org/simple/"
publish-url = "https://test.pypi.org/legacy/"
explicit = true

[tool.uv.sources]
uipath = { index = "testpypi" }

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) <noreply@anthropic.com>
@github-actions github-actions bot added the test:uipath-langchain Triggers tests in the uipath-langchain-python repository label Mar 17, 2026
@edis-uipath edis-uipath added the build:dev Create a dev build from the pr label Mar 17, 2026
@edis-uipath edis-uipath marked this pull request as draft March 17, 2026 14:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

build:dev Create a dev build from the pr test:uipath-langchain Triggers tests in the uipath-langchain-python repository

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant