🪜 fix: userMCPAuthMap Sequential Agents assignment

This commit is contained in:
Danny Avila 2025-08-24 11:37:51 -04:00
parent 543b617e1c
commit 7d08da1a8a
No known key found for this signature in database
GPG key ID: BF31EEB2C5CA0956

View file

@ -149,7 +149,11 @@ const initializeClient = async ({ req, res, signal, endpointOption }) => {
endpointOption, endpointOption,
allowedProviders, allowedProviders,
}); });
Object.assign(userMCPAuthMap, config.userMCPAuthMap ?? {}); if (userMCPAuthMap != null) {
Object.assign(userMCPAuthMap, config.userMCPAuthMap ?? {});
} else {
userMCPAuthMap = config.userMCPAuthMap;
}
agentConfigs.set(agentId, config); agentConfigs.set(agentId, config);
} }
} }