1193
return [];
1194
}
1196
>
const definitions: IMcpServerDefinition[] = [];
1197
>
for (const [name, configValue] of Object.entries(mcpServers)) {
1198
>
const configuration = normalizeMcpServerConfiguration(configValue);
1199
>
if (!configuration) {
1200
continue;
1201
}
1203
>
let def: IMcpServerDefinition = {
1204
>
name,
1205
>
configuration,
1206
>
uri: definitionURI,
1207
>
customization: makeMcpServerCustomization(definitionURI, name),
1208
>
};
1209
>
def = interpolateMcpPluginRoot(def, pluginFsPath, formatConfig.pluginRootTokens, formatConfig.pluginRootEnvVars);
1210
>
if (formatConfig.format !== PluginFormat.AgentPlugin && def.configuration.type === McpServerType.LOCAL && def.configuration.cwd === undefined) {
1211
def = { ...def, configuration: { ...def.configuration, cwd: pluginFsPath } };
1212
}
1214
def = convertBareEnvVarsToVsCodeSyntax(def);
1215
}
1217
>
}
1218
>
1219
>
return definitions;
1220
>
}
1221
1222
// ---------------------------------------------------------------------------