You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
DevServer CLI: send server instructions for the app tools in the MCP initialize result #25498
The uno.devserver --mcp-app stdio proxy should send MCP ServerInstructions in its initialize result, telling the client how the uno_app_* tools are meant to be used together:
when only the meta tools are listed, call uno_discover_tools once and run app tools through uno_execute_tool;
start the app with uno_app_start, never dotnet run;
after editing a .xaml/.cs file, don't build, restart or start again: call uno_app_hot_reload_status(file), then uno_app_find_elements;
on a reported RudeEdit (or to reload app data, or after a Release build), call uno_app_restart once, or uno_app_close then uno_app_start on an add-in without it (1.4);
locate elements by automationId/name, and close with uno_app_close.
Why is this needed?
Today the proxy sends no instructions, so a client such as Claude Code learns how the app tools fit together only from tool descriptions, read once inside a 20k-character catalog, and from whatever skill it loaded. The Uno.UI.App.Mcp add-in sets instructions on the host's MCP server (unoplatform/uno.app-mcp#194), but the proxy can't forward them: it answers initialize before the upstream host is connected.
The effect shows in the FieldCheck comparisons in unoplatform/private (tools/skill-ab, runs of 2026-10-09 and 2026-10-10):
The Uno agent called uno_app_start 17 to 26 times per session and asked uno_app_hot_reload_status 1 to 10 times; 27 of 73 restarts after the first start followed nothing but .xaml/.cs edits.
The Flutter agent on the same brief used hot_reload 13 times per session. What drives it is the Dart MCP server's two-sentence instructions ("After completing Dart/Flutter code changes, always execute a hot reload or hot restart…"), which the client keeps in the system prompt for the whole session.
Notes
The proxy text is kept in step with the add-in's copy, differing only in the discover/execute sentence and the uno_app_restart fallback the proxy needs because it serves any add-in version.
An older add-in doesn't list uno_app_hot_reload_status or uno_app_find_elements; the discover/execute sentence still holds.
Activity