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

Method cacheAdagentsManifest

server/src/crawler.ts:624–630  ·  view source on GitHub ↗

* Cache a validated adagents.json manifest into the publishers overlay and * project its properties into the property catalog. The writer runs as one * transaction with per-property savepoints, so a malformed property is * skipped without losing the rest of the manifest. * * Failure o

(domain: string, manifest: AdagentsManifest)

Source from the content-addressed store, hash-verified

622 * until catalog readers take over.
623 */
624 private async cacheAdagentsManifest(domain: string, manifest: AdagentsManifest): Promise<void> {
625 try {
626 await this.publisherDb.upsertAdagentsCache({ domain, manifest });
627 } catch (err) {
628 log.warn({ domain, err: err instanceof Error ? err.message : err }, 'Publisher cache write failed');
629 }
630 }
631
632 /**
633 * Record properties from adagents.json and link them to an agent.

Callers 3

crawlSingleDomainMethod · 0.95

Calls 2

upsertAdagentsCacheMethod · 0.80
warnMethod · 0.80

Tested by

no test coverage detected