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

Function updateServerSettings

apps/desktop/src/main/settings.ts:39–45  ·  view source on GitHub ↗
(
  patch: Partial<DesktopServerSettings>,
)

Source from the content-addressed store, hash-verified

37});
38
39export const updateServerSettings = (
40 patch: Partial<DesktopServerSettings>,
41): DesktopServerSettings => {
42 const next: DesktopServerSettings = { port: patch.port ?? getServerSettings().port };
43 store.set("server", next);
44 return next;
45};
46
47/**
48 * Rotate the local bearer token (auth.json). The caller must restart the

Callers 1

registerIpcHandlersFunction · 0.90

Calls 2

getServerSettingsFunction · 0.85
setMethod · 0.65

Tested by

no test coverage detected