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

Method extractDomain

server/src/crawler.ts:175–182  ·  view source on GitHub ↗
(url: string)

Source from the content-addressed store, hash-verified

173 }
174
175 private extractDomain(url: string): string {
176 try {
177 const parsed = new URL(url);
178 return parsed.hostname;
179 } catch {
180 return url;
181 }
182 }
183
184 private emptyResult(): CrawlResult {
185 return {

Callers 1

crawlAllAgentsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected