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

Function getInstallCommand

src/cm/lsp/serverLauncher.ts:586–594  ·  view source on GitHub ↗
(
  server: LspServerDefinition,
  mode: "install" | "update" = "install",
)

Source from the content-addressed store, hash-verified

584}
585
586export function getInstallCommand(
587 server: LspServerDefinition,
588 mode: "install" | "update" = "install",
589): string | null {
590 if (mode === "update") {
591 return getUpdateCommand(server);
592 }
593 return buildInstallCommand(server, "install");
594}
595
596export function getInstallSource(server: LspServerDefinition): string | null {
597 return normalizeInstallSpec(server)?.source || null;

Callers 3

checkServerInstallationFunction · 0.70
installServerFunction · 0.70
performInstallCheckFunction · 0.70

Calls 2

getUpdateCommandFunction · 0.85
buildInstallCommandFunction · 0.85

Tested by

no test coverage detected