Repository navigation
fix(remotecontrol): register HTTP transport for the DevServer Host's MCP server (backport #24196) - #25758
Merged
agneszitte merged 1 commit intoOct 27, 2026
Conversation
…MCP server
HostHealthTool.Configure() calls AddMcpServer() and registers tools/resources,
but never calls WithHttpTransport(). Startup.cs then unconditionally maps
/mcp via endpoints.MapMcp("/mcp"), which throws InvalidOperationException at
every request since no HTTP transport was ever registered for the MCP
server. The exception is caught and only logged as a warning ("Unable to
find the MCP Tooling in the environment, the MCP feature is disabled."), so
the host keeps running but the /mcp endpoint 404s on every request.
This breaks any MCP client that talks to the DevServer host over HTTP,
including IDE/tooling integrations that rely on uno_health and friends.
Co-Authored-By: Claude Sonnet 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_013hhqdwAeyzFqWJcy44Lyad
(cherry picked from commit 555d6c6)
4 tasks done
agneszitte
approved these changes
Oct 27, 2026
This was referenced Nov 9, 2026
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.
Summary
Fixes #24195.
The DevServer host's
/mcpHTTP endpoint (added in afa3154) never actually works:HostHealthTool.Configure()callsAddMcpServer()and registers tools/resources, but never calls.WithHttpTransport().Startup.csunconditionally callsendpoints.MapMcp("/mcp"), which throwsInvalidOperationExceptionon every request since no HTTP transport was registered — caught and only logged as a warning, so the host keeps running with/mcpsilently 404ing.This one-line fix adds
.WithHttpTransport()to theAddMcpServer()chain.Test plan
Uno.UI.RemoteControl.Hostfrom this branch (net10.0 slice) and ran it standalone.curl http://localhost:<port>/mcpwith a properinitializerequest now returns200with a valid MCP handshake response, instead of404.Unable to find the MCP Tooling in the environmentwarning on startup.uno_healthnow reportsstatus: Healthy,toolCount: 12(once theUno.UI.App.Mcp.Serveradd-in is also passed),issues: [], versustoolCount: 0/HostMcpEndpointNotAvailablebefore the fix.🤖 Generated with Claude Code
https://claude.ai/code/session_013hhqdwAeyzFqWJcy44Lyad
This is an automatic backport of pull request #24196 done by Mergify.