Tab titles show root struct name instead of Untitled, sync MDI tab font with editor, rename MCP pipe/exe to ReclassMcpBridge

This commit is contained in:
iamacontributor
2026-02-13 06:51:09 -07:00
committed by sysadmin
parent b153665059
commit c86a6dbc73
8 changed files with 65 additions and 19 deletions

View File

@@ -1,5 +1,5 @@
// rcx-mcp-stdio: Bridges stdin/stdout to QLocalSocket for MCP transport.
// Claude Desktop spawns this process; it connects to the rcx-mcp named pipe
// ReclassMcpBridge: Bridges stdin/stdout to QLocalSocket for MCP transport.
// Claude Desktop spawns this process; it connects to the ReclassMcpBridge named pipe
// inside the running Reclass application.
//
// stdin (from Claude) → QLocalSocket → McpBridge (in Reclass)
@@ -43,7 +43,7 @@ int main(int argc, char* argv[]) {
});
QObject::connect(socket, &QLocalSocket::disconnected, [&]() {
fprintf(stderr, "[rcx-mcp-stdio] Disconnected from server\n");
fprintf(stderr, "[ReclassMcpBridge] Disconnected from server\n");
app.quit();
});
@@ -52,19 +52,19 @@ int main(int argc, char* argv[]) {
#else
QObject::connect(socket, QOverload<QLocalSocket::LocalSocketError>::of(&QLocalSocket::error), [&](QLocalSocket::LocalSocketError err) {
#endif
fprintf(stderr, "[rcx-mcp-stdio] Socket error %d: %s\n",
fprintf(stderr, "[ReclassMcpBridge] Socket error %d: %s\n",
(int)err, socket->errorString().toUtf8().constData());
app.quit();
});
// Connect to the named pipe
socket->connectToServer("rcx-mcp");
socket->connectToServer("ReclassMcpBridge");
if (!socket->waitForConnected(5000)) {
fprintf(stderr, "[rcx-mcp-stdio] Failed to connect to rcx-mcp pipe: %s\n",
fprintf(stderr, "[ReclassMcpBridge] Failed to connect to ReclassMcpBridge pipe: %s\n",
socket->errorString().toUtf8().constData());
return 1;
}
fprintf(stderr, "[rcx-mcp-stdio] Connected to rcx-mcp\n");
fprintf(stderr, "[ReclassMcpBridge] Connected to ReclassMcpBridge\n");
// Stdin → socket: poll stdin with a timer (stdin isn't a socket on Windows)
QByteArray stdinBuf;