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

Method extractBrandName

server/src/crawler.ts:337–344  ·  view source on GitHub ↗
(data: unknown, fallback: string)

Source from the content-addressed store, hash-verified

335 }
336
337 private extractBrandName(data: unknown, fallback: string): string {
338 const obj = data as Record<string, unknown>;
339 if (typeof obj?.house === 'object' && obj.house !== null) {
340 const house = obj.house as Record<string, unknown>;
341 if (typeof house.name === 'string') return house.name;
342 }
343 return fallback;
344 }
345
346 /**
347 * Populate the federated index with discovered agents and publishers.

Callers 1

scanBrandForDomainMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected