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

Function normalizeServerList

app/src/modules/hub.js:51–63  ·  view source on GitHub ↗
(list)

Source from the content-addressed store, hash-verified

49}
50
51function normalizeServerList(list) {
52 if (!Array.isArray(list)) return [];
53 const seen = new Set();
54 const normalized = [];
55 list.forEach(item => {
56 const entry = normalizeServerEntry(item);
57 const key = getServerDedupKey(entry);
58 if (seen.has(key)) return;
59 seen.add(key);
60 normalized.push(entry);
61 });
62 return normalized.slice(0, SERVERS_MAX);
63}
64
65export function getSavedServers() {
66 try {

Callers 3

getSavedServersFunction · 0.70
saveServerListFunction · 0.70
migrateServerListFunction · 0.70

Calls 2

normalizeServerEntryFunction · 0.70
getServerDedupKeyFunction · 0.70

Tested by

no test coverage detected