MCPcopy Create free account
hub / github.com/RioArisk/claudecode_api_RemoteControl / migrateServerList

Function migrateServerList

app/src/modules/hub.js:126–136  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

124}
125
126function migrateServerList() {
127 const rawText = localStorage.getItem(STORAGE_KEY);
128 if (!rawText) return;
129 try {
130 const raw = JSON.parse(rawText);
131 const normalized = normalizeServerList(raw);
132 if (JSON.stringify(raw) !== JSON.stringify(normalized)) saveServerList(normalized);
133 } catch {
134 saveServerList([]);
135 }
136}
137
138// ---- Hub probe ----
139function createHubProbeInfo() {

Callers 1

initHubFunction · 0.70

Calls 2

normalizeServerListFunction · 0.70
saveServerListFunction · 0.70

Tested by

no test coverage detected