Skip to content

Commit d0a0b30

Browse files
committed
app: Add confirmation and mcp config update api
1 parent 8d1f0a1 commit d0a0b30

File tree

4 files changed

+649
-14
lines changed

4 files changed

+649
-14
lines changed

app/electron/main.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1249,6 +1249,9 @@ function startElecron() {
12491249
},
12501250
});
12511251

1252+
// Set the main window reference in the MCP client for dialogs
1253+
mcpClient.setMainWindow(mainWindow);
1254+
12521255
// Load the frontend
12531256
mainWindow.loadURL(startUrl);
12541257

@@ -1469,6 +1472,10 @@ function startElecron() {
14691472
if (mcpClient) {
14701473
mcpClient.cleanup().catch(console.error);
14711474
}
1475+
// Cleanup MCP client
1476+
if (mcpClient) {
1477+
mcpClient.cleanup().catch(console.error);
1478+
}
14721479
});
14731480
}
14741481

0 commit comments

Comments
 (0)