Repository navigation
fix: MCP server runtime toggle & AppCapability MCP-only separation - #483
Merged
shanselman merged 1 commit intoMay 21, 2026
Merged
Conversation
- Make NodeService._enableMcpServer mutable with SetMcpEnabled(bool) for runtime start/stop of the local MCP HTTP server when the user toggles EnableMcpServer in the Settings UI. - Separate EnableMcpServer from EnableNodeMode in SettingsChangeClassifier so toggling MCP returns UiOnly (no unnecessary gateway reconnect). - Move AppCapability out of NodeService into App.xaml.cs — registered via RegisterMcpOnlyCapability() so app.* tools are MCP-only and not exposed to the gateway. Wire handlers after capability registration in all paths (AttachClient, StartLocalOnlyAsync, SetMcpEnabled). - Add _mcpOnlyCapabilities list and merge into MCP bridge lambda so MCP-only tools appear in tools/list without gateway registration. - Add 3 new SettingsChangeImpact classifier tests. Verified: build passes, 1803 shared / 1149 tray / 228 connection tests pass, 37/39 MCP tools verified end-to-end via curl. Co-authored-by: Copilot <[email protected]>
shanselman
added a commit
that referenced
this pull request
May 21, 2026
Gate system.run and system.run.prepare behind the Permissions page toggle while keeping the rest of the system capability registered. Rebuild node capabilities from current settings on reconnect so permission changes take effect without restarting the tray. Resolved against #483/#488 after local validation. Co-authored-by: Copilot <[email protected]>
10 of 17 tasks
6 of 16 tasks
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 the broken Local MCP Server toggle in Settings — enabling/disabling MCP at runtime now correctly starts/stops the HTTP server. Also separates \AppCapability\ (app.* tools) from the gateway so they're MCP-only.
Changes
1. Runtime MCP toggle (\NodeService.SetMcpEnabled)
eadonly\ — toggling MCP in the UI never started/stopped the server
2. Classifier fix (\SettingsChangeImpact)
3. AppCapability → MCP-only
Testing