MCPcopy Create free account
hub / github.com/Acode-Foundation/Acode / checkRuntimeServerInstallation

Function checkRuntimeServerInstallation

src/cm/lsp/runtimeActions.ts:33–49  ·  view source on GitHub ↗
(
	server: LspServerDefinition,
	context?: LspRuntimeContext,
)

Source from the content-addressed store, hash-verified

31}
32
33export async function checkRuntimeServerInstallation(
34 server: LspServerDefinition,
35 context?: LspRuntimeContext,
36): Promise<InstallCheckResult> {
37 const settingsContext = getSettingsContext(server, context, "checkInstallation");
38 const provider = await getProvider(server, context, "checkInstallation");
39 if (!provider?.checkInstallation) {
40 return {
41 status: "unknown",
42 version: null,
43 canInstall: false,
44 canUpdate: false,
45 message: "The selected runtime does not provide installation checks.",
46 };
47 }
48 return provider.checkInstallation(server, settingsContext);
49}
50
51export async function installRuntimeServer(
52 server: LspServerDefinition,

Callers 2

buildSnapshotFunction · 0.90
callbackFunction · 0.90

Calls 2

getSettingsContextFunction · 0.85
getProviderFunction · 0.85

Tested by

no test coverage detected