MCPcopy Create free account
hub / github.com/Roy3838/Observer / updateCustomServerStatus

Method updateCustomServerStatus

app/src/utils/ModelManager.ts:444–458  ·  view source on GitHub ↗
(address: string, status: 'online' | 'offline')

Source from the content-addressed store, hash-verified

442 }
443
444 public updateCustomServerStatus(address: string, status: 'online' | 'offline'): CustomServer[] {
445 const server = this.customServers.find(s => s.address === address);
446 if (server) {
447 server.status = status;
448 this.saveCustomServersToStorage();
449
450 if (status === 'online' && server.enabled) {
451 this.addServer(address);
452 } else {
453 this.removeServer(address);
454 }
455 }
456
457 return [...this.customServers];
458 }
459
460 /**
461 * True if the user has a verified, enabled custom inference server (not Observer Cloud).

Callers 2

checkCustomServerMethod · 0.95
updateCustomServerStatusFunction · 0.80

Calls 3

addServerMethod · 0.95
removeServerMethod · 0.95

Tested by

no test coverage detected