Add MCP bridge for external tool integration

Embedded JSON-RPC server over named pipes (rcx-mcp) enabling external
tools like Claude Code to inspect and manipulate the node tree, read/write
hex data, switch sources, and trigger UI actions. Includes stdio adapter
(rcx-mcp-stdio) for stdin/stdout transport. Server is stopped by default;
user starts via File > Start MCP Server.

Also extracts MainWindow class declaration to mainwindow.h and improves
type selector popup Esc button styling.
This commit is contained in:
IChooseYou
2026-02-10 10:55:27 -07:00
committed by sysadmin
parent df566064ba
commit 4295460597
9 changed files with 1400 additions and 103 deletions

View File

@@ -110,6 +110,12 @@ public:
RcxDocument* document() const { return m_doc; }
void setEditorFont(const QString& fontName);
// MCP bridge accessors
void setSuppressRefresh(bool v) { m_suppressRefresh = v; }
const QVector<SavedSourceEntry>& savedSources() const { return m_savedSources; }
int activeSourceIndex() const { return m_activeSourceIdx; }
void switchSource(int idx) { switchToSavedSource(idx); }
signals:
void nodeSelected(int nodeIdx);
void selectionChanged(int count);