fix mcp tools save (#5028)

This commit is contained in:
heheer 2025-06-13 17:04:42 +08:00 committed by GitHub
parent 095b75ee27
commit 8acb16f9f2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -7,7 +7,7 @@ export const storeSecretValue = (
storeSecret: StoreSecretValueType
): Record<string, SecretValueType> => {
return Object.fromEntries(
Object.entries(storeSecret).map(([key, value]) => [
Object.entries(storeSecret || {}).map(([key, value]) => [
key,
{
secret: encryptSecret(value.value),