fix(platform): add Swagger (type 7) to McpServerType#1762
Merged
Conversation
The backend exposes a Swagger MCP server type (a user-provided Swagger/OpenAPI
spec served as an MCP server) with enum value 7, but McpServerType stopped at
Platform = 6. mcp.retrieve_async validates the response into McpServer, so any
agent that resolves a Swagger MCP server fails with:
1 validation error for McpServer
type: Input should be 0, 1, 2, 3, 4, 5 or 6 [input_value=7]
Add Swagger = 7, matching the Orchestrator/AgentHub enum. The MCP client
connects via mcp_url and does not branch on type, so accepting the value is
sufficient for the server to load.
Bumps uipath-platform 0.1.76 -> 0.1.77.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ELDu3m5eaURJrMVarc8VfY
radugheo
approved these changes
Jun 25, 2026
|
edis-uipath
approved these changes
Jun 25, 2026
Collaborator
Author
|
Superseded: |
Collaborator
Author
|
Correction to my previous comment: this PR was in fact already merged and released as |
viswa-uipath
pushed a commit
that referenced
this pull request
Jun 26, 2026
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Problem
The backend exposes a Swagger MCP server type — a user-provided Swagger/OpenAPI spec served as an MCP server — with enum value 7, but
McpServerType(inuipath-platform) stops atPlatform = 6.McpService.retrieve_asyncvalidates the Orchestrator response intoMcpServer, so any agent that resolves a Swagger MCP server crashes:This surfaced on a coded agent calling a registered Swagger MCP (an "Employee Directory" OpenAPI server) —
mcp.retrieve_asyncfailed before tools could be listed.Change
Add
Swagger = 7toMcpServerType, matching the Orchestrator/AgentHub enum (UiServer.cs:Swagger = 7 // User-provided Swagger/OpenAPI spec exposed as MCP server).The MCP client connects via
mcp_urland does not branch ontype, so accepting the value is sufficient for the server to load its tools — no further handling needed.Tests
McpServerType.Swagger == 7McpServer.model_validate({"type": 7, …})validates (regression for backend server types newer than the SDK enum).uv sync --locked,ruff,mypy, and the mcp-service test module pass.Versioning
Bumps
uipath-platform0.1.76 → 0.1.77 (+ refreshes the editable entry inuipath/uipath-platformlockfiles).🤖 Generated with Claude Code
https://claude.ai/code/session_01ELDu3m5eaURJrMVarc8VfY