MCPcopy Create free account
hub / github.com/Noumena-Network/code / isFirstPartyBaseUrlValue

Function isFirstPartyBaseUrlValue

src/utils/model/providers.ts:79–91  ·  view source on GitHub ↗
(
  baseUrl: string | undefined,
)

Source from the content-addressed store, hash-verified

77}
78
79export function isFirstPartyBaseUrlValue(
80 baseUrl: string | undefined,
81): boolean {
82 if (!baseUrl) {
83 return false
84 }
85 try {
86 const host = new URL(baseUrl).host
87 return getAllowedFirstPartyHosts().includes(host)
88 } catch {
89 return false
90 }
91}
92
93/**
94 * Check whether the configured first-party base URL override still points at

Callers 2

Calls 1

Tested by

no test coverage detected