MCPcopy Create free account
hub / github.com/adcontextprotocol/adcp / getHostedBrandByDomain

Method getHostedBrandByDomain

server/src/db/brand-db.ts:227–233  ·  view source on GitHub ↗

* Get hosted brand by domain

(domain: string)

Source from the content-addressed store, hash-verified

225 * Get hosted brand by domain
226 */
227 async getHostedBrandByDomain(domain: string): Promise<HostedBrand | null> {
228 const result = await query<HostedBrand>(
229 `SELECT ${HOSTED_BRAND_COLUMNS} FROM brands WHERE domain = $1`,
230 [domain.toLowerCase()]
231 );
232 return result.rows[0] ? this.deserializeHostedBrand(result.rows[0]) : null;
233 }
234
235 /**
236 * List hosted brands by organization

Callers 10

setupRoutesMethod · 0.80
scanBrandForDomainMethod · 0.80
createRegistryApiRouterFunction · 0.80
createReferralsRouterFunction · 0.80
createBrandLogoRouterFunction · 0.80
isVerifiedBrandOwnerFunction · 0.80
issueDomainChallengeFunction · 0.80
createBrandToolHandlersFunction · 0.80
createAdminToolHandlersFunction · 0.80

Calls 1

Tested by

no test coverage detected