Skip to content

Add MCP Server Settings dialog in AI menu#156

Merged
fernandotonon merged 2 commits intomasterfrom
feature/mcp-settings-dialog
Feb 25, 2026
Merged

Add MCP Server Settings dialog in AI menu#156
fernandotonon merged 2 commits intomasterfrom
feature/mcp-settings-dialog

Conversation

@fernandotonon
Copy link
Owner

Summary

  • Adds "MCP Server Settings..." action to the AI menu, opening a dialog to enable/disable the MCP HTTP server and configure its port
  • Persists settings (MCP/enabled, MCP/port) via QSettings so the server auto-starts on app launch if previously enabled
  • Adds stopHttp(), isHttpRunning(), httpPort() to MCPServer for runtime control
  • CLI --with-mcp now hands server ownership to MainWindow so the dialog reflects accurate state

Test plan

  • Launch app → AI menu → "MCP Server Settings..." → dialog opens
  • Check "Enable MCP HTTP Server" → status shows "Running on port 8080"
  • curl http://localhost:8080/api/tools → returns tool list
  • Uncheck → server stops, curl fails
  • Change port to 9090, enable → runs on 9090
  • Close/reopen app → settings persist, auto-starts if enabled
  • Launch with --with-mcp --http-port 3000 → dialog shows running on 3000
  • Build UnitTests target → no linker errors

🤖 Generated with Claude Code

Allow users to start/stop the MCP HTTP server and configure its port
from the GUI, with settings persisted via QSettings across restarts.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 2e19286bf7

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

…debug

- Fix CI linker error: add MCPServer.cpp/.h to TEST_SRC/HEADER_FILES
- Fix setMCPServer to stop/delete any existing auto-started server
  before replacing (avoids orphaned listener on --with-mcp launch)
- Only persist MCP/enabled=true after confirming startHttp succeeded;
  show error in dialog and revert checkbox on port-bind failure
- Change startHttp return type to bool for success/failure feedback
- BoneWeightOverlay now polls bone selection user bindings directly,
  so weight colors update when selecting bones in the animation
  control Bones list without needing skeleton debug enabled

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@sonarqubecloud
Copy link

@fernandotonon fernandotonon merged commit 60cfaed into master Feb 25, 2026
14 checks passed
@fernandotonon fernandotonon deleted the feature/mcp-settings-dialog branch February 25, 2026 19:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant