()
| 334 | * Accepts both bare hostnames and full URLs in the env var value. |
| 335 | */ |
| 336 | export function getAllowedMcpDomainsFromEnv(): string[] | null { |
| 337 | if (!env.ALLOWED_MCP_DOMAINS) return null |
| 338 | const parsed = env.ALLOWED_MCP_DOMAINS.split(',').map(normalizeDomainEntry).filter(Boolean) |
| 339 | return parsed.length > 0 ? parsed : null |
| 340 | } |
| 341 | |
| 342 | /** |
| 343 | * Get cost multiplier based on environment |
no outgoing calls
no test coverage detected