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.1.4.dev1014565519",

  # Any version from PR
  "uipath-platform>=0.1.4.dev1014560000,<0.1.4.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.26.dev1014565519",

  # Any version from PR
  "uipath>=2.10.26.dev1014560000,<2.10.26.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
@mjnovice
Copy link
Contributor

@minion review this code and suggest changes

@minion-workers
Copy link

Minion Feedback received!

Addressing your feedback on this PR.

Track progress in the workflow runs.

@minion-workers
Copy link

Minion Feedback Agent completed

Metric Value
Model unknown
Turns 14
Cost $unknown
Workflow Run Run 70
Agent Summary

@minion-workers
Copy link

Minion Worker reviewed the feedback but determined no code changes were needed.

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 minion test:uipath-langchain Triggers tests in the uipath-langchain-python repository

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants