Files
conradomateu 82c23d79c7 feat: add auto-start option for RPC server on FreeCAD launch
Adds an opt-in setting to automatically start the RPC server when
FreeCAD opens, removing the need to manually click "Start RPC Server"
each session.

Changes:
- New `auto_start_rpc` setting in freecad_mcp_settings.json (default: false)
- New "Auto-Start Server" checkable menu item under FreeCAD MCP menu
- InitGui.py uses QTimer.singleShot(0) to start the server after
  FreeCAD finishes initialization, only when the setting is enabled
- Consolidated _sync_remote_toggle_state into _sync_toggle_states to
  handle both Remote Connections and Auto-Start checkboxes

Tested on macOS with FreeCAD 1.0. Cross-platform: uses only PySide
QtCore.QTimer and FreeCAD.getUserAppDataDir() (no OS-specific code).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-16 15:25:07 +01:00
..
2025-03-16 21:40:00 +09:00