Add opt-in MCP access with local authorization and revocable identities
CI / verify (push) Canceled after 0s

This commit is contained in:
Sucukdeluxe committed 2026-10-15 16:57:30 +02:00
1 parent febe654189
commit 93e0196dbe
20 files changed
+1246 -8

No files matched your search

+11
View File
@@ -25,6 +25,17 @@ ipcRenderer.on('folder-monitor:renderer-generation', (_event, generation) => {
});
contextBridge.exposeInMainWorld('api', {
mcpStatus: () => ipcRenderer.invoke('mcp:status'),
mcpConfigure: args => ipcRenderer.invoke('mcp:configure', args),
mcpRotate: () => ipcRenderer.invoke('mcp:rotate'),
mcpCopyCode: () => ipcRenderer.invoke('mcp:copy-code'),
mcpAddGrant: () => ipcRenderer.invoke('mcp:add-grant'),
mcpUpdateGrant: args => ipcRenderer.invoke('mcp:update-grant', args),
mcpCheck: id => ipcRenderer.invoke('mcp:check', id),
mcpReply: reply => ipcRenderer.send('mcp:reply', reply),
onMcpAction: callback => ipcRenderer.on('mcp:action', (_event, value) => callback(value)),
onMcpCancel: callback => ipcRenderer.on('mcp:cancel', (_event, value) => callback(value)),
onMcpStatus: callback => ipcRenderer.on('mcp:status', (_event, value) => callback(value)),
reportStartupPhase,
// Config
getConfig: () => ipcRenderer.invoke('get-config'),