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

Function getRuntimeInstallCommand

src/cm/lsp/runtimeActions.ts:78–92  ·  view source on GitHub ↗
(
	server: LspServerDefinition,
	mode: "install" | "update" = "install",
	context?: LspRuntimeContext,
)

Source from the content-addressed store, hash-verified

76}
77
78export async function getRuntimeInstallCommand(
79 server: LspServerDefinition,
80 mode: "install" | "update" = "install",
81 context?: LspRuntimeContext,
82): Promise<string | null> {
83 const settingsContext = getSettingsContext(server, context, "command");
84 const provider = await getProvider(server, context, "command");
85 return (
86 provider?.getInstallCommand?.(
87 server,
88 settingsContext,
89 mode,
90 ) ?? null
91 );
92}
93
94export async function getRuntimeUninstallCommand(
95 server: LspServerDefinition,

Callers 1

buildSnapshotFunction · 0.90

Calls 2

getSettingsContextFunction · 0.85
getProviderFunction · 0.85

Tested by

no test coverage detected