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

Function getServerRuntimeSetting

src/cm/lsp/runtimeSettings.ts:130–142  ·  view source on GitHub ↗
(serverId: string)

Source from the content-addressed store, hash-verified

128}
129
130export function getServerRuntimeSetting(serverId: string): string {
131 const normalizedServerId = String(serverId || "")
132 .trim()
133 .toLowerCase();
134 const servers = (appSettings.value?.lsp?.runtime?.servers || {}) as Record<
135 string,
136 unknown
137 >;
138 return (
139 toRuntimeId(servers[normalizedServerId]) ||
140 AUTO_RUNTIME_ID
141 );
142}

Callers

nothing calls this directly

Calls 2

StringInterface · 0.85
toRuntimeIdFunction · 0.85

Tested by

no test coverage detected