feat: first round of mcp standalone server
This commit is contained in:
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user