📦 chore: Bump @librechat/agents to v3.1.56 (#12258)

* 📦 chore: Bump `@librechat/agents` to v3.1.56

* chore: resolve type error, URL property check in isMCPDomainAllowed function
This commit is contained in:
Danny Avila 2026-03-15 23:51:41 -04:00 committed by GitHub
parent acd07e8085
commit 8271055c2d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 11 additions and 8 deletions

View file

@ -485,7 +485,9 @@ export async function isMCPDomainAllowed(
const hasAllowlist = Array.isArray(allowedDomains) && allowedDomains.length > 0;
const hasExplicitUrl =
Object.hasOwn(config, 'url') && typeof config.url === 'string' && config.url.trim().length > 0;
Object.prototype.hasOwnProperty.call(config, 'url') &&
typeof config.url === 'string' &&
config.url.trim().length > 0;
if (!domain && hasExplicitUrl && hasAllowlist) {
return false;