feat: first round of mcp standalone server

This commit is contained in:
2026-02-28 21:23:22 +01:00
parent 1fc2003260
commit c358e1b11c
67 changed files with 3426 additions and 901 deletions

View File

@@ -383,6 +383,12 @@ export const electronAPI: ElectronAPI = {
ipcRenderer.once(channel, (_event, ...args) => callback(...args));
},
onEntityChanged: (callback: (payload: import('./shared/electronApi').EntityChangedPayload) => void) => {
const subscription = (_event: Electron.IpcRendererEvent, payload: import('./shared/electronApi').EntityChangedPayload) => callback(payload);
ipcRenderer.on('entity:changed', subscription);
return () => ipcRenderer.removeListener('entity:changed', subscription);
},
mcp: {
getAgents: () => ipcRenderer.invoke('mcp:getAgents'),
addToAgentConfig: (agentId: string) => ipcRenderer.invoke('mcp:addToAgentConfig', agentId),