MCPcopy Index your code
hub / github.com/simstudioai/sim / getAllowedMcpDomainsFromEnv

Function getAllowedMcpDomainsFromEnv

apps/sim/lib/core/config/env-flags.ts:336–340  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

334 * Accepts both bare hostnames and full URLs in the env var value.
335 */
336export 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

Callers 5

checkMcpDomainFunction · 0.90
isMcpDomainAllowedFunction · 0.90
validateMcpDomainFunction · 0.90
validateMcpServerSsrfFunction · 0.90
route.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected