MCPcopy
hub / github.com/modstart-lib/aigcpanel / getServerRecord

Function getServerRecord

electron/mapi/httpserver/main.ts:86–92  ·  view source on GitHub ↗
(serverName: string, serverVersion: string)

Source from the content-addressed store, hash-verified

84};
85
86const getServerRecord = async (serverName: string, serverVersion: string) => {
87 const storageData = await StorageMain.read("server", null);
88 const records = storageData?.records || [];
89 return records.find(
90 (r: any) => r.name === serverName && r.version === serverVersion,
91 );
92};
93
94const buildModelConfig = (
95 funcName: string,

Callers 1

createAppFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected