MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / toDesktopServerConnection

Function toDesktopServerConnection

apps/desktop/src/main/index.ts:607–613  ·  view source on GitHub ↗
(conn: SidecarConnection)

Source from the content-addressed store, hash-verified

605// bearer header at the session layer (installBearerAuthHeader), so the token
606// never crosses the IPC boundary.
607const toDesktopServerConnection = (conn: SidecarConnection): DesktopServerConnection => ({
608 kind: "desktop-sidecar",
609 key: "desktop-sidecar",
610 origin: conn.baseUrl,
611 apiBaseUrl: `${conn.baseUrl.replace(/\/+$/, "")}/api`,
612 displayName: "Local Executor",
613});
614
615const registerIpcHandlers = () => {
616 ipcMain.handle("executor:server:connection", (): DesktopServerConnection | null =>

Callers 2

restartSidecarAndReloadFunction · 0.85
registerIpcHandlersFunction · 0.85

Calls 1

replaceMethod · 0.65

Tested by

no test coverage detected