MCPcopy Index your code
hub / github.com/modstart-lib/aigcpanel / getInstalledServers

Function getInstalledServers

electron/mapi/httpserver/main.ts:68–84  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

66};
67
68const getInstalledServers = async () => {
69 const storageData = await StorageMain.read("server", null);
70 const records = storageData?.records || [];
71 return records
72 .filter((r: any) => r.name && r.version)
73 .map((r: any) => ({
74 id: `${r.name}|${r.version}`,
75 name: r.name,
76 version: r.version,
77 title: r.title || r.name,
78 functions: (r.functions || []).map((funcName: string) => ({
79 name: funcName,
80 args: functionArgsMap[funcName] || [],
81 param: r.config?.functions?.[funcName]?.param || [],
82 })),
83 }));
84};
85
86const getServerRecord = async (serverName: string, serverVersion: string) => {
87 const storageData = await StorageMain.read("server", null);

Callers 1

createAppFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected