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

Method constructor

server/src/http.ts:554–576  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

552 private registryRequestsDb = registryRequestsDb;
553
554 constructor() {
555 this.app = express();
556 this.agentService = new AgentService();
557 this.validator = new AgentValidator();
558 this.adagentsManager = new AdAgentsManager();
559 this.healthChecker = new HealthChecker();
560 this.catalogEventsDb = new CatalogEventsDatabase();
561 this.agentProfilesDb = new AgentInventoryProfilesDatabase();
562 this.crawler = new CrawlerService({
563 eventsDb: this.catalogEventsDb,
564 profilesDb: this.agentProfilesDb,
565 });
566 this.capabilityDiscovery = new CapabilityDiscovery();
567 this.publisherTracker = new PublisherTracker();
568 this.propertiesService = new PropertiesService();
569 this.brandDb = new BrandDatabase();
570 this.brandManager = new BrandManager();
571 this.propertyDb = new PropertyDatabase();
572 this.bansDb = new BansDatabase();
573
574 this.setupMiddleware();
575 this.setupRoutes();
576 }
577
578 private setupMiddleware(): void {
579 // Trust the first proxy (Fly.io) for accurate client IP detection

Callers

nothing calls this directly

Calls 2

setupMiddlewareMethod · 0.95
setupRoutesMethod · 0.95

Tested by

no test coverage detected