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

Function updateServerSettings

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

Source from the content-addressed store, hash-verified

27});
28
29export const updateServerSettings = (
30 patch: Partial<DesktopServerSettings>,
31): DesktopServerSettings => {
32 const next: DesktopServerSettings = { port: patch.port ?? getServerSettings().port };
33 store.set("server", next);
34 return next;
35};
36
37/**
38 * Rotate the local bearer token (auth.json). The caller must restart the

Callers 1

registerIpcHandlersFunction · 0.90

Calls 2

getServerSettingsFunction · 0.85
setMethod · 0.80

Tested by

no test coverage detected