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

Function removeServer

app/src/modules/hub.js:112–124  ·  view source on GitHub ↗
(id)

Source from the content-addressed store, hash-verified

110}
111
112function removeServer(id) {
113 let list = getSavedServers();
114 const idx = list.findIndex(s => s.id === id);
115 if (idx < 0) return null;
116 const removed = list[idx];
117 list.splice(idx, 1);
118 saveServerList(list);
119 const last = localStorage.getItem(LAST_KEY) || '';
120 if (removed && (last === removed.addr || last === removed.wsUrl || last === removed.cacheAddr)) {
121 localStorage.removeItem(LAST_KEY);
122 }
123 return removed;
124}
125
126function migrateServerList() {
127 const rawText = localStorage.getItem(STORAGE_KEY);

Callers 1

deleteServerFromDialogFunction · 0.70

Calls 2

getSavedServersFunction · 0.70
saveServerListFunction · 0.70

Tested by

no test coverage detected