mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-09-23 17:02:39 +00:00
25 lines
1.0 KiB
C++
25 lines
1.0 KiB
C++
#ifndef slic3r_GUI_McpControl_hpp_
|
|
#define slic3r_GUI_McpControl_hpp_
|
|
|
|
// MCP control surface (slice 1): a local JSON-RPC 2.0 server, line-delimited over a
|
|
// Unix domain socket, that lets an external MCP bridge drive and perceive the Design
|
|
// tab. Off unless the env var ORCA_CAD_MCP is set:
|
|
// ORCA_CAD_MCP=1 -> socket at /tmp/orca-cad-mcp.sock
|
|
// ORCA_CAD_MCP=/path/to.sock -> socket at that path
|
|
// All CAD work is marshalled onto the wx main thread and runs through the SAME
|
|
// CadDocument kernel the GUI uses (no parallel engine). Slice-1 methods:
|
|
// describe_tools, describe_scene, extrude.
|
|
//
|
|
// ponytail: Unix-socket only (POSIX). Windows compiles this to a no-op; add a named
|
|
// pipe transport when a Windows agent actually needs it.
|
|
|
|
namespace Slic3r { namespace GUI {
|
|
|
|
// Start the server thread iff ORCA_CAD_MCP is set. Safe to call once after the
|
|
// MainFrame + DesignPanel exist. No-op when the env var is unset or on Windows.
|
|
void start_mcp_control_if_enabled();
|
|
|
|
}} // namespace Slic3r::GUI
|
|
|
|
#endif // slic3r_GUI_McpControl_hpp_
|