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

Function buildReferenceFormats

server/src/creative-agent/task-handlers.ts:40–47  ·  view source on GitHub ↗
(agentUrl: string)

Source from the content-addressed store, hash-verified

38 * Source data is the exact format catalog from the live creative.adcontextprotocol.org agent.
39 */
40export function buildReferenceFormats(agentUrl: string): Format[] {
41 const formats = structuredClone(referenceFormatsData) as Format[];
42 for (const f of formats) {
43 const fid = f.format_id as { agent_url: string; id: string };
44 fid.agent_url = agentUrl;
45 }
46 return formats;
47}
48
49// ── Format filtering helpers ────────────────────────────────────────
50

Calls

no outgoing calls

Tested by

no test coverage detected