MCPcopy Create free account
hub / github.com/Noumena-Network/code / resolveValue

Function resolveValue

src/utils/plugins/lspPluginIntegration.ts:237–251  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

235 const allMissingVars: string[] = []
236
237 const resolveValue = (value: string): string => {
238 // First substitute plugin-specific variables
239 let resolved = substitutePluginVariables(value, plugin)
240
241 // Then substitute user config variables if provided
242 if (userConfig) {
243 resolved = substituteUserConfigVariables(resolved, userConfig)
244 }
245
246 // Finally expand general environment variables
247 const { expanded, missingVars } = expandEnvVarsInString(resolved)
248 allMissingVars.push(...missingVars)
249
250 return expanded
251 }
252
253 const resolved = { ...config }
254

Callers 1

Calls 3

expandEnvVarsInStringFunction · 0.85

Tested by

no test coverage detected